Tuesday, October 11, 2011

[android-developers] Re: EGL_BAD_ALLOC

On Oct 10, 6:53 pm, Kristopher Micinski <krismicin...@gmail.com>
wrote:
> http://stackoverflow.com/questions/6039107/android-glsurfaceview-egl-...
>
>
>
>
>
>
>
> On Mon, Oct 10, 2011 at 4:41 PM, bob <b...@coolgroups.com> wrote:
> > Any ideas why my Android OpenGL slot machine may have this in its ACRA
> > log?
>
> > java.lang.RuntimeException: eglSwapBuffers failed: EGL_BAD_ALLOC
> >        at android.opengl.GLSurfaceView
> > $EglHelper.throwEglException(GLSurfaceView.java:1077)
> >        at android.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:
> > 1035)
> >        at android.opengl.GLSurfaceView
> > $GLThread.guardedRun(GLSurfaceView.java:1333)
> >        at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscribe@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en


These were my methods when I got the error:


@Override
protected void onPause() {
super.onPause();
surface.onPause();
}

@Override
protected void onResume() {
super.onResume();
surface.onResume();
}

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment