{ "id": "99267", "key": "TIMOB-10455", "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": [], "resolution": null, "resolutiondate": null, "created": "2012-08-15T14:00:26.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-ios082012", "reprod" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [ { "id": "19942", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "81602", "key": "AC-3131", "fields": { "summary": "iOS: UI - TableView.appendRow method fails after tableview is emptied with setData()", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "19945", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "99269", "key": "TIMOB-10456", "fields": { "summary": "MobileWeb: tableView deleteRow on deleted row causes Uncaught TypeError: Cannot read property '_parent' of undefined", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:03:42.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "tableView row events on a row that was deleted by another TableView cause crash\r\n\r\nthis is not a regression\r\n\r\non android, the test code works without error or unexpected behavior\r\n\r\non mobileweb, this test code works almost as expected (e.g., the row is moved to the other table correctly, without crash),\r\nhowever there is a mobileweb bug where the bottom row does not appear until the top table view is clicked\r\n\r\ntest steps:\r\n\r\n1. run code:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar table1 = Ti.UI.createTableView({\r\n\ttop : 0,\r\n\tleft : 0,\r\n\twidth : '100%',\r\n\theight : '50%'\r\n});\r\n\r\nvar row = Ti.UI.createTableViewRow({\r\n\ttitle : 'click top row, then bottom row'\r\n});\r\n\r\ntable1.appendRow(row);\r\n\r\nvar table2 = Ti.UI.createTableView({\r\n\tbottom : 0,\r\n\tleft : 0,\r\n\twidth : '100%',\r\n\theight : '50%'\r\n});\r\n\r\nwin.add(table1);\r\nwin.add(table2);\r\n\r\ntable1.addEventListener('click', function(e){\r\n\ttable2.appendRow(e.row);\r\n\ttable1.deleteRow(e.index);\r\n});\r\n\r\nwin.open(); \r\n{code}\r\n\r\n2. click on top row to make bottom row appear\r\n3. click on bottom row\r\n\r\nactual result:\r\n\r\ncrash\r\n\r\nexpected result:\r\n\r\nthe row should be removed from the top table view and added to the bottom table view, and\r\nclicking on the bottom row does not cause crash", "attachment": [ { "id": "30519", "filename": "console_log.txt", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-15T14:00:26.000+0000", "size": 14246, "mimeType": "text/plain" }, { "id": "30520", "filename": "MyProject_2012-08-15-132246_QEs-iPhone.crash", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-15T14:00:26.000+0000", "size": 28409, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS: tableView row events on deleted row cause crash EXC_CRASH (SIGABRT)", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.1\r\nTitanium SDK: 2.0.1, 2.0.2, 2.1.0, 2.1.1, 2.1.2.v20120815081613\r\nOS: Mountain Lion\r\nDevices Tested: iPhone4 5.0.1, iPhone Simulator 5.1", "comment": { "comments": [ { "id": "214856", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think iOS is doing the right thing here, although it would be ideal if the exception was more useful. Attempting to add a child to two views at once -- or adding a row to two tables at once -- should result in a crash.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-16T13:54:33.000+0000", "updated": "2012-08-16T14:13:13.000+0000" }, { "id": "214866", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can we add a runtime error?", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-16T14:18:05.000+0000", "updated": "2012-08-16T14:18:05.000+0000" }, { "id": "423617", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-06T21:07:54.000+0000", "updated": "2017-07-06T21:07:54.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }