{ "id": "172832", "key": "TIMOB-26705", "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": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-01-09T18:42:06.000+0000", "created": "2019-01-08T16:44:11.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [ { "id": "57104", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172818", "key": "TIMOB-26694", "fields": { "summary": "[iOS] Runtime errors are not shown in console ", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-01-09T18:42:10.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": "h5.Description\r\n\r\nCalling the hidden {{Ti.App._restart();}} method on iOS crashes with the below, this is bad as it's used in liveview to restart the app.\r\n\r\n{code}\r\n[ERROR] The application has crashed with an uncaught exception 'NSInvalidArgumentException'.\r\n[ERROR] Reason:\r\n[ERROR] -[TiRootViewController shutdownUi:]: unrecognized selector sent to instance 0x7fbee0023400\r\n[ERROR] Stack trace:\r\n[ERROR] 0 CoreFoundation 0x00000001160651bb __exceptionPreprocess + 331\r\n[ERROR] 1 libobjc.A.dylib 0x0000000114e6f735 objc_exception_throw + 48\r\n[ERROR] 2 CoreFoundation 0x0000000116083f44 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132\r\n[ERROR] 3 UIKitCore 0x0000000121f66b4a -[UIResponder doesNotRecognizeSelector:] + 287\r\n[ERROR] 4 CoreFoundation 0x0000000116069ed6 ___forwarding___ + 1446\r\n[ERROR] 5 CoreFoundation 0x000000011606bda8 _CF_forwarding_prep_0 + 120\r\n[ERROR] 6 ticreateapp 0x000000010f8804ae __22-[AppModule _restart:]_block_invoke + 94\r\n[ERROR] 7 libdispatch.dylib 0x000000011847c4e1 _dispatch_call_block_and_release + 12\r\n[ERROR] 8 libdispatch.dylib 0x000000011847d54b _dispatch_client_callout + 8\r\n[ERROR] 9 libdispatch.dylib 0x0000000118489380 _dispatch_main_queue_callback_4CF + 1290\r\n[ERROR] 10 CoreFoundation 0x0000000115fca3e9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9\r\n[ERROR] 11 CoreFoundation 0x0000000115fc4a76 __CFRunLoopRun + 2342\r\n[ERROR] 12 CoreFoundation 0x0000000115fc3e11 CFRunLoopRunSpecific + 625\r\n[ERROR] 13 GraphicsServices 0x000000011a5f31dd GSEventRunModal + 62\r\n[ERROR] 14 UIKitCore 0x0000000121f3881d UIApplicationMain + 140\r\n[ERROR] 15 ticreateapp 0x000000010f78d156 main + 950\r\n[ERROR] 16 libdyld.dylib 0x00000001184ed575 start + 1\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Add the code below to and app.js\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nwin.addEventListener('click', function () {\r\n Ti.App._restart();\r\n});\r\nwin.open()\r\n{code}\r\n2. Click the window\r\n\r\nh5.Actual\r\n\r\nAbove crash\r\n\r\nh5.Expected\r\n\r\nApp should restart back to the clean state", "attachment": [], "flagged": false, "summary": "iOS: Ti.App._restart() crashes application", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "SDK: 8.0.0.v20190108054341\r\niOS 12.1 simulator\r\niOS 12.1 device", "closedSprints": [ { "id": 1106, "state": "closed", "name": "2019 Sprint 1", "startDate": "2018-12-31T19:39:58.070Z", "endDate": "2019-01-11T19:39:00.000Z", "completeDate": "2019-01-14T17:17:47.552Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "445085", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/10582", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-08T19:11:53.000+0000", "updated": "2019-01-08T19:11:53.000+0000" }, { "id": "445092", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR passed.Waiting for CR to merge.", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-01-08T20:07:38.000+0000", "updated": "2019-01-08T20:07:38.000+0000" }, { "id": "445107", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "8_0_X: https://github.com/appcelerator/titanium_mobile/pull/10587", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-08T22:09:39.000+0000", "updated": "2019-01-08T22:09:39.000+0000" }, { "id": "445141", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "[~gmathews] Was this fixed by [~vijaysingh]'s fix for TIMOB-26694? Can we resolve/close it (since that was merged)?", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-01-09T18:36:52.000+0000", "updated": "2019-01-09T18:36:52.000+0000" }, { "id": "445143", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Fixed by [~vijaysingh] in his fix for the related TIMOB-26694. PRs were:\r\nPR (master) - https://github.com/appcelerator/titanium_mobile/pull/10593\r\nPR (8_0_X) - https://github.com/appcelerator/titanium_mobile/pull/10594", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-01-09T18:42:06.000+0000", "updated": "2019-01-09T18:42:06.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }