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

BlackBerry: Exceptions cause app failure with no error output or log

    Details

      Description

      Basic exceptions in Blackberry Titanium apps are causing the app the crash and fail with no error output whatsoever, making debugging and troubleshooting next to impossible. For example, take this code which represents a common mistake in Titanium development:

      var win = Ti.UI.Window({
      	backgroundColor: '#eee'
      });
      win.open();
      

      Ti.UI.Window() should be Ti.UI.createWindow(). Instead of throwing a red screen of death notifying me that there was a runtime exception at a specific file and line, or notifying me in the TiStudio console, I get nothing in both places leaving me with zero information to act on. If I run the exact same code on iOS, I get the following log in TiStudio and I also get the attached image in the simulator itself, making it very clear where I went wrong.

      [ERROR] :  Script Error {
      [ERROR] :      backtrace = "#0 () at :0";
      [ERROR] :      line = 2;
      [ERROR] :      message = "'undefined' is not a function (evaluating 'Ti.UI.Window({\n\tbackgroundColor: '#eee'\n})')";
      [ERROR] :      name = TypeError;
      [ERROR] :      sourceId = 292190816;
      [ERROR] :      sourceURL = "file://localhost/Users/tlukasavage/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/25D2F0D4-B225-4E19-A830-4EE6DB0093A0/aaaa.app/app.js";
      [ERROR] :  }
      

      IMHO this is a very important issue that needs to be resolved otherwise developer iterations will be painfully slow and generally ineffective.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                penrique Pedro Enrique (Inactive)
                Reporter:
                tlukasavage Tony Lukasavage
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration