Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tallavi opened this issue Jan 13, 2015 · 6 comments

Comments

@tallavi
Copy link

tallavi commented Jan 13, 2015

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
Copy link
Member

arturoc commented Jan 13, 2015

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
Copy link
Author

tallavi commented Jan 13, 2015

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
Copy link
Member

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
#3555 (comment)
.

@tallavi
Copy link
Author

tallavi commented Jan 13, 2015

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
Copy link
Member

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
#3555 (comment)
.

@tallavi
Copy link
Author

tallavi commented Jan 15, 2015

My pleasure! Have you gotten this reproduced?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants