{ "id": "176152", "key": "TIMOB-28420", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "21199", "description": "", "name": "Release 10.0.1", "archived": false, "released": true, "releaseDate": "2021-07-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-06-17T10:06:23.000+0000", "created": "2021-04-14T03:29:12.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "exception", "ios", "parity" ], "versions": [], "issuelinks": [ { "id": "59254", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "176151", "key": "TIMOB-28419", "fields": { "summary": "iOS: Handling native stack causes app crash", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "59256", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "176146", "key": "TIMOB-28415", "fields": { "summary": "iOS: KrollBridge no longer exposes \"modules\" method as of 10.0.0", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-06-17T10:06:23.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Summary:*\r\nWhen an \"unhandled\" JavaScript exception occurs, we display an error dialog with a stack trace to make it easy to debug. We need to do the same for native Objective-C and Swift exceptions (ie: thrown {{NSException}} objects) which shows both a native stack trace and JavaScript stack trace.\r\n\r\nCurrently, native exceptions are logged and then they immediately hard-crash the app.\r\n\r\n*Note:*\r\nI think this issue might be preventing us from posting native stack traces to our ACA (AMPLIFY Crash Analytics), but I have not confirmed this.\r\n\r\n*Test:*\r\n# Build and run the below code on iOS.\r\n# Notice app crashes and goes back to home screen. _(Should show error dialog.)_\r\n\r\n{code:javascript}\r\nTi.Filesystem.openStream(0, false);\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: Unhandled native exceptions invoked via JS should show an error dialog", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "458576", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12721", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-14T03:51:25.000+0000", "updated": "2021-04-14T03:51:25.000+0000" }, { "id": "458790", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-06-16T20:07:37.000+0000", "updated": "2021-06-16T20:07:37.000+0000" }, { "id": "458792", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "backport merged", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-06-17T10:06:18.000+0000", "updated": "2021-06-17T10:06:18.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }