[ALOY-847] Could this be a memory leak in Alloy ? (bitmap trapped / Android)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-01-21T21:35:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2014 Sprint 02 |
Components | Builtins |
Labels | Alloy, Android |
Reporter | Kevin Purnelle |
Assignee | Tim Poulsen |
Created | 2013-10-10T14:08:45.000+0000 |
Updated | 2014-02-03T18:39:30.000+0000 |
Description
Hello, I have been chasing memory leaks and trying to improve memory management in my app. (I use a lot of bitmaps in my app.) I recently learnt how to use eclipse MAT and discovered a +-1.5 MB bitmap leaking in my app. In the end I did a really simple test: * Create a new classic titanium project without changing anything. Then analyze heap dump. * The same with a new Alloy project. Difference between both is around 1.5 MB: the bitmap size I've mentioned before. I suspect Alloy is trapping an image when the app launches. The only image I can come with is the one for the splash screen but I don't really know. I'll add some screens. If you want to try to reproduce the test it's easy. Just create two new projects like I did. It was tested with Titanium SDK 3.1.2GA Alloy 1.2.2Attachments
File | Date | Size |
---|---|---|
alloy.png | 2014-01-21T21:30:28.000+0000 | 231602 |
classic no title.png | 2014-01-21T21:30:28.000+0000 | 206206 |
classic with title.png | 2014-01-21T21:30:28.000+0000 | 191911 |
Screen Shot 2013-10-10 at 15.07.31.png | 2013-10-10T14:08:45.000+0000 | 79576 |
Screen Shot 2013-10-10 at 15.24.19.png | 2013-10-10T14:08:45.000+0000 | 66131 |
Screen Shot 2013-10-10 at 15.30.45.png | 2013-10-10T14:08:45.000+0000 | 77106 |