www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: zbych on June 04, 2012, 10:33:09 pm

Title: A lot of errors EGL_BAD_ALLOC ?
Post 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)
Title: Re: A lot of errors EGL_BAD_ALLOC ?
Post by: zammbi on June 04, 2012, 11:19:29 pm
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
Title: Re: A lot of errors EGL_BAD_ALLOC ?
Post by: zbych on June 04, 2012, 11:27:47 pm
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
Title: Re: A lot of errors EGL_BAD_ALLOC ?
Post by: EgonOlsen on June 05, 2012, 12:02:53 am
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)
Title: Re: A lot of errors EGL_BAD_ALLOC ?
Post by: zbych on June 05, 2012, 12:49:34 pm
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.