{ "id": "142324", "key": "TIMOB-18332", "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": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-01-09T23:30:32.000+0000", "created": "2015-01-06T16:30:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SDK3.5.0", "deleteRow", "ios", "iphone", "regression", "tableview" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-01-09T23:30:32.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": "{code:xml}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.10.2\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\nNode.js\r\n Node.js Version = 0.10.26\r\n npm Version = 2.0.2\r\nTitanium CLI\r\n CLI Version = 3.4.1\r\nTitanium SDK\r\n SDK Version = 3.5.0.RC\r\n SDK Path = /Volumes/Data/Users/sebastian/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.RC\r\n Target Platform = iphone\r\n{code}\r\n\r\nDeleting the last row of a tableview crashes the app completely and very hard\r\n\r\nTestcase:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar data = [];\r\nfor (var i = 0; i < 10; i++) {\r\n data.push(Ti.UI.createTableViewRow({\r\n title: 'row ' + i\r\n }));\r\n}\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n editable: true,\r\n data: data\r\n});\r\n\r\nwin.add(tableView);\r\nwin.open();\r\n{code}\r\n\r\nError on deleting the last row\r\n\r\n{code:xml}\r\n[ERROR] : The application has crashed with an uncaught exception 'NSRangeException'.\r\n[ERROR] : Reason:\r\n[ERROR] : *** -[__NSArrayM objectAtIndex:]: index 19 beyond bounds [0 .. 18]\r\n[ERROR] : Stack trace:\r\n[ERROR] : \r\n[ERROR] : 0 CoreFoundation 0x2736149f + 126\r\n[ERROR] : 1 libobjc.A.dylib 0x34b78c8b objc_exception_throw + 38\r\n[ERROR] : 2 CoreFoundation 0x272759e1 + 0\r\n[ERROR] : 3 TestApp\t\t\t 0x000ec063 TestApp + 53347\r\n[ERROR] : 4 TestApp \t\t 0x0016d001 TestApp + 581633\r\n[ERROR] : 5 TestApp \t\t 0x001786a3 TestApp + 628387\r\n[ERROR] : 6 UIKit 0x2a913243 + 358\r\n[ERROR] : 7 UIKit 0x2aa11715 + 268\r\n[ERROR] : 8 UIKit 0x2a9ee685 + 8348\r\n[ERROR] : 9 TestApp \t\t 0x00176fa3 TestApp + 622499\r\n[ERROR] : 10 UIKit 0x2aa06413 + 142\r\n[ERROR] : 11 UIKit 0x2aadfee5 + 68\r\n[ERROR] : 12 UIKit 0x2a8549fb + 70\r\n[ERROR] : 13 UIKit 0x2a8549a1 + 44\r\n[ERROR] : 14 UIKit 0x2a83f613 + 582\r\n[ERROR] : 15 UIKit 0x2a85440d + 588\r\n[ERROR] : 16 UIKit 0x2a8540e7 + 522\r\n[ERROR] : 17 UIKit 0x2a84d9b1 + 544\r\n[ERROR] : 18 UIKit 0x2a82415d + 196\r\n[ERROR] : 19 UIKit 0x2aa97ab9 + 13888\r\n[ERROR] : 20 UIKit 0x2a822bb9 + 1296\r\n[ERROR] : 21 CoreFoundation 0x27327d57 + 14\r\n[ERROR] : 22 CoreFoundation 0x27327167 + 218\r\n[ERROR] : 23 CoreFoundation 0x273257cd + 772\r\n[ERROR] : 24 CoreFoundation 0x272733c1 CFRunLoopRunSpecific + 476\r\n[ERROR] : 25 CoreFoundation 0x272731d3 CFRunLoopRunInMode + 106\r\n[ERROR] : 26 GraphicsServices 0x2e62b0a9 GSEventRunModal + 136\r\n[ERROR] : 27 UIKit 0x2a882fa1 UIApplicationMain + 1440\r\n[ERROR] : 28 TestApp \t\t 0x000e7f1b TestApp + 36635\r\n[ERROR] : 29 libdyld.dylib 0x350f8aaf + 2\r\n[ERROR] : *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 19 beyond bounds [0 .. 18]'\r\n[ERROR] : *** First throw call stack:\r\n[ERROR] : (0x2736149f 0x34b78c8b 0x272759e1 0xec063 0x16d001 0x1786a3 0x2a913243 0x2aa11715 0x2a9ee685 0x176fa3 0x2aa06413 0x2aadfee5 0x2a8549fb 0x2a8549a1 0x2a83f613 0x2a85440d 0x2a8540e7 0x2a84d9b1 0x2a82415d 0x2aa97ab9 0x2a822bb9 0x27327d57 0x27327167 0x273257cd 0x272733c1 0x272731d3 0x2e62b0a9 0x2a882fa1 0xe7f1b 0x350f8aaf)\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: App crashes on deleting last row of tableview", "creator": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "environment": " Name = Mac OS X\r\n Version = 10.10.2\r\n Node.js Version = 0.10.26\r\n npm Version = 2.0.2\r\n CLI Version = 3.4.1\r\n SDK Version = 3.5.0.RC", "closedSprints": [ { "id": 291, "state": "closed", "name": "2015 Sprint 01 SDK", "startDate": "2015-01-03T01:00:00.000Z", "endDate": "2015-01-17T01:00:00.000Z", "completeDate": "2015-01-19T17:24:40.828Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "338575", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PRs\r\nmaster: https://github.com/appcelerator/titanium_mobile/pull/6558\r\n3_5_X: https://github.com/appcelerator/titanium_mobile/pull/6559", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-09T20:25:12.000+0000", "updated": "2015-01-09T21:19:44.000+0000" }, { "id": "338594", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. App does not crash if you delete the last row in the table.\r\n\r\nTested on:\r\n\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nSDK build: 3.5.0.v20150109131718\r\nCLI: 3.4.1\r\nAlloy: 1.5.1\r\nXcode: 6.2 beta 3\r\nDevices: iphone 6 (8.1)\r\n\r\n", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-01-09T22:46:00.000+0000", "updated": "2015-01-09T23:30:16.000+0000" }, { "id": "338597", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "SDK build should be 3.5.0.v20150109131718", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-09T23:01:59.000+0000", "updated": "2015-01-09T23:01:59.000+0000" }, { "id": "338602", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening ticket to fix my comment. Used copy and paste from an old note.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-01-09T23:29:30.000+0000", "updated": "2015-01-09T23:30:25.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }