[TIMOB-5187] Titanium Mobile 1.7 not dying on errors correctly
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2011-11-16T16:18:00.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Sprint 2011-46, Release 1.8.0.1 |
| Components | iOS |
| Labels | n/a |
| Reporter | Christian Seiler |
| Assignee | Reggie Seagraves |
| Created | 2011-07-19T04:27:02.000+0000 |
| Updated | 2014-06-19T12:46:32.000+0000 |
Description
This ticket is in response to http://developer.appcelerator.com/question/121717/titanium-mobile-17-not-dying-on-errors-correctly
Not all exceptions properly show up in the UI and logs with 1.7.1:
The exception in the onload function does not show up:
client = Ti.Network.createHTTPClient();
client.timeout = 15000;
client.onload = function() {
Ti.API.debug(client.status);
try {
Ti.API.ddddd2();
}
catch(e) {
Ti.API.info("This exception won't show up in the logs: " + e);
throw e;
}
};
client.open('GET', "http://www.appcelerator.com", true);
client.send();
try {
Ti.API.ddddd2();
}
catch(e) {
Ti.API.info("This exception will show up in the logs: " + e);
throw e;
}
I'd say the sample code says it all. Maybe there is something going on related to threads (maybe callbacks run in a different thread or something like that)?
Christian If you complete the environment section and edit the body to use a wiki markup code block, we can accept this ticket. Please refer to the [Jira Ticket Checklist](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist) to find out what information is required for future tickets. Many thanks
added some info. BTW, why is http://developer.appcelerator.com/question/121717/titanium-mobile-17-not-dying-on-errors-correctly locked?
Well-described issue, Christian, thank you! :)
Any update on this one?
Validated as working with 1.8.0.1.
closing as we are not able to reproduce using master (1.9.0 Feb 9 2012 09:46 rd47ce8a4)