{ "id": "89887", "key": "TIMOB-8697", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13405", "description": "Sprint 2012-09 API", "name": "Sprint 2012-09 API", "archived": true, "released": true, "releaseDate": "2012-05-06" } ], "resolution": { "id": "6", "description": "", "name": "Hold" }, "resolutiondate": "2012-04-25T11:17:04.000+0000", "created": "2012-04-12T03:21:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-ios040912" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-07T18:28:09.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": " Memory leaks detected while scrolling around in the map view so that the red pins change using iPad 2.(Test Case- TIMOB-7467)\r\n\r\nSteps to reproduce:\r\n\r\n1. Install app to iOS device\r\n2. Open Instruments\r\n3. Select Leaks for iOS device\r\n4. Press Choose\r\n5. Under Choose Target, select Map and press Record\r\n6. Scroll around in the map view so that the red pins change\r\n7. Do a search in instruments for \"TiMapPinAnnotationView\"\r\n\r\n\r\nExpected result:\r\nAfter step 6: You shouldn't have any new memory leaks (note there may be a memory leak from when the app first launched but this is a known issue)\r\nAfter step 7: You should see the variable \"TiMapPinAnnotationView\"\r\n\r\nActual Result:\r\nAfter step 7, memory leaks are detected. Please refer to the Instruments_map.trace file attached.\r\n\r\nApp.js\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n    backgroundColor: '#fff'\r\n});\r\n\r\nmap = Ti.Map.createView({\r\n            region : {\r\n                latitude : 36,\r\n                latitudeDelta : 5,\r\n                longitude : -93,\r\n                longitudeDelta : 5\r\n            },\r\n            toggled : false,\r\n            userLocation : false\r\n        }), toggleAnnos = function(e) {\r\n            var lat = 31, lng = (e.source.toggled ? -98 : -89), annos = [];\r\n            for( i = 0; i < 10; i++) {\r\n                annos.push({\r\n                    latitude : lat,\r\n                    longitude : lng\r\n                });\r\n                lat++;\r\n                if(e.source.toggled) {\r\n                    lng++;\r\n                } else {\r\n                    lng--;\r\n                }\r\n            }\r\n            e.source.removeAllAnnotations();\r\n            e.source.addAnnotations(annos);\r\n            e.source.toggled = !e.source.toggled;\r\n        };\r\n        win.add(map);\r\n        map.addEventListener('regionChanged', toggleAnnos);\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "26998", "filename": "Instruments_map.trace.zip", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-12T03:21:34.000+0000", "size": 3983278, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: MapView: Memory leaks detected while scrolling around in the map view so that the red pins change using iPad 2.", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK version: 2.0.1.v20120410103239\r\nPlatform & version: iOS 5.1\r\nDevice Details: iPad2.\r\nHost Operating System: OSX 10.7.3\r\nTitanium Studio version: 2.0.1.201204101854", "comment": { "comments": [ { "id": "190718", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Anshu This issue is labeled as a regression, but there is not information about which version this regresses from.. can you provide that?", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-12T09:07:18.000+0000", "updated": "2012-04-12T09:07:18.000+0000" }, { "id": "190750", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.0.0 and 1.8.2 and still see the leak. Removed regression tag.", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-12T11:17:06.000+0000", "updated": "2012-04-12T11:17:06.000+0000" }, { "id": "192594", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Found that there is no memory leak on TiMapPinAnnotationView, but did notice there was a memory leak of 48bytes which was being caused by an Malloc on UIScorllView GestureRecognizer on ScrollEvent. After some digging around did figure out this is actually an well documented Apple bug and \"Apple also assures that this will not cause any app to crash\".(Sure enough its 48bytes each). The relevant Apple forum links are [here|https://devforums.apple.com/message/630695#630695], which matches exactly with the stack trace of the leak as I observed from Instruments. \r\n\r\nGoing to mark this as an HOLD as its an \"Apple Bug\".", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-25T11:16:50.000+0000", "updated": "2012-04-25T11:16:50.000+0000" }, { "id": "197446", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "This even occurs on iPhone 4s(5.1)", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-06-05T23:06:46.000+0000", "updated": "2012-06-05T23:06:46.000+0000" }, { "id": "409539", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-07T18:28:09.000+0000", "updated": "2017-03-07T18:28:09.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }