Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13219] BlackBerry: Exceptions cause app failure with no error output or log

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2013-06-27T21:56:56.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 07 BB, 2013 Sprint 07, Release 3.1.2, Release 3.2.0
ComponentsBlackBerry
Labelsn/a
ReporterTony Lukasavage
AssigneePedro Enrique
Created2013-03-26T16:31:36.000+0000
Updated2013-08-12T23:45:08.000+0000

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

FileDateSize
Screen Shot 2013-03-26 at 12.32.48 PM.png2013-03-26T16:31:36.000+000055080

Comments

  1. Josh Roesslein 2013-04-05

    The logs being viewable should be fixed in Studio (TIMOB-12404). We still have no error dialog, but we can track that feature with this ticket.
  2. Lokesh Choudhary 2013-06-18

    Reopening as we still dont have any error dialog on device or simulator(like the one shown in the screenshot) for BlackBerry.
  3. Russell McMahon 2013-06-27

    Duplicate of 14365
  4. Lokesh Choudhary 2013-08-12

    Closing as duplicate.

JSON Source