MoinApp / moinapp-ios

iOS App for MoinApp
0 stars 0 forks source link

Crashes when leaving search #1

Closed jhbruhn closed 9 years ago

jhbruhn commented 9 years ago

Steps to reproduce:

MoinApp[59954:456258] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 9 beyond bounds [0 .. 2]'
*** First throw call stack:
(
    0   CoreFoundation                      0x022a3946 __exceptionPreprocess + 182
    1   libobjc.A.dylib                     0x01f2ca97 objc_exception_throw + 44
    2   CoreFoundation                      0x02186bd2 -[__NSArrayI objectAtIndex:] + 210
    3   MoinApp                             0x000ec5e8 -[MainTableViewController tableView:cellForRowAtIndexPath:] + 600
    4   UIKit                               0x00e851bc -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 473
    5   UIKit                               0x00e8529e -[UITableView _createPreparedCellForGlobalRow:willDisplay:] + 77
    6   UIKit                               0x00e5ea6b -[UITableView _updateVisibleCellsNow:isRecursive:] + 3034
    7   UIKit                               0x00e5c891 -[UITableView _setNeedsVisibleCellsUpdate:withFrames:] + 286
    8   UIKit                               0x00e854fc -[UITableView _tableHeaderHeightDidChangeToHeight:] + 125
    9   UIKit                               0x011c9018 -[UISearchDisplayController setActive:animated:] + 17685
    10  UIKit                               0x011cb2d1 -[UISearchDisplayController searchBarCancelButtonClicked:] + 588
    11  UIKit                               0x010c6ebc -[UISearchBar(UISearchBarStatic) _cancelButtonPressed] + 117
    12  libobjc.A.dylib                     0x01f427cd -[NSObject performSelector:withObject:withObject:] + 84
    13  UIKit                               0x00d6523d -[UIApplication sendAction:to:from:forEvent:] + 99
    14  UIKit                               0x00d651cf -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 64
    15  UIKit                               0x00e98e86 -[UIControl sendAction:to:forEvent:] + 69
    16  UIKit                               0x00e992a3 -[UIControl _sendActionsForEvents:withEvent:] + 598
    17  UIKit                               0x00e9850d -[UIControl touchesEnded:withEvent:] + 660
    18  UIKit                               0x00db560a -[UIWindow _sendTouchesForEvent:] + 874
    19  UIKit                               0x00db60e5 -[UIWindow sendEvent:] + 791
    20  UIKit                               0x00d7b549 -[UIApplication sendEvent:] + 242
    21  UIKit                               0x00d8b37e _UIApplicationHandleEventFromQueueEvent + 20690
    22  UIKit                               0x00d5fb19 _UIApplicationHandleEventQueue + 2206
    23  CoreFoundation                      0x021c71df __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
    24  CoreFoundation                      0x021bcced __CFRunLoopDoSources0 + 253
    25  CoreFoundation                      0x021bc248 __CFRunLoopRun + 952
    26  CoreFoundation                      0x021bbbcb CFRunLoopRunSpecific + 443
    27  CoreFoundation                      0x021bb9fb CFRunLoopRunInMode + 123
    28  GraphicsServices                    0x0483c24f GSEventRunModal + 192
    29  GraphicsServices                    0x0483c08c GSEventRun + 104
    30  UIKit                               0x00d638b6 UIApplicationMain + 1526
    31  MoinApp                             0x000eaaed main + 141
    32  libdyld.dylib                       0x02877ac9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
sgade commented 9 years ago

Works perfectly fine for me. Pressing cancel should not reload the tableview data, see commit c9cea1b770e695dd4eb64a8740619487aa63ea3d (here: https://github.com/MoinApp/moinapp-ios/commit/c9cea1b770e695dd4eb64a8740619487aa63ea3d#diff-726e31aba36dc7b915558c5bd074d123L291).

What was your exact search term? Were there some local/server results shown?

jhbruhn commented 9 years ago

Seems that Xcode didn't fully update after I git pull'd. Works now.