[AC-2771] App Crashed After Just Few Scrolling
| GitHub Issue | n/a |
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2012-07-31T05:37:19.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | android, crash, defect |
| Reporter | Tony Lin |
| Assignee | Shak Hossain |
| Created | 2012-05-29T07:38:31.000+0000 |
| Updated | 2016-03-08T07:47:40.000+0000 |
Description
I downloaded KitchenSink app, and modified contacts_db.js (attached) to display a big contact list, 132 contacts, in my case.
I scroll the list down and up few times. The app got slower and slower, and eventually hanged.
Is there a memory leak that clog the performance, or other issues?
Thanks
Attachments
Any update on this issue?
This is not related to photos, photos make it worse. I took out photos, and with my contacts database (132 contacts). It became unresponsive after few scrolling. Initial scrolling was not bad, scrolling down was a bit slow, up was fast, but it got slower and slow.
I did test this problem on the emulator and on a device, and doesn't seem to give any particular problem. Which device are you using?
Hello, Have you been able to fix this issue? I could not replicate the issue my side. Thanks
The issue is not resolved, tested this morning. Could you try this apk with a larger contact database? Thanks.
Hello, I tested this issue with the test code below. I can't reproduce this issue. In my case, I tested with 1000+ contacts. Please check my test code with our latest Ti builds and let me know if you have any problems.
Test Environments
Mac OS X 10.8.6 Ti SDK 3.2.0.GA Ti CLI 3.2.0 Android 2.3.3 DeviceTest Code
Thanksvar win = Ti.UI.createWindow({ title : 'contact people', backgroundColor : '#000' }); var android = (Ti.Platform.osname === 'android'); // getting all from Android is very slow... var activityIndicator; if (android) { activityIndicator = Ti.UI.createActivityIndicator({ message : 'Loading all contacts, please wait...' }); activityIndicator.show(); } var makeTable = function() { var people = Titanium.Contacts.getAllPeople(); var rows = []; alert(people.length); for (var i = 0; i < people.length; i++) { var title = people[i].fullName; if (!title || title.length === 0) { title = "(no name)"; } rows[i] = Ti.UI.createTableViewRow({ title : title, person : people[i], hasChild : true }); } return rows; }; var tableview = Ti.UI.createTableView({ data : makeTable() }); win.add(tableview); if (android && activityIndicator) { activityIndicator.hide(); } win.open();Closing since the issue can't be reproduced with latest 3.2GA of TISDK.