openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.98k stars 2.55k forks source link

Android - unload/reloading textures result in black rectangles instead of text #3555

Open tallavi opened 9 years ago

tallavi commented 9 years ago

The discussion started here: http://forum.openframeworks.cc/t/android-unload-reloading-textures-result-in-black-rectangles-instead-of-text/18038

Text on native UI elements turns to black rectangles after minimizing and restoring. See attached screenshots. It's directly related to loading/unloading textures in of, but I'm not sure how. I've managed of creating a super simple reproduction based on "android empty example" that shows the problem!

The issue is reproduced on ALL Android phones I tried, with different OS versions.

The forum post has an attachment of an extremely simple reproduction project. Even though it's only a few lines of code, I couldn't figure out what (if at all) I'm doing wrong, and it's hard for me to understand what's going on inside (since I cannot debug it).

So I'm suspecting a bug related to how of unload/reloads the textures.

Thanks.

9badaa551bbb1786 277d63c378bf14e4

arturoc commented 9 years ago

yeah that's really crazy, i can't understand how anything in the GL context can change the gui elements at all. i'll try to check your example when i have a moment

tallavi commented 9 years ago

Thanks allot! I'm going crazy over here! Even an ugly workaround in the example or in OF itself will do for now, and I'll be happy to participate in fixing this permanently, if it's in my scope of understanding.

danzeeeman commented 9 years ago

Can you share the version of your NDK & Android SDK Platform & Build Tools you are building with?

I'm going to try your sample out on my phones. What devices/versions did you try this on?

On Tue, Jan 13, 2015 at 9:06 AM, tallavi notifications@github.com wrote:

Thanks allot! I'm going crazy over here!

— Reply to this email directly or view it on GitHub https://github.com/openframeworks/openFrameworks/issues/3555#issuecomment-69748156 .

tallavi commented 9 years ago

Hey @danthemellowman,

I have it reproducing on HTC M8 with Stock 4.4.3 and Samsung s3 (i9300) with cyanogenMod 4.3.1.

I have a few other devices not currently on me, some cheap samsung and a Xiomi, all reproducing.

I'm pretty confident that you can just build with whatever setup and device you have, but if you want my specific configuration, I'm on latest OSX yosemite, building with Android SDK 4.4.2, and using NDK r9c.

Eclipse IDE for Android developers and ADT plugin, version 23.0.2.1259578.

Any other information you need?

danzeeeman commented 9 years ago

Thanks for the info!

On Tue, Jan 13, 2015 at 2:11 PM, tallavi notifications@github.com wrote:

Hey @danthemellowman https://github.com/danthemellowman,

I have it reproducing on HTC M8 with Stock 4.4.3 and Samsung s3 (i9300) with cyanogenMod 4.3.1.

I have a few other devices not currently on me, some cheap samsung and a Xiomi, all reproducing.

I'm pretty confident that you can just build with whatever setup and device you have, but if you want my specific configuration, I'm on latest OSX yosemite, building with Android SDK 4.4.2, and using NDK r9c.

Eclipse IDE for Android developers and ADT plugin, version 23.0.2.1259578.

Any other information you need?

— Reply to this email directly or view it on GitHub https://github.com/openframeworks/openFrameworks/issues/3555#issuecomment-69800584 .

tallavi commented 9 years ago

My pleasure! Have you gotten this reproduced?