openframeworks / openframeworks/openFrameworks

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

Open
#3,555 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

addon android bug section-2D
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.

9badaa551bbb1786
277d63c378bf14e4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.