inkSpace icon indicating copy to clipboard operation
inkSpace copied to clipboard

java.lang.RuntimeException: createContext failed: EGL_BAD_CONFIG

Open ofZach opened this issue 10 years ago • 3 comments

I'm seeing this issue / crash on some devices:

java.lang.RuntimeException
in android.opengl.GLSurfaceView$EglHelper.throwEglException

Zenfone2 (Z00A) ZenFone 5 (ASUS_T00J) Galaxy S4 (ja3g) Galaxy Tab2 7.0 (espressorf) HTC One M9+ (htc_hiau_ml_tuhl) Galaxy Tab3 10.1 (santos10lte) Galaxy Note4 (trltechn)

java.lang.RuntimeException: createContext failed: EGL_BAD_CONFIG
at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1228)
at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1219)
at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1069)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1442)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1281)

ofZach avatar Aug 13 '15 01:08 ofZach

screenshot from the play store

screen shot 2015-08-13 at 10 46 40 am

potentially relevant:

https://code.google.com/p/webrtc/issues/detail?id=1875 http://stackoverflow.com/questions/26504742/open-gl-bad-config-error-on-samsung-s4

to do:

  • try OF 0.9 and test on a device that this happens (a few people have emailed me about crashes and offered to test apks)
  • get a device that this crash happens on and look at the gl allocation on 0.8.4

ofZach avatar Aug 13 '15 15:08 ofZach

this is the commit to look at, apparently newer phones don't want this color mode (and just want 8,8,8):

https://github.com/openframeworks/openFrameworks/commit/38a40427

ofZach avatar Aug 13 '15 16:08 ofZach

Got this down to just Redmi Phones across multiple OS. Not sure why, maybe stencil still debugging

danoli3 avatar Jan 20 '22 04:01 danoli3