Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CRASH: *** -[__NSArrayM objectAtIndex:]: index 4294967295 beyond bounds [0 .. 9]

I am getting an array out of bounds error at this ridiculous index, which based on my research says that there is probably some code calling something negative such as [array objectAtIndex: -1] Problem is that this isn't my code and I cannot find it anywhere. I have put breakpoints all over the place to no avail. I am thinking it may be in a UITableView Delegate method but can't be certain. Is there anyway to access the value of all my int variables in the log. I can't NSLog them because I don't know where the crash is occurring.

Thanks!

like image 731
JeffN Avatar asked Jan 17 '26 07:01

JeffN


1 Answers

Try adding an exception breakpoint to see if this catches it:

1) Click on the breakpoints tab

2) Click on the "+" button on bottom left of said tab screen

3) Select "Add Exception Breakpoint"

4) (Optional) change Exception:All to Exception:Objective-C

5) Click done

This typically will break right on/before the line that's causing the crash.

Good luck.

like image 190
JRG-Developer Avatar answered Jan 20 '26 00:01

JRG-Developer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!