无法锁定表面错误

时间:2015-08-05 14:57:19

标签: android opengl-es android-canvas samsung-mobile illegalargumentexception

我遇到三星Galaxy Core GT I8262的奇怪崩溃。我选择作为启动活动的任何活动都会在几秒后发出此错误。这个结果是手机一次又一次重启。当我卸载我的应用程序时,重新启动停止。我环顾四周但找不到任何具体的解决方案。任何帮助将受到高度赞赏。我猜这个问题只能在AndroidManifest.xml中修复。请注意我没有使用任何SurfaceView。

D/OpenGLRenderer(383): Enabling debug mode 0

E / SurfaceTextureClient(25082): queueBuffer: error queuing buffer to SurfaceTexture, -19
W / Adreno200 - EGLSUB(25082): < DequeueBuffer: 420 > : dequeue native buffer fail: No such device
W / Adreno200 - EGLSUB(25082): < DequeueBuffer: 420 > : dequeue native buffer fail: No such device
W / Adreno200 - EGLSUB(25082): < DequeueBuffer: 420 > : dequeue native buffer fail: No such device
W / Adreno200 - EGL(25082): < eglSurfaceResize: 3570 > : EGL_BAD_ALLOC
W / HardwareRenderer(25082): EGL error: EGL_BAD_ALLOC
W / HardwareRenderer(25082): Mountain View, we 've had a problem here. Switching back to software rendering.
E / ViewRootImpl(25082): Could not lock surface
E / ViewRootImpl(25082): java.lang.IllegalArgumentException
E / ViewRootImpl(25082): at android.view.Surface.lockCanvasNative(Native Method)
E / ViewRootImpl(25082): at android.view.Surface.lockCanvas(Surface.java: 88)
E / ViewRootImpl(25082): at android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java: 2354)
E / ViewRootImpl(25082): at android.view.ViewRootImpl.draw(ViewRootImpl.java: 2317)
E / ViewRootImpl(25082): at android.view.ViewRootImpl.performDraw(ViewRootImpl.java: 2185)
E / ViewRootImpl(25082): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java: 1993)
E / ViewRootImpl(25082): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java: 1143)
E / ViewRootImpl(25082): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java: 4674)
E / ViewRootImpl(25082): at android.view.Choreographer$CallbackRecord.run(Choreographer.java: 725)
E / ViewRootImpl(25082): at android.view.Choreographer.doCallbacks(Choreographer.java: 555)
E / ViewRootImpl(25082): at android.view.Choreographer.doFrame(Choreographer.java: 525)
E / ViewRootImpl(25082): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java: 711)
E / ViewRootImpl(25082): at android.os.Handler.handleCallback(Handler.java: 615)
E / ViewRootImpl(25082): at android.os.Handler.dispatchMessage(Handler.java: 92)
E / ViewRootImpl(25082): at android.os.Looper.loop(Looper.java: 137)
E / ViewRootImpl(25082): at android.app.ActivityThread.main(ActivityThread.java: 4960)
E / ViewRootImpl(25082): at java.lang.reflect.Method.invokeNative(Native Method)
E / ViewRootImpl(25082): at java.lang.reflect.Method.invoke(Method.java: 511)
E / ViewRootImpl(25082): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 1038)
E / ViewRootImpl(25082): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java: 805)
E / ViewRootImpl(25082): at dalvik.system.NativeStart.main(Native Method)

1 个答案:

答案 0 :(得分:1)

管理解决此问题。崩溃日志与问题无关。我正在设置一个不存在的SyncInterval,这导致了这次崩溃。

祝所有人遇到这个问题好运:)