android报ViewRootImpl: Could not lock surface 2C

android APP页面只有一个webview,加载H5页面,有时进入该页面页面就卡住了,有时在进行上拉加载时,页面卡住,提示:
06-07 14:44:50.768 24533-24533/com.haier.uhome.appliance E/Surface: dequeueBuffer failed (Unknown error 2147483646)
06-07 14:44:50.768 24533-24533/com.haier.uhome.appliance E/ViewRootImpl: Could not lock surface
java.lang.IllegalArgumentException
at android.view.Surface.nativeLockCanvas(Native Method)
at android.view.Surface.lockCanvas(Surface.java:253)
at android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2721)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2695)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2533)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2107)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1200)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6388)
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:5293)
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),请大神帮忙指点一下,谢谢。

2个回答

com.haier.uhome.appliance 这是啥

http://www.jianshu.com/p/3c94ae673e2a

去看一下全面的webview参数及缓存知识,多用参数去控制一下。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!