photokandyStudios / gbible

Greek Interlinear Bible for iOS (native)
http://www.photokandy.com/apps/gib
41 stars 31 forks source link

CRASH LOG: -[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:]: row (20) beyond bounds (0) for section (0). #37

Closed kerrishotts closed 11 years ago

kerrishotts commented 12 years ago
0 CoreFoundation 0x3423488f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x36b35259 objc_exception_throw + 33
2 CoreFoundation 0x34234789 +[NSException raise:format:] + 1
3 CoreFoundation 0x342347ab +[NSException raise:format:] + 35
4 UIKit 0x36cc3c8f -[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:] + 2971
5 gbible 0x00011c5d -[PKBibleViewController viewWillAppear:] (PKBibleViewController.m:560)
6 UIKit 0x36c38b95 -[UIViewController _setViewAppearState:isAnimating:] + 145
7 UIKit 0x36c38da1 -[UINavigationController viewWillAppear:] + 289
8 UIKit 0x36c38b95 -[UIViewController _setViewAppearState:isAnimating:] + 145
9 UIKit 0x36c928af -[UIViewController beginAppearanceTransition:animated:] + 191
10 UIKit 0x36c8f699 -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 185
11 UIKit 0x36c8f5db -[UITabBarController transitionFromViewController:toViewController:] + 31
12 UIKit 0x36c8ef15 -[UITabBarController _setSelectedViewController:] + 301
13 UIKit 0x36d18455 -[UITabBarController _tabBarItemClicked:] + 345
14 CoreFoundation 0x3418e3fd -[NSObject performSelector:withObject:withObject:] + 53
15 UIKit 0x36c11e07 -[UIApplication sendAction:to:from:forEvent:] + 63
16 UIKit 0x36c11dc3 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 31
17 UIKit 0x36d182d9 -[UITabBar _sendAction:withEvent:] + 353
18 CoreFoundation 0x3418e3fd -[NSObject performSelector:withObject:withObject:] + 53
19 UIKit 0x36c11e07 -[UIApplication sendAction:to:from:forEvent:] + 63
20 UIKit 0x36c11dc3 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 31
21 UIKit 0x36c11da1 -[UIControl sendAction:to:forEvent:] + 45
22 UIKit 0x36c11b11 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 493
23 UIKit 0x36d18069 -[UITabBar(Static) _buttonUp:] + 117
24 CoreFoundation 0x3418e3fd -[NSObject performSelector:withObject:withObject:] + 53
25 UIKit 0x36c11e07 -[UIApplication sendAction:to:from:forEvent:] + 63
26 UIKit 0x36c11dc3 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 31
27 UIKit 0x36c11da1 -[UIControl sendAction:to:forEvent:] + 45
28 UIKit 0x36c11b11 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 493
29 UIKit 0x36c12449 -[UIControl touchesEnded:withEvent:] + 477
30 UIKit 0x36c1092b -[UIWindow _sendTouchesForEvent:] + 319
31 UIKit 0x36c10319 -[UIWindow sendEvent:] + 381
32 UIKit 0x36bf6695 -[UIApplication sendEvent:] + 357
33 UIKit 0x36bf5f3b _UIApplicationHandleEvent + 5827
34 GraphicsServices 0x3816d22b PurpleEventCallback + 883
35 CoreFoundation 0x34208523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ +     39
36 CoreFoundation 0x342084c5 __CFRunLoopDoSource1 + 141
37 CoreFoundation 0x34207313 __CFRunLoopRun + 1371
38 CoreFoundation 0x3418a4a5 CFRunLoopRunSpecific + 301
39 CoreFoundation 0x3418a36d CFRunLoopRunInMode + 105
40 GraphicsServices 0x3816c439 GSEventRunModal + 137
41 UIKit 0x36c24cd5 UIApplicationMain + 1081
42 gbible 0x0000a837 main (main.m:16)
43 gbible 0x000024b8 start + 40

00:00:00 Started Session
00:00:00 Passed checkpoint: (ROOTVIEW)
00:00:00 Passed checkpoint: (APPLICATION_START)
00:00:00 Passed checkpoint: (VIEW_BIBLE)
00:00:01 Passed checkpoint: (BIBLE_BOOKS)
00:00:01 Passed checkpoint: (HISTORY)
00:00:19 Passed checkpoint: (BIBLE_BOOK_CHAPTERS)
00:00:22 Passed checkpoint: (BIBLE_BOOK_CHAPTER_VERSES)
00:00:47 Passed checkpoint: (SETTINGS)
00:04:29 Passed checkpoint: (SEARCH_STRONGS)
00:04:43 Crashed (Exception)
00:04:43 Ended Session
kerrishotts commented 12 years ago

This one is odd -- it looks like it is trying to move to verse 20, but that there are no rows in the view? Is there a potential chapter reference missing that would generate no rows? Additionally, what happens if the view is left at the bottom of the page -- and then we try to scroll there upon coming back, say from settings, but somehow are in a different reference -- I'd guess a crash. Need to have a limiter on this so that we don't attempt to scroll beyond the bounds.

kerrishotts commented 11 years ago

Hopefully fixed by latest commit.