{ "id": "107112", "key": "TIMOB-12160", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14787", "description": "2012 Sprint 26 API", "name": "2012 Sprint 26 API", "archived": true, "released": true, "releaseDate": "2012-12-31" }, { "id": "14786", "description": "2012 Sprint 26", "name": "2012 Sprint 26", "archived": true, "released": true, "releaseDate": "2012-12-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-12T05:28:02.000+0000", "created": "2012-12-27T18:19:41.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "core", "module_memory", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "23901", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "99301", "key": "TIMOB-10463", "fields": { "summary": "Android: Implement new bubbling architecture as prescribed in TIMOB-10372", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } }, { "id": "23902", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "103253", "key": "TIMOB-11439", "fields": { "summary": "Android: Invalid events triggered", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "29514", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "115554", "key": "TIMOB-14130", "fields": { "summary": "Android: Window events, windows in the Tab and test", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } }, { "id": "24118", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "106653", "key": "TIMOB-12109", "fields": { "summary": "21st Century: Android: Possible memory leak", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-06-11T23:15:43.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": "There was a memory leak caused by the new bubbling implementation, TIMOB-10463 (Timob-11439 was built on top of this bug as well). It looks like windows are not being cleaned up correctly.\r\n\r\nSteps to reproduce:\r\n1. Run the following code:\r\n{code}\r\n\r\nfunction openWindow() {\r\n var win = Ti.UI.createWindow({\r\n fullscreen: false,\r\n backgroundColor: 'red'\r\n });\r\n win.open();\r\n win.buffer = Ti.createBuffer({length: 250 * 1024});\r\n return win;\r\n}\r\n \r\nvar win = Ti.UI.createWindow({\r\n layout: 'vertical'\r\n});\r\n \r\nvar openButton = Ti.UI.createButton({\r\n title: 'Open Window'\r\n});\r\nwin.add(openButton);\r\n \r\nopenButton.on('click', function() {\r\n openWindow();\r\n});\r\n \r\nwin.open();\r\n{code}\r\n\r\n2. Add the following code in your tiapp.xml:\r\n{code}\r\n \r\n \r\n \r\n \r\n \r\n{code}\r\n3. Launch the app\r\n4. Hit open window\r\n5. Hit back and watch the allocated memory grow in DDMS\r\n6. Do steps 4&5 at least 5-6 times\r\n\r\nExpected result:\r\nThe memory should get cleaned up, and you shouldn't see it grow and grow.\r\n\r\nActual Result:\r\nThe memory continues to grow even when you back out of the window.", "attachment": [], "flagged": false, "summary": "Android: Memory leak on heavy weight windows", "creator": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [ { "id": "107116", "key": "TIMOB-12162", "fields": { "summary": "Backport 3_0_X: TIMOB-12160", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } ], "reporter": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "232584", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3643", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-27T19:48:42.000+0000", "updated": "2012-12-27T19:48:42.000+0000" }, { "id": "232942", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Memory gets cleaned up on closing the heavyweight window (de-allocation noticed after opening and closing it 2-3 times)\r\nVerified on:\r\nTitanium Studio: 3.0.1.201212181159\r\nTitanium SDK: 3.1.0.v20130102102603\r\nAndroid Device: Nexus 7 (v4.1)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-03T07:13:58.000+0000", "updated": "2013-01-03T07:13:58.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }