java - android 4.4.4的设备运行一段时间后卡住不动了
高洛峰
高洛峰 2017-04-18 09:57:33
0
0
347

4.4.4的设备。在界面中有重复播放广告。用的exoplayer。程序一直使用一段时间之后出现应用卡住,也没有等待响应这种弹出框,就是卡住不动了。log异常如下:

09-09 14:32:53.642: E/ViewRootImpl(760): Could not lock surface
09-09 14:32:53.642: E/ViewRootImpl(760): java.lang.IllegalArgumentException
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.view.Surface.nativeLockCanvas(Native Method)
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.view.Surface.lockCanvas(Surface.java:247)
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2440)
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.view.ViewRootImpl.draw(ViewRootImpl.java:2414)
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2258)
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1888)
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1005)
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5609)
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.view.Choreographer.doCallbacks(Choreographer.java:574)
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.view.Choreographer.doFrame(Choreographer.java:544)
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.os.Handler.handleCallback(Handler.java:733)
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.os.Handler.dispatchMessage(Handler.java:95)
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.os.Looper.loop(Looper.java:136)
09-09 14:32:53.642: E/ViewRootImpl(760):     at android.app.ActivityThread.main(ActivityThread.java:5001)
09-09 14:32:53.642: E/ViewRootImpl(760):     at java.lang.reflect.Method.invokeNative(Native Method)
09-09 14:32:53.642: E/ViewRootImpl(760):     at java.lang.reflect.Method.invoke(Method.java:515)
09-09 14:32:53.642: E/ViewRootImpl(760):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:736)
09-09 14:32:53.642: E/ViewRootImpl(760):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:570)
09-09 14:32:53.642: E/ViewRootImpl(760):     at dalvik.system.NativeStart.main(Native Method)
09-09 14:32:53.652: E/Surface(760): dequeueBuffer failed (Invalid argument)

完全摸不着头脑,网上查了,是有相关的错误,不过没有一个解决办法。改过硬件加速为false,没有作用。

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

Antworte allen(0)
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!