openframeworks / openframeworks/openFrameworks

ofxAndroid OFAndroid keyDown and keyUp Crash Bug!

Open
#3,398 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

android
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.