{ "id": "88064", "key": "TIMOB-8050", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-04T13:55:43.000+0000", "created": "2012-03-16T10:20:08.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_tableview", "qe-mw020912", "qe-testadded", "regression" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-10T05:54: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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Steps to reproduce:\r\n\r\n1. Create a default app and change the app.js code to the following:\r\n{code}\r\n\r\nvar _window = Titanium.UI.createWindow({\r\n\t\t\ttitle : 'test',\r\n\t\t\tbackgroundColor : 'white'\r\n\t\t});\r\n\r\nvar myTableView = Ti.UI.createTableView();\r\n\r\n\t\tvar row = Ti.UI.createTableViewRow({\r\n\t\t\theight : 80,\r\n\t\t\tbackgroundColor : '#c00',\r\n\t\t});\r\n\r\n\t\tmyTableView.appendRow(row);\r\n\r\n\t\t_window.add(myTableView);\r\n\r\n\t\t_window.addEventListener('open', function() {\r\n\t\t\tsetTimeout(function() {\r\n\t\t\t\tTi.API.debug(JSON.stringify(myTableView));\r\n\t\t\t\tvar tableRows = myTableView.data[0].rows;\r\n\t\t\t\tTi.API.debug(JSON.stringify(tableRows));\r\n\t\t\t\ttableRows.pop();\r\n\t\t\t\tmyTableView.data = tableRows;\r\n\t\t\t}, 2000);\r\n\t\t\t// two seconds after the window opens, remove the red row\r\n\t\t});\r\n_window.open();\r\n{code}\r\n\r\n2. Run the app\r\n\r\nActual Result:\r\nThe app crashes\r\n*See attached console output and crash log*\r\n\r\nExpected result:\r\nThe app removes the table view row and the table view is empty\r\n\r\nThis works in 1.8.2", "attachment": [ { "id": "26288", "filename": "consoleoutput.txt", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-16T10:20:08.000+0000", "size": 5976, "mimeType": "text/plain" }, { "id": "26289", "filename": "module_tableviewrow_2012-03-16-110346_Lisa-iPad.crash", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-16T10:20:08.000+0000", "size": 24614, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS: TableViewRow - Setting a table views rows data then removing the rows caused the app to crash", "creator": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Ti Studio build 2.0.0.201203152033\r\nTi Mob SDK 2.0.0.v20120316074737 hash r5aa535ab\r\nOSX Lion 10.7.3\r\niPad 1 OS 4.3.5, iPhone Sim 5.0", "comment": { "comments": [ { "id": "186975", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Caused by commit [d7c83ee169f1ccdbf3e099e6e218de6f185a04ff|https://github.com/appcelerator/titanium_mobile/commit/d7c83ee169f1ccdbf3e099e6e218de6f185a04ff]", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-18T13:46:15.000+0000", "updated": "2012-03-18T13:46:15.000+0000" }, { "id": "186976", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolved by PR 1730", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-18T14:40:45.000+0000", "updated": "2012-03-18T14:40:45.000+0000" }, { "id": "187183", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nSDK: 2.0.0.v20120319003254\r\nStudio: 2.0.0.201203182248\r\nOS: Snow Leopard\r\nDevices Tested: iPad 4.3.5, iPhone Simulator 5.0", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-19T13:59:14.000+0000", "updated": "2012-03-19T13:59:14.000+0000" }, { "id": "189867", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to add/remove labels", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-04T13:55:16.000+0000", "updated": "2012-04-04T13:55:16.000+0000" }, { "id": "283454", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4940\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T05:54:41.000+0000", "updated": "2013-12-10T05:54:41.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }