{ "id": "153783", "key": "TIMOB-20133", "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": "17072", "name": "Release 5.1.2", "archived": false, "released": true, "releaseDate": "2016-01-12" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-12-15T19:05:17.000+0000", "created": "2015-12-11T16:21:45.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-13T19:57:38.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 iOS, the following code crashes the app:\r\n\r\n{code}\r\nvar position = Alloy.Globals.Map.createAnnotation({\r\n latitude: newPosition.latitude,\r\n longitude: newPosition.longitude,\r\n title: \"Position\",\r\n subtitle: \"some title\",\r\n pincolor: Alloy.Globals.Map.ANNOTATION_GREEN\r\n});\r\n$.map.addAnnotation(position);\r\n{code}\r\n\r\nThe line that crashes it is: `pincolor: Alloy.Globals.Map.ANNOTATION_GREEN` . For some reason the GREEN annotation constant crashes.\r\n\r\nHere's the crash log:\r\n\r\n{code}\r\nThread 0 Crashed:: Dispatch queue: com.apple.main-thread\r\n0 libobjc.A.dylib 0x0000000112cf1d0d objc_retain + 13\r\n1 com.fishrulesapp.fishrules 0x000000010dc0038e -[TiMapView mapView:viewForAnnotation:] + 649 (TiMapView.m:983)\r\n2 com.apple.MapKit 0x000000010e359647 -[MKMapView annotationManager:representationForAnnotation:] + 308\r\n3 com.apple.MapKit 0x000000010e3c9972 -[MKAnnotationManager _addRepresentationForAnnotation:] + 355\r\n4 com.apple.MapKit 0x000000010e3c913a -[MKAnnotationManager updateVisibleAnnotations] + 1551\r\n5 com.apple.MapKit 0x000000010e3493be -[MKMapView _didChangeRegionMidstream:] + 232\r\n6 com.apple.MapKit 0x000000010e34e000 -[MKMapView mapLayer:didChangeRegionAnimated:] + 81\r\n7 com.apple.VectorKit 0x000000011d5624b5 __86-[VKMapCameraController _animateToPosition:pitch:yaw:duration:timingCurve:completion:]_block_invoke349 + 37\r\n8 com.apple.VectorKit 0x000000011d51483e -[VKAnimation stopAnimation:] + 110\r\n9 com.apple.VectorKit 0x000000011d514cf0 -[VKTimedAnimation stopAnimation:] + 48\r\n10 com.apple.VectorKit 0x000000011d5606aa -[VKMapCameraController _animateToPosition:pitch:yaw:duration:timingCurve:completion:] + 106\r\n11 com.apple.VectorKit 0x000000011d560603 -[VKMapCameraController animateToMapRegion:pitch:yaw:duration:completion:] + 723\r\n12 com.apple.MapKit 0x000000010e35446a -[MKMapView _goToMapRegion:duration:animated:completionHandler:] + 350\r\n13 com.apple.MapKit 0x000000010e3541f9 -[MKMapView _setZoomScale:centerMapPoint:duration:animated:] + 598\r\n14 com.apple.MapKit 0x000000010e35604f -[MKMapView _goToCenterCoordinate:zoomLevel:animated:] + 1577\r\n15 com.apple.MapKit 0x000000010e3537ec -[MKMapView setRegion:animated:] + 402\r\n16 com.fishrulesapp.fishrules 0x000000010dbfb0f6 -[TiMapView render] + 550 (TiMapView.m:62)\r\n17 com.fishrulesapp.fishrules 0x000000010d6c546e __DoProxyDelegateChangedValuesWithProxy_block_invoke54 + 46 (TiProxy.m:92)\r\n18 com.fishrulesapp.fishrules 0x000000010d702dd4 __TiThreadPerformOnMainThread_block_invoke + 52 (TiBase.m:287)\r\n19 com.fishrulesapp.fishrules 0x000000010d70317a TiThreadProcessPendingMainThreadBlocks + 410 (TiBase.m:399)\r\n20 com.fishrulesapp.fishrules 0x000000010d702fd3 __TiThreadPerformOnMainThread_block_invoke216 + 35 (TiBase.m:326)\r\n21 libdispatch.dylib 0x0000000116dcbd59 _dispatch_call_block_and_release + 12\r\n22 libdispatch.dylib 0x0000000116de74a7 _dispatch_client_callout + 8\r\n23 libdispatch.dylib 0x0000000116dd1f2d _dispatch_main_queue_callback_4CF + 714\r\n24 com.apple.CoreFoundation 0x000000011326cd09 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9\r\n25 com.apple.CoreFoundation 0x000000011322e2c9 __CFRunLoopRun + 2073\r\n26 com.apple.CoreFoundation 0x000000011322d828 CFRunLoopRunSpecific + 488\r\n27 com.apple.GraphicsServices 0x0000000113fcdad2 GSEventRunModal + 161\r\n28 com.apple.UIKit 0x000000010fabe610 UIApplicationMain + 171\r\n29 com.fishrulesapp.fishrules 0x000000010d5ec3d6 main + 310 (main.m:37)\r\n30 libdyld.dylib 0x0000000116e1692d start + 1\r\n{code}\r\n\r\nI can verify that this did not happen before 5.1", "attachment": [], "flagged": false, "summary": "Map annotations crash in 5.1.1", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": null, "closedSprints": [ { "id": 536, "state": "closed", "name": "2015 Sprint 25 SDK", "startDate": "2015-12-05T01:30:40.415Z", "endDate": "2015-12-19T01:30:00.000Z", "completeDate": "2015-12-29T03:19:42.127Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "372787", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-12-14T03:27:54.000+0000", "updated": "2015-12-14T03:27:54.000+0000" }, { "id": "373022", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, see above duplicate ticket for more information. Using map module 2.5.2 fixes this issue. \r\n\r\nTested on: \r\niPhone 6s Plus Device (9.2) & Simulators (9.1)\r\nMac OSX El Capitan 10.11 (15A284)\r\nStudio: 4.4.0.201511241829\r\nTi SDK: 5.1.2.v20151214111649\r\nAppc NPM: 4.2.2\r\nApp CLI: 5.1.0\r\nXcode 7.2\r\nNode v4.2.3\r\nproduction\r\n\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2015-12-15T19:04:50.000+0000", "updated": "2015-12-15T19:04:50.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }