{ "id": "130849", "key": "TIMOB-17088", "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": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2014-11-10T04:48:52.000+0000", "created": "2014-05-24T09:19:21.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T20:52:08.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": "h3. Steps to Reproduce\r\n1) Run next code on iOS 7 (SDK 3.2.3 GA):\r\n\r\n{code}\r\nvar wnd = Ti.UI.createWindow({\r\n\tbackgroundColor: \"red\"\r\n});\r\n\r\nvar listView = Ti.UI.createListView({\r\n});\r\nvar sections = [];\r\n\r\nfor (i = 0; i < 3; ++i) {\r\n\tvar items = [];\r\n\t\r\n\tif (i < 2) {\r\n\t\tfor (j = 0; j < 3; ++j) {\r\n\t\t\titems.push({\r\n\t\t\t\tproperties : {\r\n\t\t\t\t\theight: \"100dp\",\r\n\t\t\t\t\ttitle: \"section: \" + (i + 1) + \" item: \" + (j + 1),\r\n\t\t\t\t\tcanEdit: true\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\t\r\n\tvar section = Ti.UI.createListSection({\r\n\t\theaderTitle: \"Header \" + (i + 1),\r\n\t\tfooterTitle: \"Footer \" + (i + 1),\r\n\t\titems: items\r\n\t});\r\n\t\r\n\r\n\tsections.push(section);\r\n}\r\n\r\nlistView.sections = sections;\r\n\r\nwnd.add(listView);\r\nwnd.open();\r\n{code}\r\n2) Scroll to bottom.\r\n2) Try to delete item 'Section: 2 Item: 3' - swipe left and press delete button\r\n\r\nh3. Actual Result\r\nApplication crashes\r\n{code}\r\n2014-05-23 22:16:35.225 ListViewDeleteItem[8125:60b] *** Assertion failure in -[UIViewAnimation initWithView:indexPath:endRect:endAlpha:startFraction:endFraction:curve:animateFromCurrentPosition:shouldDeleteAfterAnimation:editing:], /SourceCache/UIKit_Sim/UIKit-2935.137/UITableViewSupport.m:2666\r\n[ERROR] The application has crashed with an uncaught exception 'NSInternalInconsistencyException'.\r\nReason:\r\nCell animation stop fraction must be greater than start fraction\r\nStack trace:\r\n\r\n0 CoreFoundation 0x045a91c8 __exceptionPreprocess + 152\r\n1 libobjc.A.dylib 0x03f8f8e5 objc_exception_throw + 44\r\n2 CoreFoundation 0x045a9048 +[NSException raise:format:arguments:] + 136\r\n3 Foundation 0x010794de -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116\r\n4 UIKit 0x017daef6 -[UIViewAnimation initWithView:indexPath:endRect:endAlpha:startFraction:endFraction:curve:animateFromCurrentPosition:shouldDeleteAfterAnimation:editing:] + 309\r\n5 UIKit 0x017d97da -[_UITableViewUpdateSupport(Private) _setupAnimationsForExistingHeadersAndFooters] + 8763\r\n6 UIKit 0x017da1f0 -[_UITableViewUpdateSupport _setupAnimations] + 261\r\n7 UIKit 0x01588bff -[UITableView _updateWithItems:updateSupport:] + 1898\r\n8 UIKit 0x01583fe7 -[UITableView _endCellAnimationsWithContext:] + 13534\r\n9 UIKit 0x01593cea -[UITableView endUpdatesWithContext:] + 51\r\n10 UIKit 0x01593d18 -[UITableView endUpdates] + 41\r\n11 ListViewDeleteItem 0x002bb95e -[TiUIListView tableView:commitEditingStyle:forRowAtIndexPath:] + 2622\r\n12 UIKit 0x015a56a3 -[UITableView animateDeletionOfRowWithCell:] + 107\r\n13 UIKit 0x0172e595 -[UITableViewCell _swipeDeleteButtonPushed] + 70\r\n14 libobjc.A.dylib 0x03fa1880 -[NSObject performSelector:withObject:withObject:] + 77\r\n15 UIKit 0x014ad3b9 -[UIApplication sendAction:to:from:forEvent:] + 108\r\n16 UIKit 0x014ad345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61\r\n17 UIKit 0x015aebd1 -[UIControl sendAction:to:forEvent:] + 66\r\n18 UIKit 0x015aefc6 -[UIControl _sendActionsForEvents:withEvent:] + 577\r\n19 UIKit 0x015ae243 -[UIControl touchesEnded:withEvent:] + 641\r\n20 UIKit 0x014ecddd -[UIWindow _sendTouchesForEvent:] + 852\r\n21 UIKit 0x014ed9d1 -[UIWindow sendEvent:] + 1117\r\n22 UIKit 0x014bf5f2 -[UIApplication sendEvent:] + 242\r\n23 UIKit 0x014a9353 _UIApplicationHandleEventQueue + 11455\r\n24 CoreFoundation 0x0453277f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15\r\n25 CoreFoundation 0x0453210b __CFRunLoopDoSources0 + 235\r\n26 CoreFoundation 0x0454f1ae __CFRunLoopRun + 910\r\n27 CoreFoundation 0x0454e9d3 CFRunLoopRunSpecific + 467\r\n28 CoreFoundation 0x0454e7eb CFRunLoopRunInMode + 123\r\n29 GraphicsServices 0x043515ee GSEventRunModal + 192\r\n30 GraphicsServices 0x0435142b GSEventRun + 104\r\n31 UIKit 0x014abf9b UIApplicationMain + 1225\r\n32 ListViewDeleteItem 0x00003956 main + 134\r\n33 ListViewDeleteItem 0x00002ee5 start + 53\r\n\r\n2014-05-23 22:16:35.765 ListViewDeleteItem[8125:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Cell animation stop fraction must be greater than start fraction'\r\n*** First throw call stack:\r\n(\r\n\t0 CoreFoundation 0x045a91e4 __exceptionPreprocess + 180\r\n\t1 libobjc.A.dylib 0x03f8f8e5 objc_exception_throw + 44\r\n\t2 CoreFoundation 0x045a9048 +[NSException raise:format:arguments:] + 136\r\n\t3 Foundation 0x010794de -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116\r\n\t4 UIKit 0x017daef6 -[UIViewAnimation initWithView:indexPath:endRect:endAlpha:startFraction:endFraction:curve:animateFromCurrentPosition:shouldDeleteAfterAnimation:editing:] + 309\r\n\t5 UIKit 0x017d97da -[_UITableViewUpdateSupport(Private) _setupAnimationsForExistingHeadersAndFooters] + 8763\r\n\t6 UIKit 0x017da1f0 -[_UITableViewUpdateSupport _setupAnimations] + 261\r\n\t7 UIKit 0x01588bff -[UITableView _updateWithItems:updateSupport:] + 1898\r\n\t8 UIKit 0x01583fe7 -[UITableView _endCellAnimationsWithContext:] + 13534\r\n\t9 UIKit 0x01593cea -[UITableView endUpdatesWithContext:] + 51\r\n\t10 UIKit 0x01593d18 -[UITableView endUpdates] + 41\r\n\t11 ListViewDeleteItem 0x002bb95e -[TiUIListView tableView:commitEditingStyle:forRowAtIndexPath:] + 2622\r\n\t12 UIKit 0x015a56a3 -[UITableView animateDeletionOfRowWithCell:] + 107\r\n\t13 UIKit 0x0172e595 -[UITableViewCell _swipeDeleteButtonPushed] + 70\r\n\t14 libobjc.A.dylib 0x03fa1880 -[NSObject performSelector:withObject:withObject:] + 77\r\n\t15 UIKit 0x014ad3b9 -[UIApplication sendAction:to:from:forEvent:] + 108\r\n\t16 UIKit 0x014ad345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61\r\n\t17 UIKit 0x015aebd1 -[UIControl sendAction:to:forEvent:] + 66\r\n\t18 UIKit 0x015aefc6 -[UIControl _sendActionsForEvents:withEvent:] + 577\r\n\t19 UIKit 0x015ae243 -[UIControl touchesEnded:withEvent:] + 641\r\n\t20 UIKit 0x014ecddd -[UIWindow _sendTouchesForEvent:] + 852\r\n\t21 UIKit 0x014ed9d1 -[UIWindow sendEvent:] + 1117\r\n\t22 UIKit 0x014bf5f2 -[UIApplication sendEvent:] + 242\r\n\t23 UIKit 0x014a9353 _UIApplicationHandleEventQueue + 11455\r\n\t24 CoreFoundation 0x0453277f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15\r\n\t25 CoreFoundation 0x0453210b __CFRunLoopDoSources0 + 235\r\n\t26 CoreFoundation 0x0454f1ae __CFRunLoopRun + 910\r\n\t27 CoreFoundation 0x0454e9d3 CFRunLoopRunSpecific + 467\r\n\t28 CoreFoundation 0x0454e7eb CFRunLoopRunInMode + 123\r\n\t29 GraphicsServices 0x043515ee GSEventRunModal + 192\r\n\t30 GraphicsServices 0x0435142b GSEventRun + 104\r\n\t31 UIKit 0x014abf9b UIApplicationMain + 1225\r\n\t32 ListViewDeleteItem 0x00003956 main + 134\r\n\t33 ListViewDeleteItem 0x00002ee5 start + 53\r\n)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException\r\n(lldb) {code}\r\n\r\nh3. Expected Result\r\nApplication should not crashes and item should be deleted.", "attachment": [], "flagged": false, "summary": "iOS7: ListView with footers crashes when deleting an item on iOS 7", "creator": { "name": "vkorol", "key": "vkorol", "displayName": "Viktor Korol", "active": true, "timeZone": "Europe/Istanbul" }, "subtasks": [], "reporter": { "name": "vkorol", "key": "vkorol", "displayName": "Viktor Korol", "active": true, "timeZone": "Europe/Istanbul" }, "environment": "Titanium Studio 3.2.3", "closedSprints": [ { "id": 251, "state": "closed", "name": "2014 Sprint 23 SDK", "startDate": "2014-11-10T22:56:44.608Z", "endDate": "2014-11-22T01:00:00.000Z", "completeDate": "2014-11-22T05:03:36.553Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "324407", "author": { "name": "bcproductions", "key": "bcproductions", "displayName": "Ed", "active": true, "timeZone": "America/Havana" }, "body": "I'm seeing this issue as well. iOS 8 (device) iOS Simulator 7.1, and Ti SDK 3.3.0. ", "updateAuthor": { "name": "bcproductions", "key": "bcproductions", "displayName": "Ed", "active": true, "timeZone": "America/Havana" }, "created": "2014-09-18T03:27:08.000+0000", "updated": "2014-09-18T03:27:08.000+0000" }, { "id": "331150", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "There's a likely chance this is an apple bug: https://devforums.apple.com/message/796520#796520\r\nReproduced on iOS Simulator 7.1, but is working fine on iOS Simulator 8.1 and Ti SDK 3.4.0. \r\nIt looks like Apple has squashed this bug for 8.1.\r\n", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-11-07T08:38:24.000+0000", "updated": "2014-11-07T08:38:24.000+0000" }, { "id": "331337", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested on iOS 8.0.2 device, SDK 3.4.0GA, works alright too.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-11-10T04:46:23.000+0000", "updated": "2014-11-10T04:46:23.000+0000" }, { "id": "414397", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket as the issue is not our bug.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T20:52:08.000+0000", "updated": "2017-03-21T20:52:08.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }