{ "id": "114454", "key": "TIMOB-13882", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-06-22T20:04:44.000+0000", "created": "2013-05-16T11:45:25.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-22T20:04:44.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": "iOS: When dynamically adding route points to a map over time causes app to crash \r\n\r\nSteps to reproduce:\r\n1. Run the following app.\r\n{code}\r\n var win1 = Titanium.UI.createWindow({ \r\n title:'window 1',\r\n backgroundColor:'#fff'\r\n });\r\n\r\n \r\n\t\tvar maproute = {\r\n\t\t    name : 'runtrackerroute',\r\n\t\t    points : [{\r\n\t\t        latitude : 42.3353,\r\n\t\t        longitude : -71.1715\r\n\t\t    }, {\r\n\t\t        latitude : 42.3355,\r\n\t\t        longitude : -71.1725\r\n\t\t    }, {\r\n\t\t        latitude : 42.3359,\r\n\t\t        longitude : -71.1735\r\n\t\t    }],\r\n\t\t    color : 'blue',\r\n\t\t    width : 4\r\n\t\t};\r\n\t\t \r\n\t\tvar map = Titanium.Map.createView({\r\n\t\t    mapType : Titanium.Map.STANDARD_TYPE,\r\n\t\t    region : {\r\n\t\t        latitude : 42.3366,\r\n\t\t        longitude : -71.1689,\r\n\t\t        latitudeDelta : 0.01,\r\n\t\t        longitudeDelta : 0.01\r\n\t\t    }\r\n\t\t});\r\n\t\tmap.addRoute(maproute);\r\n\t\t \r\n\t\tfunction UpdateMapRoute(lat, lon)\r\n\t\t{\r\n\t\t    //remove route\r\n\t\t    map.removeRoute(maproute);\r\n\t\t \r\n\t\t    //add new points\r\n\t\t    maproute.points.push({\r\n\t\t        'latitude' : lat,\r\n\t\t        'longitude' : lon\r\n\t\t    });\r\n\t\t \r\n\t\t    //add route\r\n\t\t    map.addRoute(maproute);\r\n\t\t     \r\n\t\t    map.setLocation({\r\n\t\t        latitude : lat,\r\n\t\t        longitude : lon,\r\n\t\t        animate : true,\r\n\t\t        latitudeDelta : 0.001,\r\n\t\t        longitudeDelta : 0.004\r\n\t\t    });\r\n\t\t \r\n\t\t}\r\n\t\t \r\n\t\tvar lat = 42.3359;\r\n\t\tvar lon = -71.1735;\r\n\t\t \r\n\t\tsetInterval(function(){\r\n\t\t    UpdateMapRoute(lat,lon);\r\n\t\t    lat = lat + .002;\r\n\t\t    lon = lon + .002;\r\n\t\t},500);\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\twin1.add(map);\r\n win1.open();\r\n{code}\r\n\r\nExpected:\r\nApp should not crash. It should display a map and the map should keep on adding route points.\r\n\r\nActual:\r\nApp crashes on execution.\r\n\t\t", "attachment": [], "flagged": false, "summary": "iOS: When dynamically adding route points to a map over time causes app to crash ", "creator": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Device : iPad 3, iOS version: 6\r\nSDK: 3.1.1.v20130514180723\r\nCLI version : 3.1.0\r\nOS : MAC OSX 10.7.5\r\nAppcelerator Studio, build: 3.1.0.201305131750\r\nXCode : 4.5.1", "comment": { "comments": [ { "id": "422566", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170620103414\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-22T20:04:44.000+0000", "updated": "2017-06-22T20:04:44.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }