{ "id": "171546", "key": "MOD-2413", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20168", "name": "Ti.Worker 1.2.0", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-04-20T19:42:46.000+0000", "created": "2018-04-20T12:27:47.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios", "module", "ti.worker", "workers" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-08-06T17:49:29.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": "12115", "name": "Internal: Customer Assistance" } ], "description": "When running the sample of [ti.worker|https://github.com/appcelerator-modules/ti.worker/tree/master/ios/example] it works fine. As soon as \"terminate\" is clicked the app crashes. This is both on classic and Alloy apps.\r\n\r\nIt blocks the customer from implementing a heavy feature (where async is needed)\r\n\r\nCrash log:\r\n\r\n{code}\r\n[ERROR] : The application has crashed with an uncaught exception 'NSInvalidArgumentException'.\r\n[ERROR] : Reason:\r\n[ERROR] : -[TiWorkerProxy shutdown:]: unrecognized selector sent to instance 0x7fa56a515ec0\r\n[ERROR] : Stack trace:\r\n[ERROR] : 0 CoreFoundation 0x000000011744d113 __exceptionPreprocess + 147\r\n[ERROR] : 1 libobjc.A.dylib 0x0000000116400f41 objc_exception_throw + 48\r\n[ERROR] : 2 CoreFoundation 0x00000001174ce024 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132\r\n[ERROR] : 3 CoreFoundation 0x00000001173cff78 ___forwarding___ + 1432\r\n[ERROR] : 4 CoreFoundation 0x00000001173cf958 _CF_forwarding_prep_0 + 120\r\n[ERROR] : 5 Foundation 0x0000000110a86f35 __NSFireDelayedPerform + 409\r\n[ERROR] : 6 CoreFoundation 0x00000001173dd174 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20\r\n[ERROR] : 7 CoreFoundation 0x00000001173dce32 __CFRunLoopDoTimer + 1026\r\n[ERROR] : 8 CoreFoundation 0x00000001173dc9ea __CFRunLoopDoTimers + 266\r\n[ERROR] : 9 CoreFoundation 0x00000001173d4404 __CFRunLoopRun + 2308\r\n[ERROR] : 10 CoreFoundation 0x00000001173d3889 CFRunLoopRunSpecific + 409\r\n[ERROR] : 11 GraphicsServices 0x000000011a20c9c6 GSEventRunModal + 62\r\n[ERROR] : 12 UIKit 0x00000001110595d6 UIApplicationMain + 159\r\n[ERROR] : 13 workersample 0x000000010e9df684 main + 100\r\n[ERROR] : 14 libdyld.dylib 0x000000011869dd81 start + 1\r\n[ERROR] : 15 ??? 0x0000000000000001 0x0 + 1\r\n-- End simulator log ---------------------------------------------------------\r\n{code}", "attachment": [ { "id": "65070", "filename": "ti.worker-iphone-1.2.0.zip", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-04-20T16:07:51.000+0000", "size": 112422, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Ti.Worker crashes when terminating worker", "creator": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Using TiSDK 7.1.0.GA, TiSDK 6.3.0.GA\r\nBoth Classic & Alloy\r\niOS 11", "comment": { "comments": [ { "id": "437031", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is covered in [this PR|https://github.com/appcelerator-modules/ti.worker/pull/15] already. A new module version is attached for testing.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-04-20T16:07:19.000+0000", "updated": "2018-04-20T16:07:19.000+0000" }, { "id": "437039", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "App is not crashing with 1.2.0 and sample works & runs 3 workers as expected. \r\n\r\nTested using 7.1.0.GA on iOS 11.2 where it previously crashed.", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-04-20T19:42:35.000+0000", "updated": "2018-04-20T19:42:35.000+0000" }, { "id": "440188", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:29.000+0000", "updated": "2018-08-06T17:49:29.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }