java.lang.IllegalStateException: eglMakeCurrent failed EGL_BAD_ALLOC


Samebug tips

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.


2 months ago
Expert tip

Solutions on the web

Solution icon of web
eglMakeCurrent failed         EGL_BAD_ALLOC

Solution icon of web
via oschina.net by Unknown author, 1 year ago
eglMakeCurrent failed EGL_BAD_ALLOC

Solution icon of web
via csdn.net by Unknown author, 1 year ago
eglMakeCurrent failed         EGL_BAD_ALLOC

Solution icon of web
eglMakeCurrent failed EGL_BAD_ALLOC

Solution icon of stackoverflow
via Stack Overflow by Alex Kombo
, 1 year ago
eglMakeCurrent failed EGL_BAD_ALLOC

Solution icon of stackoverflow
eglMakeCurrent failed EGL_BAD_ALLOC

Solution icon of web
eglMakeCurrent failed         EGL_BAD_ALLOC

Solution icon of github
eglMakeCurrent failed EGL_BAD_ALLOC

Solution icon of stackoverflow
eglMakeCurrent failed EGL_BAD_ALLOC

Solution icon of web
eglMakeCurrent failed EGL_BAD_ALLOC

Stack trace

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:1811)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1235)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6472)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:803)
	at android.view.Choreographer.doCallbacks(Choreographer.java:603)
	at android.view.Choreographer.doFrame(Choreographer.java:573)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:789)
	at android.os.Handler.handleCallback(Handler.java:733)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:157)
	at android.app.ActivityThread.main(ActivityThread.java:5356)
	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:1265)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
	at dalvik.system.NativeStart.main(Native Method)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

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