Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5892] iOS: needs to handle thrown exceptions (revisiting)

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDone
Resolution Date2018-02-03T22:32:21.000+0000
Affected Version/sRelease 1.6.0
Fix Version/sSprint 2011-43, Release 1.8.0
ComponentsiOS
Labelsmodule_exceptions, qe-testadded
ReporterStephen Tramer
AssigneeUnknown
Created2011-10-27T17:57:53.000+0000
Updated2018-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

FileDateSize
iOSDeviceLog2013-04-04T12:52:42.000+00003795

Comments

  1. Blain Hamon 2011-10-27

    Pull https://github.com/appcelerator/titanium_mobile/pull/598 pending.
  2. Wilson Luu 2011-12-10

  3. Wilson Luu 2011-12-10

    Reopening issue to add qe-port label
  4. Wilson Luu 2011-12-10

    Closing bug after adding label
  5. Wilson Luu 2012-01-05

    Reopening issue to add tags
  6. Wilson Luu 2012-01-05

    Added tag
  7. Dhirendra Jha 2013-04-04

    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
  8. Anshu Mittal 2013-05-20

    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
  9. Mark Henderson 2015-12-04

    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.
  10. Hans Knöchel 2018-02-03

    Tested using 7.1.0 (master) and the test case from TIMOB-3042 does not cause a crash on JSCore-enabled apps anymore.
  11. Eric Merriman 2018-08-06

    Closed as completed. If this is in error, please reopen.

JSON Source