Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2771] App Crashed After Just Few Scrolling

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-07-31T05:37:19.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsandroid, crash, defect
ReporterTony Lin
AssigneeShak Hossain
Created2012-05-29T07:38:31.000+0000
Updated2016-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

FileDateSize
app.apk2012-07-31T07:46:24.000+00009540123
contacts_db.js2012-05-29T07:38:31.000+00003153
emo_im_happy.png2012-05-29T07:38:31.000+00001273

Comments

  1. Tony Lin 2012-06-04

    Any update on this issue?
  2. Nikhil Sharma 2012-06-07

  3. Tony Lin 2012-06-12

    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.
  4. Davide Cassenti 2012-07-17

    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?
  5. Davide Cassenti 2012-07-23

    Hello, Have you been able to fix this issue? I could not replicate the issue my side. Thanks
  6. Tony Lin 2012-07-31

    The issue is not resolved, tested this morning. Could you try this apk with a larger contact database? Thanks.
  7. Mostafizur Rahman 2014-01-08

    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 Device

    Test Code

       
       var 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(); 
       
       
       
    Thanks
  8. Shak Hossain 2014-01-15

    Closing since the issue can't be reproduced with latest 3.2GA of TISDK.

JSON Source