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

Webview fatal exception / crash on re-open

    Details

      Description

      1. Open KitchenSink.
      2. Go to Base UI > Views > Web Views > Local URL.
      3. Then cause the app to close. NOT by force-stopping it from Settings > Applications[1], but by opening enough other applications to use up memory.
      4. Now reopen KitchenSink. It will crash.

      The output from logcat includes multiple entries such as:

      E/TiBaseActivity(10988): java.lang.RuntimeException: Can't marshal non-Parcelable objects across processes.
      E/TiUncaughtHandler(10988): (main) [26,9530] Sending event: exception on thread: main msg:android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@40514928 is not valid; is your activity running?; Titanium 1.7.0,2011/03/31 12:08,6cae16
      E/TiUncaughtHandler(10988): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@40514928 is not valid; is your activity running?
      

      The result is that any Android webview-based app will crash on reopen (whether it was closed by the system, a crash, etc.) every single time.

      For more detail/discussion, see Q&A at: Android webview crashes

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ayeung Allen Yeung
                Reporter:
                kt_ KT
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-3731
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code