Status: Unconfirmed
Owner: ----
Labels: Stability-Crash Pri-2 Via-Wizard Type-Bug OS-Android
New issue 448389 by
car...@instantbits.com: WebView crashes on opening of
popup
https://code.google.com/p/chromium/issues/detail?id=448389
Steps to reproduce the problem:
I have a browser app which uses the Android WebView and I am getting crash
reports on the Play Developer Console for 5.0 devices only. The users claim
the crash happens sometimes when they open a popup. I have not been able to
reproduce the issue but I have a lot of users reporting this issue.
The exception that comes through on the crash report on the Play Developer
Console is this:
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)
This is what my onCreateWindow method looks like:
public boolean onCreateWindow(WebView view, final boolean dialog, final
boolean userGesture, final Message resultMsg) {
try {
if (!Config.isBlockPopups()) {
Log.w(TAG, "CREATE WINDOW for " + view.getOriginalUrl());
if (userGesture) {
WebView childView = new WebView(webBrowserActivity);
webBrowserActivity.addWebView(childView, true);
WebView.WebViewTransport transport =
(WebView.WebViewTransport) resultMsg.obj;
transport.setWebView(childView);
resultMsg.sendToTarget();
return true;
} else {
return false;
}
}else{
Toast.makeText(webBrowserActivity, R.string.popup_blocked,
Toast.LENGTH_LONG).show();
return false;
}
} catch (Throwable ex) {
Log.w(TAG, "Error creating window", ex);
return super.onCreateWindow(view,dialog,userGesture,resultMsg);
}
}
What is the expected behavior?
What went wrong?
The whole app crashes sometimes when opening popups.
Crashed report ID:
How much crashed? Whole browser
Is it a problem with a plugin? No
Did this work before? Yes Before Android 5.0
Chrome version: 37 Channel: n/a
OS Version: 5.0
Flash Version:
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings