Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.util.concurrent.TimeoutException: android.view.ThreadedRenderer.finalize() timed out after 10 seconds

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?

EDIT: 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.

like image 317
casolorz Avatar asked Dec 01 '14 16:12

casolorz


1 Answers

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

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); } 
like image 75
ToYonos Avatar answered Sep 19 '22 01:09

ToYonos