{ "id": "155283", "key": "AC-828", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-03-04T19:24:29.000+0000", "created": "2016-03-02T18:14:23.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:06.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "When you add rows,shows warning in the console. like this:\r\nResourceType: For resource 0x01030206, entry index(518) is beyond type entryCount(1)\r\n\r\nWhen you are inserting a row it´s not a problem, but when you are scrolling, tablewview hangs. Happens mini freezes.. This is the same behave on production too. I think that seems that the problem is with the lazy loading on scroll. You can get the titanium doc example to show what i tried to explain.\r\n\r\nhere it is:\r\n\r\nvar tableData = [];\r\n\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'white' });\r\n\r\nvar table = Ti.UI.createTableView({ objName: 'table' });\r\n\r\nfor (var i = 0; i <= 20; i++){\r\n var row = Ti.UI.createTableViewRow({\r\n className: 'row',\r\n objName: 'row',\r\n leftImage : 0, \r\n rightImage : 0, \r\n touchEnabled: true,\r\n height: 100\r\n });\r\n\r\n var enabledWrapperView = Ti.UI.createView({\r\n backgroundColor:'#008FD5',\r\n objName: 'enabledWrapperView',\r\n rowID: i,\r\n width: Ti.UI.FILL, height: '100%'\r\n });\r\n\r\n var disabledWrapperView = Ti.UI.createView({\r\n backgroundColor:'#A2E0FF',\r\n objName: 'disabledWrapperView',\r\n touchEnabled: false,\r\n width: 300, height: '80%'\r\n });\r\n enabledWrapperView.add(disabledWrapperView);\r\n\r\n var label = Ti.UI.createLabel({\r\n backgroundColor:'#313F48',\r\n color: 'white',\r\n objName: 'label',\r\n text: i,\r\n touchEnabled: false,\r\n left: 0,\r\n width: 200\r\n });\r\n disabledWrapperView.add(label);\r\n\r\n row.add(enabledWrapperView);\r\n tableData.push(row); \r\n}\r\n\r\ntable.setData(tableData);\r\n\r\n/*table.addEventListener('swipe', function(e){\r\n if (e.source && e.source.objName !== 'table'){\r\n Ti.API.info('Row swiped: ' + e.source);\r\n Ti.API.info('Row swiped: ' + e.source.objName);\r\n Ti.API.info('Row ID : ' + e.source.rowID);\r\n }\r\n});*/\r\n\r\nwin.add(table);\r\nwin.open();\r\n\r\nHope it helps..", "attachment": [], "flagged": false, "summary": "Tableview Android warnings", "creator": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android", "comment": { "comments": [ { "id": "378497", "author": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "body": "After reading i think that the problem is with function called \"reIndexItems\" on TiTableView.java. So i've made some tests and when you set the className the performance become very very very poor. I think it's related with this implementation. It´s for performance but it´s not good.\r\n\r\nHope it helps.", "updateAuthor": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-02T19:24:49.000+0000", "updated": "2016-03-02T19:24:49.000+0000" }, { "id": "378794", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I tested the sample code, I didn't observe any app freezes. The app seems to run smoothly. Tested with SDK 5.2.0.GA. Also there is no error in the output log. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-04T19:24:17.000+0000", "updated": "2016-03-04T19:24:17.000+0000" }, { "id": "378795", "author": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello Sharif,\r\n\r\nProbably you are testing with genymotion. I don´t know why, but does not happen. I'm testing with my cell with android 5.1.0 and the problem happens. Tested on motorola X Force Android 6.0 and the problem happens too.. If you want, i can send a video.\r\n\r\nRegards.", "updateAuthor": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-04T20:13:15.000+0000", "updated": "2016-03-04T20:13:15.000+0000" }, { "id": "378852", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I have again tested the sample code in actual device. I have tested with Android 4.4.2. I haven't observe any app freezes. The app seems to run smoothly. I would suggest updating your SDK to the latest one 5.2.0.GA. \r\n\r\nYes, Please send a video which demonstrate your issue. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-06T15:32:09.000+0000", "updated": "2016-03-06T15:32:09.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }