title: Random OpenGL freeze on Android with Adreno GPU
body: <p>I got a strange random OpenGL error when my app runs on the Android devices with Adreno GPU. This issue could be reproduced on Android 4.X and 5.X and it only happens on Adreno GPU.</p>
  
  <pre><code>E/Surface (14388): dequeueBuffer: IGraphicBufferProducer::requestBuffer    failed: -2147483646
  W/Adreno-EGLSUB(14388): &lt;DequeueBuffer:720&gt;: dequeue native buffer fail: Unknown error 2147483646, buffer=0x0, handle=0x0
  W/Adreno-EGL(14388): &lt;qeglDrvAPI_eglSwapBuffers:3702&gt;: EGL_BAD_SURFACE
  W/GLThread(14388): eglSwapBuffers failed: EGL_BAD_SURFACE
  W/OpenGLRenderer(14388): swapBuffers encountered EGL_BAD_SURFACE on 0xaf43d340, halting rendering...
  </code></pre>
  
  <p>My app freezes when the error happens. It is a pure native application written in C/C++. The only view in my app is a subclass of GLSurfaceView.</p>
  
  <p>Does anyone have an idea about this issue? Any clue would be great helpful.</p>