[TIMOB-5892] iOS: needs to handle thrown exceptions (revisiting)
GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Done |
Resolution Date | 2018-02-03T22:32:21.000+0000 |
Affected Version/s | Release 1.6.0 |
Fix Version/s | Sprint 2011-43, Release 1.8.0 |
Components | iOS |
Labels | module_exceptions, qe-testadded |
Reporter | Stephen Tramer |
Assignee | Unknown |
Created | 2011-10-27T17:57:53.000+0000 |
Updated | 2018-08-06T17:34:54.000+0000 |
Description
Bad news! iOS does not forward exceptions properly to the JSCore system, meaning that unhandled exceptions result in crashes. What we need to do is catch exceptions from Kroll invokes (and potentially on other threads via the uncaught exception handler...) and forward them to the JSCore system so that they can be caught on the user side (although if they're uncaught, we need to figure out what to do about that, and how JS responds.)
Could be handed off.
Attachments
Pull https://github.com/appcelerator/titanium_mobile/pull/598 pending.
Reopening issue to add qe-port label
Closing bug after adding label
Reopening issue to add tags
Added tag
App gets crash on selecting different item. Tested With: SDK - 3.1.0.v20130403114957 Studio - 3.1.0.201304011603 Device - iPhone5 (v6.0) OS - OSX 10.8
App throws exception on the following environment: SDK:3.1.1.v20130517185716 Appcelerator Studio: 3.1.1.201305181057 OS: OSX 10.7.5 Device:iPhone5(6.0) Xcode: 4.6
This is serious, if there is any SQLite exception a common one is: Terminating app due to uncaught exception 'PLSqliteException' There is nothing you can do about it your app is toast. Right now I think it's an internal SQLite database that Appcelerator uses, as my app continually and immediately crashes on some user's iPads when you try to open the app.
Tested using 7.1.0 (master) and the test case from TIMOB-3042 does not cause a crash on JSCore-enabled apps anymore.
Closed as completed. If this is in error, please reopen.