{ "id": "174329", "key": "TIMOB-27515", "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": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-11-06T18:20:25.000+0000", "created": "2019-10-31T17:54:41.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "engSchedule" ], "versions": [ { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "issuelinks": [ { "id": "57900", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "174336", "key": "TIMOB-27528", "fields": { "summary": "iOS: uncaught exceptions in event listeners don't show error modal", "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": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2019-11-06T18:20:25.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": "On master branch, running the unit test suite locally causes a crash of the app for me.\r\n\r\nSpecifically, the deploy-type being set to test seems to be the trigger here. The Titanium.FileSystem.openStream test crashes with the output:\r\n{code}\r\n[INFO] !TEST_START: openStream()\r\n[ERROR] Script Error {\r\n[ERROR] column = 32;\r\n[ERROR] line = 104;\r\n[ERROR] message = \"The iOS reported an error\";\r\n[ERROR] nativeStack = (\r\n[ERROR] 0 CoreFoundation 0x00007fff23b98bde __exceptionPreprocess + 350\r\n[ERROR] 1 libobjc.A.dylib 0x00007fff503b5b20 objc_exception_throw + 48\r\n[ERROR] 2 TitaniumKit 0x000000010357c63d JavascriptNameForClass + 0\r\n[ERROR] 3 TitaniumKit 0x0000000103587ee5 -[TiFilesystemFileStreamProxy _initWithPageContext:args:] + 845\r\n[ERROR] 4 mocha 0x000000010299dea8 -[FilesystemModule openStream:] + 968\r\n[ERROR] 5 CoreFoundation 0x00007fff23b9f95c __invoking___ + 140\r\n[ERROR] 6 CoreFoundation 0x00007fff23b9cd8f -[NSInvocation invoke] + 287\r\n[ERROR] 7 JavaScriptCore 0x00007fff269674bb _ZN3JSC24ObjCCallbackFunctionImpl4callEP9JSContextP13OpaqueJSValuemPKPKS3_PS6_ + 411\r\n[ERROR] 8 JavaScriptCore 0x00007fff26966f04 _ZN3JSCL34objCCallbackFunctionCallAsFunctionEPK15OpaqueJSContextP13OpaqueJSValueS4_mPKPKS3_PS6_ + 244\r\n[ERROR] 9 JavaScriptCore 0x00007fff2696682f _ZN3JSC19APICallbackFunction4callINS_20ObjCCallbackFunctionEEExPNS_9ExecStateE + 511\r\n[ERROR] 10 ??? 0x000031c4d2801027 0x0 + 54721414959143\r\n[ERROR] 11 JavaScriptCore 0x00007fff2693caa3 llint_entry + 93226\r\n[ERROR] 12 ??? 0x000031c4d28a6586 0x0 + 54721415636358\r\n[ERROR] 13 ??? 0x000031c4d28e20b6 0x0 + 54721415880886\r\n[ERROR] 14 ??? 0x000031c4d28db616 0x0 + 54721415853590\r\n[ERROR] 15 ??? 0x000031c4d287c8ad 0x0 + 54721415465133\r\n[ERROR] 16 ??? 0x000031c4d28db91c 0x0 + 54721415854364\r\n[ERROR] 17 ??? 0x000031c4d28b3aa0 0x0 + 54721415690912\r\n[ERROR] 18 ??? 0x000031c4d28b267c 0x0 + 54721415685756\r\n[ERROR] 19 JavaScriptCore 0x00007fff26925ccf vmEntryToJavaScript + 200\r\n[ERROR] 20 JavaScriptCore 0x00007fff26d361a0 _ZN3JSC11Interpreter11executeCallEPNS_9ExecStateEPNS_8JSObjectENS_8CallTypeERKNS_8CallDataENS_7JSValueERKNS_7ArgListE + 416\r\n[ERROR] 21 JavaScriptCore 0x00007fff26f82e24 _ZN3JSC12profiledCallEPNS_9ExecStateENS_15ProfilingReasonENS_7JSValueENS_8CallTypeERKNS_8CallDataES3_RKNS_7ArgListE + 196\r\n[ERROR] 22 JavaScriptCore 0x00007fff26983328 JSObjectCallAsFunction + 488\r\n[ERROR] 23 JavaScriptCore 0x00007fff26950d1c -[JSValue callWithArguments:] + 252\r\n[ERROR] 24 Foundation 0x00007fff2568cd5b __NSFireTimer + 72\r\n[ERROR] 25 CoreFoundation 0x00007fff23afc1e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20\r\n[ERROR] 26 CoreFoundation 0x00007fff23afbed2 __CFRunLoopDoTimer + 1026\r\n[ERROR] 27 CoreFoundation 0x00007fff23afb52a __CFRunLoopDoTimers + 266\r\n[ERROR] 28 CoreFoundation 0x00007fff23af629e __CFRunLoopRun + 2238\r\n[ERROR] 29 CoreFoundation 0x00007fff23af56b6 CFRunLoopRunSpecific + 438\r\n[ERROR] 30 GraphicsServices 0x00007fff3815cbb0 GSEventRunModal + 65\r\n[ERROR] 31 UIKitCore 0x00007fff47162a67 UIApplicationMain + 1621\r\n[ERROR] 32 mocha 0x00000001028ae12c main + 1212\r\n[ERROR] 33 libdyld.dylib 0x00007fff5123bcf5 start + 1\r\n[ERROR] );\r\n[ERROR] sourceURL = \"file:///Users/cwilliams/Library/Developer/CoreSimulator/Devices/7279613C-5A28-4766-93FC-4752B305BDB3/data/Containers/Bundle/Application/30693FD6-C1D5-49D1-9735-F0C36204FF92/mocha.app/ti.filesystem.test.js\";\r\n[ERROR] stack = \"[native code]\\nfile:///Users/cwilliams/Library/Developer/CoreSimulator/Devices/7279613C-5A28-4766-93FC-4752B305BDB3/data/Containers/Bundle/Application/30693FD6-C1D5-49D1-9735-F0C36204FF92/mocha.app/ti.filesystem.test.js:104:32\\nfile:///Users/cwilliams/Library/Developer/CoreSimulator/Devices/7279613C-5A28-4766-93FC-4752B305BDB3/data/Containers/Bundle/Application/30693FD6-C1D5-49D1-9735-F0C36204FF92/mocha.app/ti-mocha.js:6535:54386\\nfile:///Users/cwilliams/Library/Developer/CoreSimulator/Devices/7279613C-5A28-4766-93FC-4752B305BDB3/data/Containers/Bundle/Application/30693FD6-C1D5-49D1-9735-F0C36204FF92/mocha.app/ti-mocha.js:6535:58826\\nfile:///Users/cwilliams/Library/Developer/CoreSimulator/Devices/7279613C-5A28-4766-93FC-4752B305BDB3/data/Containers/Bundle/Application/30693FD6-C1D5-49D1-9735-F0C36204FF92/mocha.app/ti-mocha.js:6535:59671\\nnext@file:///Users/cwilliams/Library/Developer/CoreSimulator/Devices/7279613C-5A28-4766-93FC-4752B305BDB3/data/Containers/Bundle/Application/30693FD6-C1D5-49D1-9735-F0C36204FF92/mocha.app/ti-mocha.js:6535:58234\\nfile:///Users/cwilliams/Library/Developer/CoreSimulator/Devices/7279613C-5A28-4766-93FC-4752B305BDB3/data/Containers/Bundle/Application/30693FD6-C1D5-49D1-9735-F0C36204FF92/mocha.app/ti-mocha.js:6535:58198\\nnext@file:///Users/cwilliams/Library/Developer/CoreSimulator/Devices/7279613C-5A28-4766-93FC-4752B305BDB3/data/Containers/Bundle/Application/30693FD6-C1D5-49D1-9735-F0C36204FF92/mocha.app/ti-mocha.js:6535:57886\\nfile:///Users/cwilliams/Library/Developer/CoreSimulator/Devices/7279613C-5A28-4766-93FC-4752B305BDB3/data/Containers/Bundle/Application/30693FD6-C1D5-49D1-9735-F0C36204FF92/mocha.app/ti-mocha.js:6535:57982\\ntimeslice@file:///Users/cwilliams/Library/Developer/CoreSimulator/Devices/7279613C-5A28-4766-93FC-4752B305BDB3/data/Containers/Bundle/Application/30693FD6-C1D5-49D1-9735-F0C36204FF92/mocha.app/ti-mocha.js:5764:23\";\r\n[ERROR] } \r\n[ERROR] Application received error: /ti.filesystem.test.js:104\r\n[ERROR] stream=Ti.Filesystem.openStream(Ti.Filesystem.MODE_READ,\"app.js\"),\r\n[ERROR] ^\r\n[ERROR] The iOS reported an error\r\n[ERROR] [native code]\r\n[ERROR] /ti.filesystem.test.js:104:32\r\n[ERROR] /ti-mocha.js:6535:54386\r\n[ERROR] /ti-mocha.js:6535:58826\r\n[ERROR] /ti-mocha.js:6535:59671\r\n[ERROR] next@/ti-mocha.js:6535:58234\r\n[ERROR] /ti-mocha.js:6535:58198\r\n[ERROR] next@/ti-mocha.js:6535:57886\r\n[ERROR] /ti-mocha.js:6535:57982\r\n[ERROR] timeslice@/ti-mocha.js:5764:23\r\n[ERROR] \r\n[ERROR] libobjc.A.dylib 0x00007fff503b5b20 objc_exception_throw + 48\r\n[ERROR] TitaniumKit 0x000000010357c63d JavascriptNameForClass + 0\r\n[ERROR] TitaniumKit 0x0000000103587ee5 -[TiFilesystemFileStreamProxy _initWithPageContext:args:] + 845\r\n[ERROR] mocha 0x000000010299dea8 -[FilesystemModule openStream:] + 968\r\n[ERROR] CoreFoundation 0x00007fff23b9f95c __invoking___ + 140\r\n[ERROR] CoreFoundation 0x00007fff23b9cd8f -[NSInvocation invoke] + 287\r\n[ERROR] JavaScriptCore 0x00007fff269674bb _ZN3JSC24ObjCCallbackFunctionImpl4callEP9JSContextP13OpaqueJSValuemPKPKS3_PS6_ + 411\r\n[ERROR] JavaScriptCore 0x00007fff26966f04 _ZN3JSCL34objCCallbackFunctionCallAsFunctionEPK15OpaqueJSContextP13OpaqueJSValueS4_mPKPKS3_PS6_ + 244\r\n[ERROR] JavaScriptCore 0x00007fff2696682f _ZN3JSC19APICallbackFunction4callINS_20ObjCCallbackFunctionEEExPNS_9ExecStateE + 511\r\n[ERROR] ??? 0x000031c4d2801027 0x0 + 54721414959143\r\n[ERROR] JavaScriptCore 0x00007fff2693caa3 llint_entry + 93226\r\n[ERROR] ??? 0x000031c4d28a6586 0x0 + 54721415636358\r\n[ERROR] ??? 0x000031c4d28e20b6 0x0 + 54721415880886\r\n[ERROR] ??? 0x000031c4d28db616 0x0 + 54721415853590\r\n[ERROR] ??? 0x000031c4d287c8ad 0x0 + 54721415465133\r\n[ERROR] ??? 0x000031c4d28db91c 0x0 + 54721415854364\r\n[ERROR] ??? 0x000031c4d28b3aa0 0x0 + 54721415690912\r\n[ERROR] ??? 0x000031c4d28b267c 0x0 + 54721415685756\r\n[ERROR] JavaScriptCore 0x00007fff26925ccf vmEntryToJavaScript + 200\r\n[DEBUG] Firing app event: uncaughtException\r\n[DEBUG] Firing app event: uncaughtException\r\n[DEBUG] *** Terminating app due to uncaught exception 'org.appcelerator.TiFilesystemFileStreamProxy', reason: 'The iOS reported an error'\r\n[DEBUG] *** First throw call stack:\r\n[DEBUG] ( \r\n[DEBUG] 0 CoreFoundation 0x00007fff23b98bde __exceptionPreprocess + 350\r\n[DEBUG] 1 libobjc.A.dylib 0x00007fff503b5b20 objc_exception_throw + 48\r\n[DEBUG] 2 TitaniumKit 0x000000010357c63d JavascriptNameForClass + 0\r\n[DEBUG] 3 TitaniumKit 0x0000000103587ee5 -[TiFilesystemFileStreamProxy _initWithPageContext:args:] + 845\r\n[DEBUG] 4 mocha 0x000000010299dea8 -[FilesystemModule openStream:] + 968\r\n[DEBUG] 5 CoreFoundation 0x00007fff23b9f95c __invoking___ + 140\r\n[DEBUG] 6 CoreFoundation 0x00007fff23b9cd8f -[NSInvocation invoke] + 287\r\n[DEBUG] 7 JavaScriptCore 0x00007fff269674bb _ZN3JSC24ObjCCallbackFunctionImpl4callEP9JSContextP13OpaqueJSValuemPKPKS3_PS6_ + 411\r\n[DEBUG] 8 JavaScriptCore 0x00007fff26966f04 _ZN3JSCL34objCCallbackFunctionCallAsFunctionEPK15OpaqueJSContextP13OpaqueJSValueS4_mPKPKS3_PS6_ + 244\r\n[DEBUG] 9 JavaScriptCore 0x00007fff2696682f _ZN3JSC19APICallbackFunction4callINS_20ObjCCallbackFunctionEEExPNS_9ExecStateE + 511\r\n[DEBUG] 10 ??? 0x000031c4d2801027 0x0 + 54721414959143\r\n[DEBUG] 11 JavaScriptCore 0x00007fff2693caa3 llint_entry + 93226\r\n[DEBUG] 12 ??? 0x000031c4d28a6586 0x0 + 54721415636358\r\n[DEBUG] 13 ??? 0x000031c4d28e20b6 0x0 + 54721415880886\r\n[DEBUG] 14 ??? 0x000031c4d28db616 0x0 + 54721415853590\r\n[DEBUG] 15 ??? 0x000031c4d287c8ad 0x0 + 54721415465133\r\n[DEBUG] 16 ??? 0x000031c4d28db91c 0x0 + 54721415854364\r\n[DEBUG] 17 ??? 0x000031c4d28b3aa0 0x0 + 54721415690912\r\n[DEBUG] 18 ??? 0x000031c4d28b267c 0x0 + 54721415685756\r\n[DEBUG] 19 JavaScriptCore 0x00007fff26925ccf vmEntryToJavaScript + 200\r\n[DEBUG] 20 JavaScriptCore 0x00007fff26d361a0 _ZN3JSC11Interpreter11executeCallEPNS_9ExecStateEPNS_8JSObjectENS_8CallTypeERKNS_8CallDataENS_7JSValueERKNS_7ArgListE + 416\r\n[DEBUG] 21 JavaScriptCore 0x00007fff26f82e24 _ZN3JSC12profiledCallEPNS_9ExecStateENS_15ProfilingReasonENS_7JSValueENS_8CallTypeERKNS_8CallDataES3_RKNS_7ArgListE + 196\r\n[DEBUG] 22 JavaScriptCore 0x00007fff26983328 JSObjectCallAsFunction + 488\r\n[DEBUG] 23 JavaScriptCore 0x00007fff26950d1c -[JSValue callWithArguments:] + 252\r\n[DEBUG] 24 Foundation 0x00007fff2568cd5b __NSFireTimer + 72\r\n[DEBUG] 25 CoreFoundation 0x00007fff23afc1e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20\r\n[DEBUG] 26 CoreFoundation 0x00007fff23afbed2 __CFRunLoopDoTimer + 1026\r\n[DEBUG] 27 CoreFoundation 0x00007fff23afb52a __CFRunLoopDoTimers + 266\r\n[DEBUG] 28 CoreFoundation 0x00007fff23af629e __CFRunLoopRun + 2238\r\n[DEBUG] 29 CoreFoundation 0x00007fff23af56b6 CFRunLoopRunSpecific + 438\r\n[DEBUG] 30 GraphicsServices 0x00007fff3815cbb0 GSEventRunModal + 65\r\n[DEBUG] 31 UIKitCore 0x00007fff47162a67 UIApplicationMain + 1621\r\n[DEBUG] 32 mocha 0x00000001028ae12c main + 1212\r\n[DEBUG] 33 libdyld.dylib 0x00007fff5123bcf5 start + 1\r\n[DEBUG] ) \r\n[DEBUG] libc++abi.dylib: terminating with uncaught exception of type NSException\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Crash w/ Ti.Filesystem.openStream when deploy-type is test", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": "Xcode 11, iPhone 7 Plus - iOS 13.0 simulator", "comment": { "comments": [ { "id": "452403", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "To reproduce, I'm simply running {{npm run test:ios}} on master branch of the SDK. Note that this also happens on 8_2_X now too (when running against the master branch of the test suite).\r\n\r\nThis looks to be a recent thing caused by this change: https://github.com/appcelerator/titanium-mobile-mocha-suite/pull/200", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-10-31T17:59:43.000+0000", "updated": "2019-10-31T20:41:46.000+0000" }, { "id": "452406", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "https://github.com/sgtcoolguy/titanium_mobile/pull/new/TIMOB-27515", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-10-31T19:01:22.000+0000", "updated": "2019-10-31T19:01:22.000+0000" }, { "id": "452472", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "I think this is ready for QE test (though the unit tests triggered and showed the crash/failures, so they already did the FR!)\r\n\r\nNote there's an outstanding issue around uncaught exceptions on iOS in async callbacks/event listeners/timers that I mentioned in the PR that is unresolved. I think it deserves a separate ticket to investigate post 8.3.0.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-11-05T15:42:58.000+0000", "updated": "2019-11-05T15:42:58.000+0000" }, { "id": "452475", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nPR Merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-05T17:04:55.000+0000", "updated": "2019-11-05T17:04:55.000+0000" }, { "id": "452498", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 8.3.0.v20191106075119.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-06T18:20:19.000+0000", "updated": "2019-11-06T18:20:19.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }