Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-14200

Android Crash When Activity Destroyed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Cordova Android 7

      Tested on a Genymotion Emulator (Android 7.1.0, Nexus 5X)

      Target SDK: 26

      Description

       

      An exception occurs when a user clicks on a telephone link, for example, from within the InAppBrowser, if the app's activity is being destroyed because of low memory or from the Data Saver feature.

      1. Enable the 'Don't keep activities' setting in device Developer Settings
      2. Open app and go into InAppBrowser
      3. Within InAppBrowser, click a tel:XXX-XXX-XXXX link
      4. This will launch the Phone app
      5. A popup appears saying that our app crashed

       

      This is the stack generated:

       

      java.lang.IllegalArgumentException: Receiver not registered: android.widget.ZoomButtonsController$1@2ea8523
      at android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:1007)
      at android.app.ContextImpl.unregisterReceiver(ContextImpl.java:1330)
      at android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:608)
      at android.widget.ZoomButtonsController.setVisible(ZoomButtonsController.java:404)
      at ait.c(PG:376)
      at org.chromium.android_webview.AwContents.z(PG:594)
      at com.android.webview.chromium.WebViewChromium.onDetachedFromWindow(PG:992)
      at android.webkit.WebView.onDetachedFromWindowInternal(WebView.java:2365)
      at android.view.View.dispatchDetachedFromWindow(View.java:15561)
      at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3187)
      at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3179)
      at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3179)
      at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3179)
      at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3179)
      at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3179)
      at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3259)
      at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5917)
      at android.view.ViewRootImpl.die(ViewRootImpl.java:5894)
      at android.view.WindowManagerGlobal.removeViewLocked(WindowManagerGlobal.java:446)
      at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:384)
      at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:124)
      at android.app.Dialog.dismissDialog(Dialog.java:363)
      at android.app.Dialog.dismiss(Dialog.java:346)
      at org.apache.cordova.inappbrowser.InAppBrowser$5$1.onPageFinished(InAppBrowser.java:462)
      at yk.c(PG:236)
      at aje.handleMessage(PG:72)
      at android.os.Handler.dispatchMessage(Handler.java:102)
      at android.os.Looper.loop(Looper.java:154)
      at android.app.ActivityThread.main(ActivityThread.java:6119)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
      

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hvaughan3 Hines Vaughan III
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: