[TIMOB-13219] BlackBerry: Exceptions cause app failure with no error output or log
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-06-27T21:56:56.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | 2013 Sprint 07 BB, 2013 Sprint 07, Release 3.1.2, Release 3.2.0 |
Components | BlackBerry |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Pedro Enrique |
Created | 2013-03-26T16:31:36.000+0000 |
Updated | 2013-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
File | Date | Size |
---|---|---|
Screen Shot 2013-03-26 at 12.32.48 PM.png | 2013-03-26T16:31:36.000+0000 | 55080 |
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.
Reopening as we still dont have any error dialog on device or simulator(like the one shown in the screenshot) for BlackBerry.
Duplicate of 14365
Closing as duplicate.