{ "id": "94713", "key": "TIMOB-10074", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-03-27T08:44:54.000+0000", "created": "2012-07-10T04:38:54.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-07T23:55:40.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": "h2. Problem description\r\nTrying to reorder the rows of a TableView by dragging the rows up and down, the app sometimes crashes.\r\n\r\nh2. Steps to reproduce\r\nUsing the following method crashes the app always:\r\n\r\n1. create the followint app:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nvar data = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'}];\r\nvar table = Ti.UI.createTableView({\r\n\tdata: data,\r\n\tmoving: true\r\n});\r\n\r\nwin.add(table);\r\n\r\nwin.open();\r\n{code}\r\n\r\n2. Start dragging one of the rows\r\n3. While holding the row, rotate the device\r\n\r\nh2. Current result\r\nThe app crashes and the followint error is shown in console:\r\n\r\n{code}\r\n[ERROR] The application has crashed with an unhandled exception. Stack trace:\r\n0 CoreFoundation 0x02f6e022 __exceptionPreprocess + 178\r\n1 libobjc.A.dylib 0x02d8ecd6 objc_exception_throw + 44\r\n2 CoreFoundation 0x02f5ad88 -[__NSArrayM objectAtIndex:] + 264\r\n3 UIKit 0x00b60250 -[UITableView cellForRowAtIndexPath:] + 219\r\n4 UIKit 0x00b6d2b4 -[UITableView(UITableViewInternal) _reorderPositionChangedForCell:withScrollFactorPercentage:] + 2687\r\n5 UIKit 0x00b6c830 -[UITableView(UITableViewInternal) _reorderPositionChangedForCell:] + 48\r\n6 UIKit 0x00b69243 -[UITableView(UITableViewInternal) _beginReorderingForCell:] + 1043\r\n7 UIKit 0x00cc39ed -[UITableViewCell(UITableViewCellInternal) _grabberBeganReorder:] + 57\r\n8 UIKit 0x00d6b025 -[UITableViewCellReorderControl beginTrackingWithTouch:withEvent:] + 99\r\n9 UIKit 0x00b79cee -[UIControl touchesBegan:withEvent:] + 108\r\n10 UIKit 0x00d95a1a _UIGestureRecognizerUpdate + 6725\r\n11 CoreFoundation 0x02f4299e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30\r\n12 CoreFoundation 0x02ed9640 __CFRunLoopDoObservers + 384\r\n13 CoreFoundation 0x02ea54c6 __CFRunLoopRun + 1174\r\n14 CoreFoundation 0x02ea4d84 CFRunLoopRunSpecific + 212\r\n15 CoreFoundation 0x02ea4c9b CFRunLoopRunInMode + 123\r\n16 GraphicsServices 0x02bcc7d8 GSEventRunModal + 190\r\n17 GraphicsServices 0x02bcc88a GSEventRun + 103\r\n18 UIKit 0x00ad1626 UIApplicationMain + 1163\r\n19 TestApp 0x00005cb8 main + 456\r\n20 TestApp 0x00002625 start + 53\r\n2012-07-23 15:24:07.618 TestApp[4683:17603] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 4 beyond bounds [0 .. 3]'\r\n*** First throw call stack:\r\n(0x2f6e022 0x2d8ecd6 0x2f5ad88 0xb60250 0xb6d2b4 0xb6c830 0xb69243 0xcc39ed 0xd6b025 0xb79cee 0xd95a1a 0x2f4299e 0x2ed9640 0x2ea54c6 0x2ea4d84 0x2ea4c9b 0x2bcc7d8 0x2bcc88a 0xad1626 0x5cb8 0x2625)\r\nterminate called throwing an exception\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: application crashes when trying to reorder custom rows in TableView ", "creator": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "Titanium Mobile - iOS (all version I guess), it's not working since 1.8.0.1 until 2.1", "comment": { "comments": [ { "id": "211501", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "Confirmed the bug with 2.1.1.GA And 2.2.0.v20120730212111", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-08-06T05:34:00.000+0000", "updated": "2012-08-06T05:34:00.000+0000" }, { "id": "244262", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\niOS iPhone Simulator: iOS SDK version: 6.0\r\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T08:44:54.000+0000", "updated": "2013-03-27T08:44:54.000+0000" }, { "id": "409679", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-07T23:55:40.000+0000", "updated": "2017-03-07T23:55:40.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }