Author Topic: A lot of errors EGL_BAD_ALLOC ?  (Read 3256 times)

Offline zbych

  • int
  • **
  • Posts: 75
    • View Profile
A lot of errors EGL_BAD_ALLOC ?
« 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)

Offline zammbi

  • float
  • ****
  • Posts: 360
    • View Profile
Re: A lot of errors EGL_BAD_ALLOC ?
« Reply #1 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

Offline zbych

  • int
  • **
  • Posts: 75
    • View Profile
Re: A lot of errors EGL_BAD_ALLOC ?
« Reply #2 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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: A lot of errors EGL_BAD_ALLOC ?
« Reply #3 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

Offline zbych

  • int
  • **
  • Posts: 75
    • View Profile
Re: A lot of errors EGL_BAD_ALLOC ?
« Reply #4 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.