[MOD-2413] iOS: Ti.Worker crashes when terminating worker
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-04-20T19:42:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Ti.Worker 1.2.0 |
Components | Internal: Customer Assistance |
Labels | ios, module, ti.worker, workers |
Reporter | Rene Pot |
Assignee | Hans Knöchel |
Created | 2018-04-20T12:27:47.000+0000 |
Updated | 2018-08-06T17:49:29.000+0000 |
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.
It blocks the customer from implementing a heavy feature (where async is needed)
Crash log:
[ERROR] : The application has crashed with an uncaught exception 'NSInvalidArgumentException'.
[ERROR] : Reason:
[ERROR] : -[TiWorkerProxy shutdown:]: unrecognized selector sent to instance 0x7fa56a515ec0
[ERROR] : Stack trace:
[ERROR] : 0 CoreFoundation 0x000000011744d113 __exceptionPreprocess + 147
[ERROR] : 1 libobjc.A.dylib 0x0000000116400f41 objc_exception_throw + 48
[ERROR] : 2 CoreFoundation 0x00000001174ce024 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
[ERROR] : 3 CoreFoundation 0x00000001173cff78 ___forwarding___ + 1432
[ERROR] : 4 CoreFoundation 0x00000001173cf958 _CF_forwarding_prep_0 + 120
[ERROR] : 5 Foundation 0x0000000110a86f35 __NSFireDelayedPerform + 409
[ERROR] : 6 CoreFoundation 0x00000001173dd174 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
[ERROR] : 7 CoreFoundation 0x00000001173dce32 __CFRunLoopDoTimer + 1026
[ERROR] : 8 CoreFoundation 0x00000001173dc9ea __CFRunLoopDoTimers + 266
[ERROR] : 9 CoreFoundation 0x00000001173d4404 __CFRunLoopRun + 2308
[ERROR] : 10 CoreFoundation 0x00000001173d3889 CFRunLoopRunSpecific + 409
[ERROR] : 11 GraphicsServices 0x000000011a20c9c6 GSEventRunModal + 62
[ERROR] : 12 UIKit 0x00000001110595d6 UIApplicationMain + 159
[ERROR] : 13 workersample 0x000000010e9df684 main + 100
[ERROR] : 14 libdyld.dylib 0x000000011869dd81 start + 1
[ERROR] : 15 ??? 0x0000000000000001 0x0 + 1
-- End simulator log ---------------------------------------------------------
Attachments
File | Date | Size |
---|---|---|
ti.worker-iphone-1.2.0.zip | 2018-04-20T16:07:51.000+0000 | 112422 |
This is covered in [this PR](https://github.com/appcelerator-modules/ti.worker/pull/15) already. A new module version is attached for testing.
App is not crashing with 1.2.0 and sample works & runs 3 workers as expected. Tested using 7.1.0.GA on iOS 11.2 where it previously crashed.
Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.