java.util.concurrent.TimeoutException:android.view.ThreadedRenderer.finalize()在10秒后超时 [英] java.util.concurrent.TimeoutException: android.view.ThreadedRenderer.finalize() timed out after 10 seconds

查看:598
本文介绍了java.util.concurrent.TimeoutException:android.view.ThreadedRenderer.finalize()在10秒后超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到有关Lollipop的奇怪崩溃报告.我的应用程序基本上是浏览器,因此它大量使用了WebView,但我不知道该问题在那里发生.无论如何,崩溃报告并没有提供太多有用的信息,本质上是我在下面粘贴的内容:

I am getting this strange crash reports on Lollipop. My app is basically a browser so it makes heavy use of the WebView but I don't know that the issue is happening there. Anyways the crash report doesn't give much useful information, it is essentially what I am pasting below:

java.util.concurrent.TimeoutException: android.view.ThreadedRenderer.finalize() timed out after 10 seconds
at android.view.ThreadedRenderer.nDeleteProxy(Native Method)
at android.view.ThreadedRenderer.finalize(ThreadedRenderer.java:398)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:190)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:173)
at java.lang.Thread.run(Thread.java:818)

有人看过吗?知道是什么原因造成的吗?

Has anyone seen this? any idea what might be causing it?

我应该提到,这是在我已经使用了大约10个月的应用程序上发生的,并且它始终只针对4.0+设备.该错误仅在5.0设备上被报告,并且Play Store Console给我的都是上述stacktrace.

I should mention that this is happening on an app which I've had for about 10 months and it has always only targeted 4.0+ devices. The bug is only being reported on 5.0 devices and that stacktrace above is all the Play Store Console gives me.

推荐答案

自KitKat以来,我遇到了WebViews问题(冻结,崩溃)

Since KitKat, I have issues with WebViews (freeze, crash)

我已经解决了这些问题,从而停用了webViews的硬件加速.它可以为您工作.

I have resolved these issues deactivating hardware acceleration for webViews. It could work for you.

if (Build.VERSION.SDK_INT >= 19) // KITKAT
{
    webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
}

这篇关于java.util.concurrent.TimeoutException:android.view.ThreadedRenderer.finalize()在10秒后超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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