nicolasgramlich/AndEngine — Issue #40: java.lang.RuntimeException: eglSwapBuffers failed
Author: walidhalabi
Created: 2012-02-14 21:20:34+00:00
State: open

Getting this very often (but still intermittently)

Comes in a few flavours

java.lang.RuntimeException: eglSwapBuffers failed: EGL_SUCCESS
at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1085)
at android.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:1043)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1369)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1123)

Similarly, the following:

java.lang.RuntimeException: eglSwapBuffers failed: EGL_BAD_ALLOC
at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1079)
at android.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:1037)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1342)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)

And another:

java.lang.RuntimeException: eglSwapBuffers failed: EGL_BAD_CURRENT_SURFACE
at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1142)
at android.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:1100)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1440)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1180)