GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2011-10-20T13:46:12.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | bug, ios, memory, tableview |
Reporter | Jason Sznol |
Assignee | Matthew Apperson |
Created | 2011-09-01T14:46:09.000+0000 |
Updated | 2016-03-08T07:48:10.000+0000 |
When setting a .png image as the backgroundImage of a tableView, the application leaks about 10-15 megs of memory. I am unsure if this is a problem with other file types. This was tested using instruments on an ipod touch 4th gen.
Jason Please would you provide [a usecase](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-CreatingGoodUsecases) and also all the rest of the information requested in the [Jira Ticket Checklist](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist). Once this ticket is complete and the issue is proven, we can move it to the main project. Many thanks
I've attached the png. The code would look something similar to this in app.js. var win = Ti.UI.createWindow(); var table = Ti.UI.createTableView({ backgroundImage: 'altBackground.png' }); win.add(table); win.open();
Jason, Please update the ticket with this information, rather then adding the information to the comments. Also, how are you going about testing for the memory leak? (please also add this to the description of the ticket) Best regards, Matt
Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist) to ensure that we can escalate it quickly. Read [How to Submit a Bug Report](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report) if you have not read it before, and always start a ticket using the [JIRA Ticket Template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template). Thanks in advance
I'm able to reproduce this problem. I have a 77 Kb .png. When I "open" the Window that has the tableView with backgroundImage, it "Force Closes". In the DDMS logs I can see that my application is trying to get 2 MB of memory, and the VM is denying so much memory. If I comment out the "backgroundImage" line while creating the tableView, I don't get the FC. I've tried to make a use case to upload to Jira, but I couldn't reproduce it outside my app.
I forgot to mention that I'm on Titanium Mobile 2.1.3 and Testing in Android Emulator 2.3.3. Is there any more info I can provide to help reproduce and fix the problem? Thanks a lot.