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

Android: App intermittently crashes on app restart

    Details

      Description

      var win = Ti.UI.createWindow({
          backgroundColor: '#ccc'
      });
         
      var webView = Ti.UI.createWebView({ url: "http://www.google.com" });
       
      webView.addEventListener("load", function() {
          Ti.API.info("webView loaded");
          setInterval(doSomething, 1000);
      });
         
      win.add(webView);
           
      win.open();
       
       
      function doSomething() {
          Ti.API.info("interval triggered");
          try {
              var result = webView.evalJS("1+1");
              Ti.API.info("RESULT: " + result);
          } catch(e) {
              Ti.API.info("ERROR: " + e);
          }
      }
      

      1. Launch the code snippet
      2. Browse to a different web page, and hit the 'back' button when the page is loading
      3. Immediately launch the app again once the app closes.

      (This is some kind of race condition and happens intermittently. You may need to try several times)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code