Skip to content

Instantly share code, notes, and snippets.

@haranicle
Created July 16, 2015 05:45
Show Gist options
  • Save haranicle/4171703b6d0d2536fdb8 to your computer and use it in GitHub Desktop.
Save haranicle/4171703b6d0d2536fdb8 to your computer and use it in GitHub Desktop.
'RLMException', reason: 'Index is out of bounds.'
2015-07-16 14:44:42.806 AlcatrazTour[71604:2586803] *** Terminating app due to uncaught exception 'RLMException', reason: 'Index is out of bounds.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010e81bc65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000110386bb7 objc_exception_throw + 45
2 Realm 0x000000010df7c5e7 -[RLMResults objectAtIndex:] + 343
3 Realm 0x000000010df7e5ae -[RLMResults objectAtIndexedSubscript:] + 62
4 AlcatrazTour 0x000000010dbc6c2c _TFC12AlcatrazTour25PluginTableViewController9tableViewfS0_FTCSo11UITableView21cellForRowAtIndexPathCSo11NSIndexPath_CSo15UITableViewCell + 140
5 AlcatrazTour 0x000000010dbc6f1f _TToFC12AlcatrazTour25PluginTableViewController9tableViewfS0_FTCSo11UITableView21cellForRowAtIndexPathCSo11NSIndexPath_CSo15UITableViewCell + 79
6 UIKit 0x000000010f1bb9e8 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 508
7 UIKit 0x000000010f19a208 -[UITableView _updateVisibleCellsNow:isRecursive:] + 2853
8 UIKit 0x000000010f1b0869 -[UITableView layoutSubviews] + 210
9 UIKit 0x000000010f13a9eb -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 536
10 QuartzCore 0x0000000115055ed2 -[CALayer layoutSublayers] + 146
11 QuartzCore 0x000000011504a6e6 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
12 QuartzCore 0x000000011504a556 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
13 QuartzCore 0x0000000114fb686e _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 242
14 QuartzCore 0x0000000114fb7a22 _ZN2CA11Transaction6commitEv + 462
15 QuartzCore 0x0000000114fb80d3 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 89
16 CoreFoundation 0x000000010e74eca7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
17 CoreFoundation 0x000000010e74ec00 __CFRunLoopDoObservers + 368
18 CoreFoundation 0x000000010e744a33 __CFRunLoopRun + 1123
19 CoreFoundation 0x000000010e744366 CFRunLoopRunSpecific + 470
20 GraphicsServices 0x0000000114e9ca3e GSEventRunModal + 161
21 UIKit 0x000000010f0ba8c0 UIApplicationMain + 1282
22 AlcatrazTour 0x000000010dc03937 main + 135
23 libdyld.dylib 0x0000000111454145 start + 1
24 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
@Chris59160
Copy link

You need to give more context to expect any body to come back to you with some help.

@LivioGama
Copy link

LivioGama commented Sep 6, 2016

This happen if you play with the scroll of your UITableView while the data source is mutating datas (deleting some, let's say that for example you're doing a search that will return 0 result, when you're actually displaying a search that gave already 10 results) if you are using Realm with List or Results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment