机器人无法锁定面:dequeueBuffer失败(未知的错误2147483646) [英] android Could not lock surface : dequeueBuffer failed (Unknown error 2147483646)

查看:390
本文介绍了机器人无法锁定面:dequeueBuffer失败(未知的错误2147483646)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

同时,通过我的app.It导航发生每5-10转换和重新启动应用程序,我收到此错误。

I am getting this error while navigating through my app.It happens every 5-10 transitions and restarts the app.

在这里我得到了,而应用程序崩溃的除外。

here is the exception i got while app crashes.

请帮我解决这个问题。

12-22 16:33:41.625: E/Surface(23199): dequeueBuffer failed (Unknown error 2147483646)
12-22 16:33:41.633: E/ViewRootImpl(23199): Could not lock surface
12-22 16:33:41.633: E/ViewRootImpl(23199): java.lang.IllegalArgumentException
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.view.Surface.nativeLockCanvas(Native Method)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.view.Surface.lockCanvas(Surface.java:243)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2461)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.view.ViewRootImpl.draw(ViewRootImpl.java:2435)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2279)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1909)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1019)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5725)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.view.Choreographer.doCallbacks(Choreographer.java:574)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.view.Choreographer.doFrame(Choreographer.java:544)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.os.Handler.handleCallback(Handler.java:733)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.os.Handler.dispatchMessage(Handler.java:95)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.os.Looper.loop(Looper.java:136)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at android.app.ActivityThread.main(ActivityThread.java:5086)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at java.lang.reflect.Method.invokeNative(Native Method)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at java.lang.reflect.Method.invoke(Method.java:515)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
12-22 16:33:41.633: E/ViewRootImpl(23199):  at dalvik.system.NativeStart.main(Native Method)

我GOOGLE了它,并得出了一些解决方案,但它们都是关于webview.I没用过的WebView或SurfaceView我的应用程序。
我也曾尝试机器人:hardwareAccelerated =清单文件,但问题仍然存在假

I googled it and came to some of the solutions but they are all about webview.I didn't used webview or SurfaceView in my app. I have also tried "android:hardwareAccelerated="false" in manifest file but issue still persist.

推荐答案

据毕加索造成这一issue.I被分配picasso.Using毕加索的一个Singleton对象解决问题的新对象。

It was Picasso causing this issue.I was allocating a new object of picasso.Using a Singleton Object of picasso solves the issue.

这篇关于机器人无法锁定面:dequeueBuffer失败(未知的错误2147483646)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆