objc-TimesSquare
objc-TimesSquare copied to clipboard
iPhone IOS 6 crash : TSQCalendarView.m line 162 -[TSQCalendarView scrollToDate:animated:]

I know this is an old issue, but I'm still seeing this problem randomly. It's pretty hard to reproduce, I wasn't able to, I can only get this information from crash logs.
All these crashes happens in the TSQCalendarView.m
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x000000555245500c
UIKit
-[UITableViewRowData numberOfRowsInSection:] + 68
-[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:] + 484
-[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:] + 484
-[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:] + 36
Fatal Exception: NSRangeException
-[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:]: section (26) beyond bounds (25).
__exceptionPreprocess + 132
-[NSException initWithCoder:]
-[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:] + 812
-[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:] + 36
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x0000000000000008
-[UITableViewRowData numberOfRowsInSection:] + 68
-[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:] + 484
-[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:] + 484
-[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:] + 36
Probably the content of the tableview is being deallocated at some point