{ "id": "151003", "key": "AC-1583", "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": "2015-09-30T06:40:46.000+0000", "created": "2015-09-05T20:09:46.000+0000", "labels": [ "Alloy", "baseController", "leak", "memory", "proxy" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:38: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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "I test my code for memory leaks. When I use *exports.baseController* I can't to make sure that memory fully released. Not all proxy removed from memory after closing test window. \r\n\r\nWhy it happens and how to deal with this behavior?\r\nThe situation is complicated by using a more complex controller with a many of child Views.\r\n\r\n{code:xml|title=testWindow.xml}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n{code:javascript|title=testWindow.js}\r\nexports.baseController = \"myBaseController\";\r\n{code}\r\n\r\n{code:javascript|title=index.js}\r\nfunction doClick(e) {\r\n Alloy.createController('testWindow').getView().open();\r\n}\r\n\r\n$.index.open();\r\n{code}\r\n\r\n{code:xml|title=index.xml}\r\n\r\n\t\r\n\t \r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n\r\n{code:javascript|title=myBaseController.js}\r\nvar args = arguments[0] || {};\r\n{code} \r\n\r\nmyBaseController has only js file, no myBaseController.tss or myBaseController.xml defined.\r\n\r\n\r\n", "attachment": [ { "id": "56642", "filename": "dumps2.png", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2015-09-05T20:04:16.000+0000", "size": 63420, "mimeType": "image/png" } ], "flagged": false, "summary": "Using baseController causes memory leak ?", "creator": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "subtasks": [], "reporter": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "environment": "Ti.SDK 3.5.1, Android Genymotion 4.2.2", "comment": { "comments": [ { "id": "365368", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-30T06:40:46.000+0000", "updated": "2015-09-30T06:40:46.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }