{ "id": "64042", "key": "TIMOB-3410", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11248", "name": "Sprint 2011-13", "archived": true, "released": true, "releaseDate": "2011-04-04" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-16T11:00:03.000+0000", "created": "2011-04-15T03:43:57.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "ios", "release-1.7.0", "tableview" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-05-16T11:00:03.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": "{html}
\n\nvar win = Titanium.UI.currentWindow;\nvar search = Titanium.UI.createSearchBar({\n    showCancel:true,\n    height:43,\n    top:0\n});\nvar data = [];\n \ndata[0] = Titanium.UI.createTableViewSection({headerTitle:'Header 1'});\ndata[0].add(Titanium.UI.createTableViewRow({title:'Row 1'}));\n \ndata[1] = Titanium.UI.createTableViewSection({headerTitle:'Header 2'});\ndata[1].add(Titanium.UI.createTableViewRow({title:'Row 2'}));\n\nsearch.addEventListener('focus', function(e)\n{\n    Ti.API.info('focus');\n});\n\nvar tableview = Titanium.UI.createTableView({\n  data:data,\n  search:search,\n \n});\n\ntableview.addEventListener('click',function(e) {\n  Ti.API.info(e);\n});\n\nwin.add(tableview);\n
\n

crashes on 1.7.0 (with iOS 4.1)
\nworks on 1.6.2

\n

steps to reproduce:
\n1) type r in search box
\n2) click row 1

\n

error:
\nInvalid update: invalid number of sections. The number of sections\ncontained in the table view after the update (2) must be equal to\nthe number of sections contained in the table view before the\nupdate (1)

{html}", "attachment": [], "flagged": false, "summary": "simple table view search crashes on 1.7.0", "creator": { "name": "leolou", "key": "leolou", "displayName": "Leo Lou", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "leolou", "key": "leolou", "displayName": "Leo Lou", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130656", "author": { "name": "leolou", "key": "leolou", "displayName": "Leo Lou", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Terminating app due to uncaught exception\n'NSInternalInconsistencyException', reason: 'Invalid update:\ninvalid number of sections. The number of sections contained in the\ntable view after the update (18) must be equal to the number of\nsections contained in the table view before the update (1), plus or\nminus the number of sections inserted or deleted (0 inserted, 0\ndeleted).' Call stack at first throw: ( 0\nCoreFoundation 0x0388ab99 exceptionPreprocess + 185
\n1 libobjc.A.dylib 0x039da40e objc_exception_throw + 47
\n2 CoreFoundation 0x03843238 +[NSException raise:format:arguments:]\n+ 136
\n3 Foundation 0x006ade37 -[NSAssertionHandler\nhandleFailureInMethod:object:file:lineNumber:description:] +\n116
\n4 UIKit 0x0092d9a6 -[UITableView(UITableViewPrivate)\nendCellAnimationsWithContext:] + 7806
\n5 UIKit 0x0091d4d3 -[UITableView\nreloadRowsAtIndexPaths:withRowAnimation:] + 56
\n6 UIKit 0x08b0d898 -[UITableViewAccessibility(Accessibility)\nreloadRowsAtIndexPaths:withRowAnimation:] + 74
\n7 MyApp 0x00074648 -[TiUITableView hideSearchScreen:] + 604
\n8 MyApp 0x000731be -[TiUITableView\ntriggerActionForIndexPath:fromPath:tableView:wasAccessory:search:name:]\n+ 1637
\n9 MyApp 0x00079222 -[TiUITableView\ntableView:didSelectRowAtIndexPath:] + 205
\n10 UIKit 0x00926a48 -[UITableView\nselectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] +\n1140
\n11 UIKit 0x0091d32e -[UITableView
userSelectRowAtIndexPath:] +\n219
\n12 Foundation 0x0063221a
NSFireDelayedPerform + 441
\n13 CoreFoundation 0x0386bf73\nCFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION\n+ 19
\n14 CoreFoundation 0x0386d5b4 CFRunLoopDoTimer + 1364
\n15 CoreFoundation 0x037c9dd9
CFRunLoopRun + 1817
\n16 CoreFoundation 0x037c9350 CFRunLoopRunSpecific + 208
\n17 CoreFoundation 0x037c9271 CFRunLoopRunInMode + 97
\n18 GraphicsServices 0x0547100c GSEventRunModal + 217
\n19 GraphicsServices 0x054710d1 GSEventRun + 115
\n20 UIKit 0x008c1af2 UIApplicationMain + 1160
\n21 MyApp 0x0000388c main + 362
\n22 MyApp 0x000026b1 start + 53
\n) terminate called after throwing an instance of 'NSException'

{html}", "updateAuthor": { "name": "leolou", "key": "leolou", "displayName": "Leo Lou", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:43:57.000+0000", "updated": "2011-04-15T03:43:57.000+0000" }, { "id": "130657", "author": { "name": "leolou", "key": "leolou", "displayName": "Leo Lou", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

fixed in 1.7.0 Apr 1 r1203e55e

{html}", "updateAuthor": { "name": "leolou", "key": "leolou", "displayName": "Leo Lou", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:43:58.000+0000", "updated": "2011-04-15T03:43:58.000+0000" }, { "id": "133434", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "thanks for confirming the fix Leo - also checked 3.1.3 iphone3, 4.3.3 ipad2 [INFO] Titanium SDK version: 1.7.0 (05/10/11 19:34 879871b...)", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-11T14:45:40.000+0000", "updated": "2011-05-11T14:45:40.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }