www.jpct.net
jPCT-AE - a 3d engine for Android => Support => Topic started by: zbych on June 04, 2012, 10:33:09 pm
-
Hi.
I'm getting a lot of error reports of this type from users running my game. Is here someone with idea what causes it, or is it possible to avoid it?
java.lang.RuntimeException: eglSwapBuffers failed: EGL_BAD_ALLOC
at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1082)
at android.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:1040)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1338)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1121)
-
From which device(s)? Which OpenGL version?
If it's a driver issue probably not much can be done: http://www.jpct.net/forum2/index.php/topic,2624.0.html
-
Unfortunately thats all I can get from play market developer's console :(
Users usualy sends error reports without any information, or with information: "not working !!" :D
-
Something with your Activity?....google brings up some related stuff: http://stackoverflow.com/questions/6039107/android-glsurfaceview-egl-bad-alloc (http://stackoverflow.com/questions/6039107/android-glsurfaceview-egl-bad-alloc)
-
I have looked at this article before, but when I was checking code today I found in onPaue() I call first _glView.onPause() and then super.onPause(), maybe this is the reason. I'll change order of this and will see.