java.lang.IllegalStateException: eglMakeCurrent failed         EGL_BAD_ALLOC

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

It might be that you are using Toast in the wrong way. Make sure you instantiate the objects and set the Toast views properly, if you are using any.

Solutions on the web

via csdn.net by Unknown author, 2 years ago
eglMakeCurrent failed         EGL_BAD_ALLOC
via oschina.net by Unknown author, 2 years ago
eglMakeCurrent failed EGL_BAD_ALLOC
via Stack Overflow by Hater Aulik
, 2 years ago
via oschina.net by Unknown author, 2 years ago
eglMakeCurrent failed EGL_BAD_ALLOC
java.lang.IllegalStateException: eglMakeCurrent failed         EGL_BAD_ALLOC
at android.view.HardwareRenderer$GlRenderer.createSurface(HardwareRenderer.java:1354)
at android.view.HardwareRenderer$GlRenderer.createEglSurface(HardwareRenderer.java:1241)
at android.view.HardwareRenderer$GlRenderer.initialize(HardwareRenderer.java:1058)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1671)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1017)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5967)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
at android.view.Choreographer.doCallbacks(Choreographer.java:574)
at android.view.Choreographer.doFrame(Choreographer.java:544)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5032)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
68 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.