| GitHub Issue | n/a |
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-02-09T01:12:26.000+0000 |
| Affected Version/s | Release 3.0.0 |
| Fix Version/s | Release 3.1.0, 2013 Sprint 03 Core, 2013 Sprint 03 |
| Components | Android |
| Labels | n/a |
| Reporter | Allen Yeung |
| Assignee | Allen Yeung |
| Created | 2013-01-15T13:22:10.000+0000 |
| Updated | 2013-02-26T11:44:32.000+0000 |
Reproduction steps:
1. Run the app attached
2. Navigate through the windows
3. Go back to the home screen with 'open 2nd window'
4. Repeat steps 2&3 and see the memory grow in DDMS
Actual Results:
The allocated memory keeps growing when you are at the home screen
Expected Results:
The allocated memory should not keep growing and growing
Updated test instructions: 1. Run the code:
2. Hit open window and back 3. Watch the allocated memory grow in DDMS Expected results: The allocated memory should be relatively the same Actual Results: The allocated memory grows.var win = Ti.UI.createWindow({ fullscreen : true }); var button = Ti.UI.createButton({ title : 'open window' }); button.addEventListener('click', function() { var win2 = Ti.UI.createWindow({ backgroundColor: 'white', fullscreen: true }); win2.buffer = Ti.createBuffer({ length : 250 * 1024 }); var previousView = Ti.UI.createView({}); win2.add(previousView); for (var i = 0; i < 10; i++) { var view = Ti.UI.createView({}); view.addEventListener('click', function() { win2.backgroundColor = 'blue'; }); previousView.add(view); previousView = view; } win2.open(); }); win.add(button); win.open();PR: https://github.com/appcelerator/titanium_mobile/pull/3844
Allocated memory is relatively same. Verified on: SDK version: 3.1.0.v20130225195538 CLI version : 3.0.24 OS : MAC OSX 10.7.5 XCode : 4.5.1 Studio : 3.0.2.201302041757