I\'ve an OpenGL application in the Google Play Store and I\'m facing a daily exception:
java.lang.RuntimeException: eglSwapBuffers failed: EGL_SUCCESS
at android
The solution I ended up implementing was to add a global exception handler to catch this error (since it's thrown outside of any thread I have control over).
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {...})
So at least the application doesn't crash and I can put up a message explaining the situation.