title: Android openGL - Surface is not valid Surface
body: <p>Sometimes when i quit my openGL ES 1 application the following error messages keep beeing posted in logcat and the application freezes and at some point it's terminated.</p>
  
  <pre><code>E/EglHelper(4284): Surface is not valid Surface(name=null, identity=-1, mNativeSurface=0) java.lang.IllegalArgumentException: Make sure the SurfaceView or associated SurfaceHolder has a valid Surface
  E/GLThread(4284): Couldn't create a surface 132184
  W/GLThread(4284): egl createSurface
  W/EglHelper(4284): createSurface()  tid=22
  </code></pre>
  
  <p>where could be my problem?</p>