This means that at the beginning of [NeighborMapViewController regionFromLocations] you are trying to index an NSMutableArray. This array has zero elements in it - it is empty. But you are apparently trying to access index 0, which will be the first element. Since the first element is missing, you get an exception.
The code that you expected to execute to add elements to the array is probably not executed yet, or you just need to check the length of the array before trying to access the element at index 0. It's hard to say without knowing more about what you are doing.
gdb reports an offset of 65 bytes per function, therefore, probably in one of the first few lines. You could probably manually check the function code to see, or set a breakpoint in the first line of the function and go through it.
Josh petrie
source share