title: java.lang.RuntimeException: eglSwapBuffers failed: EGL_SUCCESS
body: <p>I've an OpenGL application in the Google Play Store and I'm facing a daily exception:</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>The problem is, on all my smartphones I cannot reproduce this error. I've already contacted Google for any device info, but they have none (so they say). The platform info in the exception is set to "OTHER".</p>
  
  <p>I found some hints on the net that this error could be from a Samsung Galaxy Y device, and I found some suggestions to include:</p>
  
  <pre><code>android:configChanges="orientation|screenSize"
  </code></pre>
  
  <p>in the Android manifest file, but this does not work!</p>
  
  <p>And of course I've the onPause and onResume handling implemented for my GL surface which, if not, produces other eglSwapBuffer problems.</p>
  
  <p>Has anybody a solution for this problem?</p>
  
  <p>Thanks!</p>