[TIMOB-26993] Android: WebView sometimes crashes on window close after zooming content
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-04-25T12:17:29.000+0000 |
Affected Version/s | Release 7.3.0 |
Fix Version/s | Release 8.1.0 |
Components | Android |
Labels | android, engSchedule, webview, zoom |
Reporter | Michael Gangolf |
Assignee | Joshua Quick |
Created | 2019-04-24T21:43:57.000+0000 |
Updated | 2019-04-25T12:17:29.000+0000 |
Description
*Summary:*
Android's
WebView
will sometimes crash when closing its parent window after zooming its web content.
*Result:*
The following stack trace happens when it crashes.
[ERROR] TiExceptionHandler: (main) [412568,573163] null
[ERROR] TiExceptionHandler:
[ERROR] TiExceptionHandler: ti.modules.titanium.ui.widget.webview.TiUIWebView.setZoomLevel(TiUIWebView.java:578)
[ERROR] TiExceptionHandler: ti.modules.titanium.ui.widget.webview.TiWebViewClient.onScaleChanged(TiWebViewClient.java:376)
[ERROR] TiExceptionHandler: com.android.webview.chromium.WebViewContentsClientAdapter.onScaleChangedScaled(WebViewContentsClientAdapter.java:789)
[ERROR] TiExceptionHandler: com.android.org.chromium.android_webview.AwContentsClientCallbackHelper$MyHandler.handleMessage(AwContentsClientCallbackHelper.java:139)
[ERROR] TiExceptionHandler: android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] TiExceptionHandler: android.os.Looper.loop(Looper.java:136)
[ERROR] TiExceptionHandler: android.app.ActivityThread.main(ActivityThread.java:5001)
[ERROR] TiExceptionHandler: java.lang.reflect.Method.invokeNative(Native Method)
[ERROR] TiExceptionHandler: java.lang.reflect.Method.invoke(Method.java:515)
[ERROR] TiExceptionHandler: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
[ERROR] TiExceptionHandler: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
[ERROR] TiExceptionHandler: dalvik.system.NativeStart.main(Native Method)
*Note:*
This issue is difficult to reproduce, but it sometimes occurs with our mocha unit tests here...
https://github.com/appcelerator/titanium-mobile-mocha-suite/blob/master/Resources/ti.ui.webview.test.js
This issue has been mentioned on Slack here...
https://ti-slack.slack.com/archives/C03CVLS0U/p1547721498070400
PR (master): https://github.com/appcelerator/titanium_mobile/pull/10632
PR Merged
Closing ticket, fix verified in SDK Version 8.1.0.v20190423134840 Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/10632