Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26993

Android: WebView sometimes crashes on window close after zooming content

    Details

    • Story Points:
      3
    • Sprint:
      2019 Sprint 9

      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

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              michael Michael Gangolf
              Reviewer:
              Gary Mathews
              Tester:
              Lokesh Choudhary
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code