[TIMOB-19638] Memory Leak in Alloy android Menu?
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | alloy, android, leak, memory, menu |
Reporter | Andrey Tkachenko |
Assignee | Unknown |
Created | 2015-09-05T19:41:31.000+0000 |
Updated | 2018-02-28T19:55:49.000+0000 |
Description
I test my code for memory leaks. When I use Menu in my View I can't to make sure that memory fully released. Not all proxy removed from memory after closing test window. Some time but rarely all proxies and his native views removed fully.
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>
<Menu id="menu" platform="android">
<MenuItem id="submitButton" title="123">
</MenuItem>
</Menu>
<Label>Close this window and then create second HPROF dump. Then compare difference against two dumps.</Label>
</Window>
</Alloy>
// empty
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>
!dumps.png|thumbnail!
Attachments
File | Date | Size |
---|---|---|
1st Dump.png | 2015-09-07T09:27:39.000+0000 | 147694 |
2nd Dump.png | 2015-09-07T09:27:36.000+0000 | 146141 |
dumps.png | 2015-09-05T19:43:46.000+0000 | 108954 |
No comments