Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12129] Android: ImageView memory leak

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-12-20T22:15:47.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.1.0, 2012 Sprint 26 API, 2012 Sprint 26
ComponentsAndroid
Labelsapi, qe-port
ReporterHieu Pham
AssigneeHieu Pham
Created2012-12-19T00:52:56.000+0000
Updated2014-06-19T12:43:39.000+0000

Description

ImageView is leaking memory. Steps to reproduce:
var detailWindow = Titanium.UI.createWindow({ backgroundColor : '#fff' });

var imageView = Ti.UI.createImageView({ image : "https://s3.amazonaws.com/static.tumblr.com/6t3upxl/Aawm08w0l/khout-kitten-458882.jpeg", top : '10dp' });

detailWindow.add(imageView);

detailWindow.open();
1. Run code 2. Click back button. 3. On device, click on launcher to re-launch app 4. Repeat steps 2-3 a few times (~3-4 times on Samsung Galaxy Tab 10.1), and observe log for OutOfMemory error.

Comments

  1. Ping Wang 2012-12-20

    PR: https://github.com/appcelerator/titanium_mobile/pull/3622
  2. Satyam Sekhri 2013-01-17

    No memory leaks. Verified on: Studio: 3.0.1.201212181159 SDK: 3.1.0.v20130114171802 Android Device: Samsung Galaxy Note (v2.3.6)

JSON Source