{ "id": "176063", "key": "TIMOB-28360", "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": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" }, { "id": "21212", "description": "", "name": "Release 9.3.3", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-05-18T18:31:49.000+0000", "created": "2021-02-19T10:31:58.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "DocumentViewer", "annotation", "iOS" ], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-05-18T18:31:52.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": "{code}\r\nconst docViewer = Ti.UI.iOS.createDocumentViewer({\r\n url:'tempfile',\r\n });\r\n docViewer.setAnnotation(\"annotation\");\r\ndocViewer.show();\r\n{code}\r\n{code}\r\nApplication Specific Information:\r\n*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString count]: unrecognized selector sent to instance 0x7ff2c7a8fc00'\r\nterminating with uncaught exception of type NSException\r\nabort() called\r\nCoreSimulator 732.18.0.2 - Device: iPhone 12 Pro Max (DB20DFA5-B2F2-44DF-BE15-DEF47939E33E) - Runtime: iOS 14.2 (18B79) - DeviceType: iPhone 12 Pro Max\r\n\r\nApplication Specific Backtrace 1:\r\n0 CoreFoundation 0x00007fff2041daf2 __exceptionPreprocess + 242\r\n1 libobjc.A.dylib 0x00007fff20177e78 objc_exception_throw + 48\r\n2 CoreFoundation 0x00007fff2042c6f7 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0\r\n3 CoreFoundation 0x00007fff20422032 ___forwarding___ + 1489\r\n4 CoreFoundation 0x00007fff20424068 _CF_forwarding_prep_0 + 120\r\n5 TitaniumKit 0x00000001020aeb85 -[TiScriptError formattedNativeStack] + 133\r\n6 TitaniumKit 0x00000001020aea8b -[TiScriptError description] + 1127\r\n7 Foundation 0x00007fff2084637a _NSDescriptionWithLocaleFunc + 82\r\n8 CoreFoundation 0x00007fff203b6e09 __CFStringAppendFormatCore + 12102\r\n9 CoreFoundation 0x00007fff203b889d _CFStringCreateWithFormatAndArgumentsReturningMetadata + 145\r\n10 CoreFoundation 0x00007fff203b8806 _CFStringCreateWithFormatAndArgumentsAux2 + 20\r\n11 TitaniumKit 0x000000010206e678 TiLogMessage + 175\r\n12 TitaniumKit 0x00000001020ae040 -[TiExceptionHandler reportScriptError:] + 74\r\n13 TitaniumKit 0x000000010209ad7e TiBindingEventProcess + 731\r\n14 TitaniumKit 0x00000001020bc3ff -[KrollContext invoke:] + 109\r\n15 TitaniumKit 0x00000001020bc472 -[KrollContext enqueue:] + 93\r\n16 TitaniumKit 0x00000001020c3a81 TiBindingRunLoopEnqueue + 77\r\n17 TitaniumKit 0x00000001020c2200 -[TiProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 187\r\n18 TitaniumKit 0x00000001020a2a73 -[TiViewProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 224\r\n19 TitaniumKit 0x00000001020c1ff6 -[TiProxy fireEvent:withObject:propagate:] + 76\r\n20 TitaniumKit 0x0000000102093c83 -[TiUIView touchesEnded:withEvent:] + 110\r\n21 UIKitCore 0x00007fff241a76fb _UIGestureEnvironmentUpdate + 8849\r\n22 UIKitCore 0x00007fff241a4fee -[UIGestureEnvironment _updateForEvent:window:] + 887\r\n23 UIKitCore 0x00007fff246b9bcd -[UIWindow sendEvent:] + 4752\r\n24 UIKitCore 0x00007fff246938f6 -[UIApplication sendEvent:] + 633\r\n25 UIKit 0x0000000104cc32ca -[UIApplicationAccessibility sendEvent:] + 85\r\n26 MHM 0x00000001019f8d71 -[TiUIApplication sendEvent:] + 577\r\n27 UIKitCore 0x00007fff2472439c __processEventQueue + 13895\r\n28 UIKitCore 0x00007fff2471ad0f __eventFetcherSourceCallback + 104\r\n29 CoreFoundation 0x00007fff2038c37a __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17\r\n30 CoreFoundation 0x00007fff2038c272 __CFRunLoopDoSource0 + 180\r\n31 CoreFoundation 0x00007fff2038b754 __CFRunLoopDoSources0 + 248\r\n32 CoreFoundation 0x00007fff20385f1f __CFRunLoopRun + 878\r\n33 CoreFoundation 0x00007fff203856c6 CFRunLoopRunSpecific + 567\r\n34 GraphicsServices 0x00007fff2b76adb3 GSEventRunModal + 139\r\n35 UIKitCore 0x00007fff24675187 -[UIApplication _run] + 912\r\n36 UIKitCore 0x00007fff2467a038 UIApplicationMain + 101\r\n37 MHM 0x000000010196ea7b main + 1115\r\n38 libdyld.dylib 0x00007fff20256409 start + 1\r\n\r\nThread 0 Crashed:: Dispatch queue: com.apple.main-thread\r\n0 libsystem_kernel.dylib \t0x00007fff5e707462 __pthread_kill + 10\r\n1 libsystem_pthread.dylib \t0x00007fff5e740610 pthread_kill + 263\r\n2 libsystem_c.dylib \t0x00007fff200fac2e __abort + 139\r\n3 libsystem_c.dylib \t0x00007fff200faba3 abort + 135\r\n4 libc++abi.dylib \t0x00007fff2024f818 abort_message + 231\r\n5 libc++abi.dylib \t0x00007fff20240e7d demangling_terminate_handler() + 266\r\n6 libobjc.A.dylib \t0x00007fff201780d1 _objc_terminate() + 96\r\n7 libc++abi.dylib \t0x00007fff2024ec47 std::__terminate(void (*)()) + 8\r\n8 libc++abi.dylib \t0x00007fff202515b6 __cxa_rethrow + 99\r\n9 libobjc.A.dylib \t0x00007fff2017800c objc_exception_rethrow + 37\r\n10 com.apple.CoreFoundation \t0x00007fff203857ec CFRunLoopRunSpecific + 861\r\n11 com.apple.GraphicsServices \t0x00007fff2b76adb3 GSEventRunModal + 139\r\n12 com.apple.UIKitCore \t0x00007fff24675187 -[UIApplication _run] + 912\r\n13 com.apple.UIKitCore \t0x00007fff2467a038 UIApplicationMain + 101\r\n14 com.itinerarium.mhm \t0x000000010196ea7b main + 1115 (main.m:77)\r\n15 libdyld.dylib \t0x00007fff20256409 start + 1\r\n\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: DocumentViewer setAnnotation method causing a crash", "creator": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1220, "state": "closed", "name": "2021 Sprint 6", "startDate": "2021-03-15T03:31:12.088Z", "endDate": "2021-03-27T03:31:00.000Z", "completeDate": "2021-03-26T19:18:15.760Z", "originBoardId": 114 }, { "id": 1224, "state": "closed", "name": "2021 Sprint 10", "startDate": "2021-05-17T16:31:32.484Z", "endDate": "2021-05-28T16:31:00.000Z", "completeDate": "2021-05-28T22:15:02.543Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "458299", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/12496", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-02-24T01:31:39.000+0000", "updated": "2021-02-24T01:31:39.000+0000" }, { "id": "458435", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for Jenkins build", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-16T20:14:35.000+0000", "updated": "2021-03-16T20:14:35.000+0000" }, { "id": "458438", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master and 10_0_X for 10.0.0 target", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-03-17T14:22:59.000+0000", "updated": "2021-03-17T14:22:59.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }