{ "id": "175680", "key": "MOD-2816", "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": "21178", "name": "Release 9.3.1", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-01-14T12:39:51.000+0000", "created": "2020-10-29T09:33:54.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ti.map" ], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-01-14T12:39:51.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": "15915", "name": "iOS" } ], "description": "Hello,\r\n\r\nWhen drawing a circle on a `ti.map` view the app crashes unexpectedly. Often the first draw is succesfull but after that the app crashes. We're running titanium sdk 8.3.1.GA & ti.map 3.4.0.\r\n\r\nException:\r\n\r\n{code:java}\r\n[INFO] loadLocation\r\n[INFO] -[NSConcreteValue boundBridge:withKrollObject:]: unrecognized selector sent to instance 0x600002014f60\r\n[ERROR] Script Error {\r\n[ERROR] nativeStack = \"3 CoreFoundation 0x00007fff23e4190c ___forwarding___ + 1436\\n4 CoreFoundation 0x00007fff23e43bf8 _CF_forwarding_prep_0 + 120\\n5 TitaniumKit0x0000000103d3d658 -[KrollBridge registerProxy:] + 137\\n6 TitaniumKit0x0000000103d1ed40 TiBindingTiValueFromProxy + 460\\n7 TitaniumKit0x0000000103d36ecd KrollGetProperty + 668\\n8 JavaScriptCore 0x00007fff26c916d7 _ZN3JSC16JSCallbackObjectINS_16JSNonFinalObjectEE14callbackGetterEPNS_14JSGlobalObjectExNS_12PropertyNameE + 231\\n9 JavaScriptCore 0x00007fff27151470 llint_slow_path_get_by_id + 2000\\n10 JavaScriptCore 0x00007fff26c403a3 llint_entry + 35062\\n11 JavaScriptCore 0x00007fff26c378ff vmEntryToJavaScript + 200\\n12 JavaScriptCore 0x00007fff2706e6d5 _ZN3JSC11Interpreter11executeCallEPNS_14JSGlobalObjectEPNS_8JSObjectENS_8CallTypeERKNS_8CallDataENS_7JSValueERKNS_7ArgListE + 549\\n13 JavaScriptCore 0x00007fff272a898a _ZN3JSC12profiledCallEPNS_14JSGlobalObjectENS_15ProfilingReasonENS_7JSValueENS_8CallTypeERKNS_8CallDataES3_RKNS_7ArgListE + 170\\n14 JavaScriptCore 0x00007fff26c9f75c JSObjectCallAsFunction + 620\\n15 TitaniumKit0x0000000103d53c2b TiBindingEventProcess + 667\\n16 TitaniumKit0x0000000103d7447c -[KrollContext invoke:] + 109\\n17 TitaniumKit0x0000000103d744ef -[KrollContext enqueue:] + 93\\n18 TitaniumKit0x0000000103d7ba8e TiBindingRunLoopEnqueue + 77\\n19 TitaniumKit0x0000000103d7a2e4 -[TiProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 164\\n20 TitaniumKit0x0000000103d5bcec -[TiViewProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 224\\n21 tabgrouptest 0x00000001037091f0 -[TiUIButtonProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 272\\n22 TitaniumKit0x0000000103d7a00f -[TiProxy fireEvent:withObject:] + 72\";\r\n[ERROR] toJSON = \"\";\r\n[ERROR] } \r\n[ERROR] -[__NSCFString count]: unrecognized selector sent to instance 0x7f86c0151400\r\n[ERROR] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString count]: unrecognized selector sent to instance 0x7f86c0151400'\r\n[ERROR] *** First throw call stack:\r\n[ERROR] ( \r\n[ERROR] 0 CoreFoundation 0x00007fff23e3cf0e __exceptionPreprocess + 350\r\n[ERROR] 1 libobjc.A.dylib 0x00007fff50ba89b2 objc_exception_throw + 48\r\n[ERROR] 2 CoreFoundation 0x00007fff23e5dc34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132\r\n[ERROR] 3 CoreFoundation 0x00007fff23e4190c ___forwarding___ + 1436\r\n[ERROR] 4 CoreFoundation 0x00007fff23e43bf8 _CF_forwarding_prep_0 + 120\r\n[ERROR] 5 TitaniumKit 0x0000000103d66b79 -[TiExceptionHandler showScriptError:] + 149\r\n[ERROR] 6 TitaniumKit 0x0000000103d53c88 TiBindingEventProcess + 760\r\n[ERROR] 7 TitaniumKit 0x0000000103d7447c -[KrollContext invoke:] + 109\r\n[ERROR] 8 TitaniumKit 0x0000000103d744ef -[KrollContext enqueue:] + 93\r\n[ERROR] 9 TitaniumKit 0x0000000103d7ba8e TiBindingRunLoopEnqueue + 77\r\n[ERROR] 10 TitaniumKit 0x0000000103d7a2e4 -[TiProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 164\r\n[ERROR] 11 TitaniumKit 0x0000000103d5bcec -[TiViewProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 224\r\n[ERROR] 12 tabgrouptest 0x00000001037091f0 -[TiUIButtonProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 272\r\n[ERROR] 13 TitaniumKit 0x0000000103d7a00f -[TiProxy fireEvent:withObject:] + 72\r\n[ERROR] 14 tabgrouptest 0x000000010370b64e -[TiUIButton controlAction:forEvent:] + 686\r\n[ERROR] 15 UIKitCore 0x00007fff48c8cca1 -[UIApplication sendAction:to:from:forEvent:] + 83\r\n[ERROR] 16 UIKitCore 0x00007fff4863bcde -[UIControl sendAction:to:forEvent:] + 223\r\n[ERROR] 17 UIKitCore 0x00007fff4863c026 -[UIControl _sendActionsForEvents:withEvent:] + 396\r\n[ERROR] 18 UIKitCore 0x00007fff4863af97 -[UIControl touchesEnded:withEvent:] + 497\r\n[ERROR] 19 UIKitCore 0x00007fff48cc858c -[UIWindow _sendTouchesForEvent:] + 1359\r\n[ERROR] 20 UIKitCore 0x00007fff48cca311 -[UIWindow sendEvent:] + 4501\r\n[ERROR] 21 UIKitCore 0x00007fff48ca4755 -[UIApplication sendEvent:] + 356\r\n[ERROR] 22 UIKit 0x0000000105b830b8 -[UIApplicationAccessibility sendEvent:] + 85\r\n[ERROR] 23 tabgrouptest 0x00000001036f5ab1 -[TiUIApplication sendEvent:] + 577\r\n[ERROR] 24 UIKitCore 0x00007fff48d2f552 __dispatchPreprocessedEventFromEventQueue + 7628\r\n[ERROR] 25 UIKitCore 0x00007fff48d32716 __handleEventQueueInternal + 6584\r\n[ERROR] 26 UIKitCore 0x00007fff48d28fb9 __handleHIDEventFetcherDrain + 88\r\n[ERROR] 27 CoreFoundation 0x00007fff23da0d31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17\r\n[ERROR] 28 CoreFoundation 0x00007fff23da0c5c __CFRunLoopDoSource0 + 76\r\n[ERROR] 29 CoreFoundation 0x00007fff23da0434 __CFRunLoopDoSources0 + 180\r\n[ERROR] 30 CoreFoundation 0x00007fff23d9b02e __CFRunLoopRun + 974\r\n[ERROR] 31 CoreFoundation 0x00007fff23d9a944 CFRunLoopRunSpecific + 404\r\n[ERROR] 32 GraphicsServices 0x00007fff38ba6c1a GSEventRunModal + 139\r\n[ERROR] 33 UIKitCore 0x00007fff48c8b9ec UIApplicationMain + 1605\r\n[ERROR] 34 tabgrouptest 0x000000010366d892 main + 1170\r\n[ERROR] 35 libdyld.dylib 0x00007fff51a231fd start + 1\r\n[ERROR] 36 ??? 0x0000000000000001 0x0 + 1\r\n[ERROR] ) \r\n[ERROR] libc++abi.dylib: terminating with uncaught exception of type NSException\r\n{code}\r\n\r\nindex.js\r\n{code}\r\nvar map = require('ti.map');\r\nlet location = {\r\n latitude: 52.965151,\r\n longitude: 5.913073,\r\n pivot: {\r\n range: 1000\r\n }\r\n};\r\n\r\nlet annotations = {\r\n locationRadius: null\r\n};\r\n\r\nfunction onMapComplete() {\r\n console.log('onMapComplete')\r\n loadLocation();\r\n}\r\n\r\nfunction loadLocation() {\r\n console.log('loadLocation');\r\n\r\n var locationRadiusChanged = annotations.locationRadius === null\r\n || annotations.locationRadius.radius !== location.pivot.range\r\n || annotations.locationRadius.center.latitude !== location.latitude\r\n || annotations.locationRadius.center.longitude !== location.longitude;\r\n\r\n if (locationRadiusChanged) {\r\n \r\n if(annotations.locationRadius !== null) {\r\n $.map.removeCircle(annotations.locationRadius);\r\n }\r\n\r\n annotations.locationRadius = map.createCircle({\r\n center: {\r\n latitude: location.latitude,\r\n longitude: location.longitude\r\n },\r\n fillColor: 'transparent',\r\n strokeColor: '#22c064',\r\n strokeWidth: 5,\r\n radius: location.pivot.range\r\n });\r\n\r\n $.map.addCircle(annotations.locationRadius);\r\n }\r\n}\r\n\r\n$.index.open();\r\n{code}\r\n\r\nindex.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\r\n\r\n{code}\r\n\r\n\r\n\r\n\r\n{code}\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.15.6\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\n\r\nNode.js\r\n Node.js Version = 12.9.0\r\n npm Version = 6.14.8\r\n\r\nTitanium CLI\r\n CLI Version = 5.2.5\r\n\r\nTitanium SDK\r\n SDK Version = 8.3.1.GA\r\n SDK Path = /Users/vdlp/Library/Application Support/Titanium/mobilesdk/osx/8.3.1.GA\r\n Target Platform = iphone\r\n\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: circle on ti.map crashes app", "creator": { "name": "menzo", "key": "menzo", "displayName": "VDLP", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "menzo", "key": "menzo", "displayName": "VDLP", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.15.6\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\n\r\nNode.js\r\n Node.js Version = 12.9.0\r\n npm Version = 6.14.8\r\n\r\nTitanium CLI\r\n CLI Version = 5.2.5\r\n\r\nTitanium SDK\r\n SDK Version = 8.3.1.GA\r\n SDK Path = /Users/vdlp/Library/Application Support/Titanium/mobilesdk/osx/8.3.1.GA\r\n Target Platform = iphone\r\n", "closedSprints": [ { "id": 1211, "state": "closed", "name": "2020 Sprint 24", "startDate": "2020-11-23T18:12:00.000Z", "endDate": "2020-12-07T18:12:00.000Z", "completeDate": "2020-12-04T22:07:24.313Z", "originBoardId": 114 }, { "id": 1212, "state": "closed", "name": "2020 Sprint 25", "startDate": "2020-12-07T22:11:00.000Z", "endDate": "2020-12-18T22:11:00.000Z", "completeDate": "2020-12-18T16:35:34.544Z", "originBoardId": 114 }, { "id": 1213, "state": "closed", "name": "2020 Sprint 26", "startDate": "2020-12-21T16:40:00.000Z", "endDate": "2021-01-08T16:40:00.000Z", "completeDate": "2021-01-08T17:37:31.799Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "457744", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator-modules/ti.map/pull/366", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-11-30T21:16:26.000+0000", "updated": "2020-11-30T21:16:26.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }