Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26993] Android: WebView sometimes crashes on window close after zooming content

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-04-25T12:17:29.000+0000
Affected Version/sRelease 7.3.0
Fix Version/sRelease 8.1.0
ComponentsAndroid
Labelsandroid, engSchedule, webview, zoom
ReporterMichael Gangolf
AssigneeJoshua Quick
Created2019-04-24T21:43:57.000+0000
Updated2019-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

Comments

  1. Joshua Quick 2019-04-24

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/10632
  2. Lokesh Choudhary 2019-04-24

    PR Merged
  3. Samir Mohammed 2019-04-25

    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

JSON Source