Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5187] Titanium Mobile 1.7 not dying on errors correctly

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2011-11-16T16:18:00.000+0000
Affected Version/sn/a
Fix Version/sSprint 2011-46, Release 1.8.0.1
ComponentsiOS
Labelsn/a
ReporterChristian Seiler
AssigneeReggie Seagraves
Created2011-07-19T04:27:02.000+0000
Updated2014-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)?

Comments

  1. Paul Dowsett 2011-07-25

    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
  2. Christian Seiler 2011-07-26

    added some info. BTW, why is http://developer.appcelerator.com/question/121717/titanium-mobile-17-not-dying-on-errors-correctly locked?
  3. Paul Dowsett 2011-08-31

    Well-described issue, Christian, thank you! :)
  4. Christian Seiler 2011-10-26

    Any update on this one?
  5. Reggie Seagraves 2011-11-16

    Validated as working with 1.8.0.1.
  6. Thomas Huelbert 2012-02-09

    closing as we are not able to reproduce using master (1.9.0 Feb 9 2012 09:46 rd47ce8a4)

JSON Source