[AC-1583] Using baseController causes memory leak ?
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2015-09-30T06:40:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy |
Labels | Alloy, baseController, leak, memory, proxy |
Reporter | Andrey Tkachenko |
Assignee | Shak Hossain |
Created | 2015-09-05T20:09:46.000+0000 |
Updated | 2016-03-08T07:38:03.000+0000 |
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.
Why it happens and how to deal with this behavior?
The situation is complicated by using a more complex controller with a many of child Views.
<Alloy>
<Window>
<Label>Close this window and then create second HPROF dump. Then compare difference against two dumps.</Label>
</Window>
</Alloy>
exports.baseController = "myBaseController";
function doClick(e) {
Alloy.createController('testWindow').getView().open();
}
$.index.open();
<Alloy>
<Window class="container" layout="vertical">
<Label>Create first HPROF dump now</Label>
<Button id="label" onClick="doClick">Click to open test window</Button>
</Window>
</Alloy>
var args = arguments[0] || {};
myBaseController has only js file, no myBaseController.tss or myBaseController.xml defined.
Attachments
File | Date | Size |
---|---|---|
dumps2.png | 2015-09-05T20:04:16.000+0000 | 63420 |