Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于不定时出现的EGL_NOT_INITIALIZED报错导致app崩溃问题 #30

Open
dpmaycry opened this issue Feb 7, 2018 · 4 comments
Open

Comments

@dpmaycry
Copy link

dpmaycry commented Feb 7, 2018

有3种报错日志,都跟egl未被初始化有关。最后一种最奇怪,明明创建成功了,紧接着就报egl未被初始化
1:

E/GLConsumer( 3229): [unnamed-3229-1] syncForReleaseLocked: error creating EGL fence: 0x3001
E/DefaultContextFactory( 3229): display:android.opengl.EGLDisplay@210 context: android.opengl.EGLContext@46bd535e
--------- beginning of crash
E/AndroidRuntime( 3229): FATAL EXCEPTION: GLThread 237
E/AndroidRuntime( 3229): Process: com.dp.test, PID: 3229
E/AndroidRuntime( 3229): java.lang.RuntimeException: eglDestroyContext failed: EGL_NOT_INITIALIZED
E/AndroidRuntime( 3229): at com.chillingvan.canvasgl.glview.texture.gles.EglHelper.throwEglException(EglHelper.java:226)
E/AndroidRuntime( 3229): at com.chillingvan.canvasgl.glview.texture.gles.GLThread$DefaultContextFactory.destroyContext(GLThread.java:994)
E/AndroidRuntime( 3229): at com.chillingvan.canvasgl.glview.texture.gles.EglHelperAPI17.finish(EglHelperAPI17.java:159)
E/AndroidRuntime( 3229): at com.chillingvan.canvasgl.glview.texture.gles.GLThread.stopEglContextLocked(GLThread.java:163)
E/AndroidRuntime( 3229): at com.chillingvan.canvasgl.glview.texture.gles.GLThread.guardedRun(GLThread.java:445)
E/AndroidRuntime( 3229): at com.chillingvan.canvasgl.glview.texture.gles.GLThread.run(GLThread.java:132)
F/libc ( 3229): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 3396 (faceRect)
2:

F/OpenGLRenderer( 3229): Failed to create EGLSurface for window 0xb950c000, eglErr = EGL_NOT_INITIALIZED
F/libc ( 3229): Fatal signal 6 (SIGABRT), code -6 in tid 3247 (RenderThread)
E/DEBUG ( 224): Failed to find a valid tombstone, default to using tombstone 0.
3:

I/OpenGLRenderer( 501): Initialized EGL, version 1.4
V/WindowManagerService( 501): Based on layer: Adding window Window{3025ee82 u0 com.dp.test/com.dp.test.LoginActivity} at 1 of 1
D/LoginActivity( 3229): onResume()
D/ViewRootImpl( 3229): 1920<<<<<< BACK FROM relayoutnull
F/OpenGLRenderer( 3229): Failed to create EGLSurface for window 0xb950c000, eglErr = EGL_NOT_INITIALIZED
F/libc ( 3229): Fatal signal 6 (SIGABRT), code -6 in tid 3247 (RenderThread)

@ChillingVan
Copy link
Owner

我试试写个Camera2的例子吧

@dpmaycry
Copy link
Author

dpmaycry commented Feb 8, 2018

这个跟camera2无关,我用camera1也这样,只是时间要长点,且不确定是不是我的手机固件有问题。。。5.1的

@ChillingVan
Copy link
Owner

好吧,只用我现在的例子就能重现吗?有没有例子,我看到上面有一个LoginActivity

@ChillingVan
Copy link
Owner

@dpmaycry 我尝试了一下,发现只熄屏的时候会卡住,表现和你的不同。但是不熄屏的时候30分钟也没问题。你长时间放时,屏幕有没有熄灭?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants