openframeworks / openframeworks/openFrameworks
ofxAndroid OFAndroid keyDown and keyUp Crash Bug!
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
master branch,on android,if u click the back key,it will crash.
11-06 23:09:45.158: E/libEGL(9627): call to OpenGL ES API with no current context (logged once per thread)
the problem is that u can't make native call for onBackPressed,it should be called in navtive GL thread,not in Android thread.
I fix this bug.
I have tested this!
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
Reproduce the crash by pressing the Android back key on the master branch, then trace how onBackPressed reaches the native code and the native GL thread. Done means the back action no longer crashes from a missing current OpenGL ES context, with the behavior tested on Android.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, cpp
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100