{ "id": "104075", "key": "TIMOB-11606", "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": "14168", "description": "2012 Sprint 22 API", "name": "2012 Sprint 22 API", "archived": true, "released": true, "releaseDate": "2012-11-05" }, { "id": "14274", "description": "2012 Sprint 22", "name": "2012 Sprint 22", "archived": true, "released": true, "releaseDate": "2012-11-05" } ], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2012-11-01T18:14:28.000+0000", "created": "2012-10-30T00:18:39.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:15.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Memory leaks when setLocation is called.\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : '#00f'\r\n});\r\n \r\n\r\nvar map = Titanium.Map.createView({\r\n mapType : Titanium.Map.STANDARD_TYPE,\r\n region : {\r\n latitude : 42.3366,\r\n longitude : -71.1689,\r\n latitudeDelta : 0.01,\r\n longitudeDelta : 0.01\r\n }\r\n});\r\n \r\nfunction UpdateMapRoute(lat, lon)\r\n{\r\n \r\n map.setLocation({\r\n latitude : lat,\r\n longitude : lon,\r\n animate : true,\r\n latitudeDelta : 0.001,\r\n longitudeDelta : 0.004\r\n });\r\n \r\n}\r\n \r\nvar lat = 42.3359;\r\nvar lon = -71.1735;\r\n \r\nsetInterval(function(){\r\n UpdateMapRoute(lat,lon);\r\n lat = lat + .002;\r\n lon = lon + .002;\r\n},500);\r\n \r\n \r\n \r\nwin.add(map);\r\nwin.open();\r\n{code}\r\n\r\nRun code, wait about ~40s, app wil crash. You can look at DDMS to see that memory is leaking heavily", "attachment": [], "flagged": false, "summary": "Android: MapView setLocation memory leak", "creator": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "225741", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a native Android bug that has yet to be resolved: http://code.google.com/p/android/issues/detail?id=2181. Closing as Won't Fix.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-31T21:56:03.000+0000", "updated": "2012-10-31T21:56:03.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }