{ "id": "62602", "key": "TIMOB-1970", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:41.000+0000", "created": "2011-04-15T03:06:54.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T01:57:41.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": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

Similar to #1945 but not exactly the same.

\n

The failcase for this is from a customer. I can re-create it\neasily with their application, but because it's a timing issue I\nhaven't been able to make it happen with a simplified\napplication.

\n

Here is the trace of the crash, which is caused by an\nArrayIndexOutOfBoundsException.

\n
\njava.lang.ArrayIndexOutOfBoundsException\nat android.widget.AbsListView$RecycleBin.addScrapView(AbsListView.java:4078)\nat android.widget.ListView.layoutChildren(ListView.java:1514)\nat android.widget.AbsListView.onLayout(AbsListView.java:1147)\nat android.view.View.layout(View.java:7034)\nat android.widget.FrameLayout.onLayout(FrameLayout.java:333)\nat android.view.View.layout(View.java:7034)\nat org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:314)\nat android.view.View.layout(View.java:7034)\nat android.widget.FrameLayout.onLayout(FrameLayout.java:333)\nat android.view.View.layout(View.java:7034)\nat android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249)\nat android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125)\nat android.widget.LinearLayout.onLayout(LinearLayout.java:1042)\nat android.view.View.layout(View.java:7034)\nat android.widget.FrameLayout.onLayout(FrameLayout.java:333)\nat android.view.View.layout(View.java:7034)\nat android.view.ViewRoot.performTraversals(ViewRoot.java:1049)\nat android.view.ViewRoot.handleMessage(ViewRoot.java:1744)\n
{html}", "attachment": [], "flagged": false, "summary": "Android: calling TableView.setData while table is being rendered can cause crash", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "127123", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [bc0ae2a7f61ffc3ce893dd5724dccf3a97122703])\n[#1970 state:fixed-in-qa] Methods that add or\nremove rows now go to the UI thread so that they cannot affect the\nview model while the UI is rendering the table. \nhttp://github.com/appcelerator/titanium_mobile/commit/bc0ae2a7f61ff...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:06:54.000+0000", "updated": "2011-04-15T03:06:54.000+0000" }, { "id": "127124", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

1.4.2 80434d G1, EVO 4.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:06:55.000+0000", "updated": "2011-04-15T03:06:55.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }