Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1583] Using baseController causes memory leak ?

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2015-09-30T06:40:46.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy
LabelsAlloy, baseController, leak, memory, proxy
ReporterAndrey Tkachenko
AssigneeShak Hossain
Created2015-09-05T20:09:46.000+0000
Updated2016-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

FileDateSize
dumps2.png2015-09-05T20:04:16.000+000063420

Comments

  1. Shak Hossain 2015-09-30

JSON Source