Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27528] iOS: uncaught exceptions in event listeners don't show error modal

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2020-02-17T14:10:35.000+0000
Affected Version/sRelease 8.3.0
Fix Version/sRelease 9.0.0
ComponentsiOS
LabelsengSchedule
ReporterChristopher Williams
AssigneeChristopher Williams
Created2019-11-05T15:46:47.000+0000
Updated2020-02-17T14:10:35.000+0000

Description

If code throws an uncaught exception in a "new" obj-c based proxy inside of an event listener (possibly also a timer), it behaves differently than when an "old style" C-API proxy does so. In old style proxies, we had a global uncaught exception handler that popped the error modal dialog (and possibly also linked to the crash reporting module?). With new style proxies the exception basically gets propagated up and if the user JS code doesn't handle it via try/catch it can cause a crash. We had tried to handle this in an incorrect way that had to be rolled back here: https://github.com/appcelerator/titanium_mobile/pull/10862

Comments

  1. Christopher Williams 2019-11-05

    Mentioned here: https://github.com/appcelerator/titanium_mobile/pull/11308#issue-335095521
  2. Christopher Williams 2020-01-17

    https://github.com/appcelerator/titanium_mobile/pull/11439
  3. Christopher Williams 2020-02-13

    merged to master and 9_0_X for 9.0.0
  4. Samir Mohammed 2020-02-17

    Closing ticket, Changes present in SDK version 9.1.0.v20200214034612 and 9.0.0.v20200214143652

JSON Source