{ "id": "170039", "key": "AC-5287", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-10-17T09:21:06.000+0000", "created": "2017-10-17T07:42:02.000+0000", "labels": [ "ios", "ti.map" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-10-17T09:58:03.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "*Problem:*\r\nApp closes without showing any error when doing the following:\r\n* select an annotation\r\n* click the switch button (it will remove all annotations and show them again)\r\n* select a different annotation\r\n* click the switch button again\r\n* app will crash\r\n\r\n*Error:*\r\nApp closes and I only have this error in the device log:\r\n{code}\r\nThread 0 name: Dispatch queue: com.apple.main-thread\r\nThread 0 Crashed:\r\n0 libobjc.A.dylib \t0x2240867a objc_retain + 10\r\n1 MapKit \t0x2bec9776 -[MKAnnotationManager dequeueReusableAnnotationRepresentationWithIdentifier:] + 110\r\n2 test_map \t0x004ce500 0x102000 + 3982592\r\n3 MapKit \t0x2bf03314 -[MKMapView annotationManager:representationForAnnotation:] + 336\r\n4 MapKit \t0x2bec93a8 -[MKAnnotationManager _addRepresentationForAnnotation:] + 340\r\n5 MapKit \t0x2bec7f9a -[MKAnnotationManager updateVisibleAnnotations] + 1190\r\n6 Foundation \t0x2347e654 __NSFireTimer + 64\r\n7 CoreFoundation \t0x22c1658e __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14\r\n8 CoreFoundation \t0x22c161c0 __CFRunLoopDoTimer + 936\r\n9 CoreFoundation \t0x22c1400c __CFRunLoopRun + 1484\r\n10 CoreFoundation \t0x22b63228 CFRunLoopRunSpecific + 520\r\n11 CoreFoundation \t0x22b63014 CFRunLoopRunInMode + 108\r\n12 GraphicsServices \t0x24153ac8 GSEventRunModal + 160\r\n13 UIKit \t0x27237188 UIApplicationMain + 144\r\n14 test_map \t0x00108c40 0x102000 + 27712\r\n15 libdyld.dylib \t0x2280b872 start + 2\r\n{code}\r\n\r\n*Code:*\r\n\r\n{code:java}\r\nvar Map = require('ti.map');\r\nvar win = Titanium.UI.createWindow();\r\nvar ar = [];\r\n\r\nfor (var i = 0; i < 20; ++i) {\r\n\tvar mountainView = Map.createAnnotation({\r\n\t\tlatitude: 37 + (Math.random() * 5),\r\n\t\tlongitude: -122 + (Math.random() * 5),\r\n\t\ttitle: \"Appcelerator Headquarters\",\r\n\t\tsubtitle: 'Mountain View, CA',\r\n\t\tpincolor: Map.ANNOTATION_RED,\r\n\t});\r\n\tar.push(mountainView);\r\n}\r\n\r\nvar mapview = Map.createView({\r\n\tmapType: Map.NORMAL_TYPE,\r\n\tregion: {\r\n\t\tlatitude: 37.3,\r\n\t\tlongitude: -122.3,\r\n\t\tlatitudeDelta: 0.5,\r\n\t\tlongitudeDelta: 0.5\r\n\t},\r\n\tanimate: true,\r\n\tregionFit: true,\r\n\tuserLocation: true\r\n});\r\n\r\nmapview.setAnnotations(ar);\r\n\r\nvar btn1 = Ti.UI.createButton({\r\n\ttitle: \"switch\",\r\n\tbottom: 10\r\n});\r\n\r\nbtn1.addEventListener(\"click\", function(e) {\r\n\tmapview.removeAllAnnotations();\r\n\tsetTimeout(function() {\r\n\t\tmapview.setAnnotations(ar);\r\n\t}, 1000);\r\n});\r\nwin.add(mapview);\r\nwin.add(btn1);\r\nwin.open();\r\n{code}\r\n\r\nModule: Ti.Map 3.0.0\r\nPlatform: iOS (device and simulator)\r\n\r\nAndroid is working with the example from above", "attachment": [], "flagged": false, "summary": "Ti.Map: iOS crash when hiding/showing notifications after selecting annotation", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "429174", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Looks like MOD-2371, can you try [this build|https://www.dropbox.com/s/br7cgoh3xqe7tmc/ti.map-iphone-2.12.3.zip?dl=0] as well? \r\n\r\n*EDIT 1*: I am able to reproduce the issue with 2.12.x / 3.0.0, but I am not able to reproduce the crash with the provided build. Awaiting feedback until 2.12.3 / 3.0.1 gets released.\r\n\r\n*EDIT 2*: New releases [here|https://github.com/appcelerator-modules/ti.map/releases]!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-17T09:04:26.000+0000", "updated": "2017-10-17T09:21:39.000+0000" }, { "id": "429177", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "3.0.1 fixed the issue! Thank you for the quick fix (y)", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-17T09:58:03.000+0000", "updated": "2017-10-17T09:58:03.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }