openframeworks / openframeworks/openFrameworks
Android - unload/reloading textures result in black rectangles instead of text
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
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.


Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the attached reproduction project based on the Android empty example and compare behavior before and after minimizing and restoring. Read the linked forum discussion for the reproduction details, then trace the texture loading and unloading behavior involved in native UI text. Done means the reproduction no longer shows black rectangles after reload on Android.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, cpp
- Domain
- computer-graphics, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100