{ "id": "169572", "key": "AC-5143", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-10-17T19:45:38.000+0000", "created": "2017-08-16T04:28:11.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "57498", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "173474", "key": "TIMOB-26986", "fields": { "summary": "Titanium.App.uncaughtException does not get fired even when forcing JS errors", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-04-16T18:30:31.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Titanium.App.uncaughtException does not get fired even when forcing JS errors\r\n\r\n{code:java}\r\nTi.App.addEventListener(\"uncaughtException\", function (e) {\r\n Ti.API.info(\"Uncaught JS exception captured\");\r\n});\r\n\r\nvar b = 1/a;\r\nvar c = a*b+c;\r\nthrow new Error(\"Error Capture Test\");\r\n{code}", "attachment": [], "flagged": false, "summary": "Titanium.App.uncaughtException does not get fired even when forcing JS errors", "creator": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "environment": null, "comment": { "comments": [ { "id": "426775", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Is this iOS or Android? The following works on iOS:\r\n{code:js}\r\n/**\r\n * This file is used to validate iOS test-cases. It is ran using the Xcode\r\n * project in titanium_mobile/iphone/iphone/Titanium.xcodeproj.\r\n *\r\n * Change the below code to fit your use-case. By default, it included a button\r\n * to trigger a log that is displayed in the Xcode console.\r\n */\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nTi.App.addEventListener(\"uncaughtException\", function (e) {\r\n Ti.API.info(\"Uncaught JS exception captured\");\r\n});\r\n \r\nvar btn = Ti.UI.createButton({\r\n title: 'Trigger'\r\n});\r\n\r\nbtn.addEventListener('click', function() {\r\n var b = 1/a;\r\n var c = a*b+c;\r\n throw new Error(\"Error Capture Test\");\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-08-16T10:59:11.000+0000", "updated": "2017-08-16T10:59:11.000+0000" }, { "id": "427001", "author": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "body": "It works on Android but does NOT work on iOS for me (both on device and simulator). Not sure what may be the difference in setup between your test project and ours. We are currently using \"yy.logcatcher\" to resolve this issue.", "updateAuthor": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2017-08-22T03:50:21.000+0000", "updated": "2017-08-22T03:50:21.000+0000" }, { "id": "429198", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, This works for me on both iOS and Android, Tested in Android device and iOS simulator. SDK 6.2.2.GA. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-10-17T19:45:23.000+0000", "updated": "2017-10-17T19:45:23.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }