Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Kingbombs

macrumors member
Original poster
Jun 24, 2009
98
0
I get this error occasionally when programming in xcode for the iphone
Its becoming more frequent, i read somewhere, someone said they just moved there files across to a new project, so i did this (copy and pasted the code into new code files) and this didn't solve the problem
Heres everything from the console printed out (this error only appears while im modifying code not when the program is being ran and never appears while the program is running): (There's a few messages that appear in the console)

15/08/2009 15:19:23 Xcode[101] ** INTERNAL ERROR: Uncaught Exception **
Exception: *** -[DTMutableRangeArray rangeAtIndex:]: index (2) beyond bounds (0).
Stack:
0 0x96c5a0ab __raiseError (in CoreFoundation)
1 0x90325e3b objc_exception_throw (in libobjc.A.dylib)
2 0x96c59e8b +[NSException raise:format:arguments:] (in CoreFoundation)
3 0x96c59eca +[NSException raise:format:] (in CoreFoundation)
4 0x0005e70c _DTRangeArrayRaiseBoundsException (in DevToolsFoundation)
5 0x0005ef8a -[DTMutableRangeArray rangeAtIndex:] (in DevToolsFoundation)
6 0x00254387 -[XCTextView _displayAutoHighlightTokens] (in XcodeEdit)
7 0x00255496 -[XCTextView _autoHighlightTokenWithTimer:] (in XcodeEdit)
8 0x952d0493 __NSFireTimer (in Foundation)
9 0x96be0ac5 CFRunLoopRunSpecific (in CoreFoundation)
10 0x96be0c78 CFRunLoopRunInMode (in CoreFoundation)
11 0x9099c28c RunCurrentEventLoopInMode (in HIToolbox)
12 0x9099c0a5 ReceiveNextEventCommon (in HIToolbox)
13 0x9099bf19 BlockUntilNextEventMatchingListInMode (in HIToolbox)
14 0x93f7ed0d _DPSNextEvent (in AppKit)
15 0x93f7e5c0 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
16 0x93f775fb -[NSApplication run] (in AppKit)
17 0x93f44834 NSApplicationMain (in AppKit)
18 0x00002bca

15/08/2009 15:19:23 Xcode[101]
Received an uncaught exception while already handling 1 uncaught exception(s).

** INTERNAL ERROR: Uncaught Exception **
Exception: NSConcreteMutableAttributedString attributedSubstringFromRange:: Out of bounds
Stack:
0 0x96c5a0ab __raiseError (in CoreFoundation)
1 0x90325e3b objc_exception_throw (in libobjc.A.dylib)
2 0x96c59e8b +[NSException raise:format:arguments:] (in CoreFoundation)
3 0x96c59eca +[NSException raise:format:] (in CoreFoundation)
4 0x953122fc -[NSAttributedString attributedSubstringFromRange:] (in Foundation)
5 0x00e136d3 -[XCUndoCompletion undoRedo:] (in DevToolsInterface)
6 0x95380332 -[_NSUndoLightInvocation invoke] (in Foundation)
7 0x9536de24 -[_NSUndoStack popAndInvoke] (in Foundation)
8 0x9536dc27 -[NSUndoManager undoNestedGroup] (in Foundation)
9 0x00d31191 -[PBXCodeAssistant undoCycling] (in DevToolsInterface)
10 0x00b79d90 -[PBXCodeAssistant cancelSession] (in DevToolsInterface)
11 0x00b79c48 -[PBXCodeAssistant dismissAssistant] (in DevToolsInterface)
12 0x00b9da4c -[XCSourceCodeTextView resignKeyWindow] (in DevToolsInterface)
13 0x940517ea -[NSWindow resignKeyWindow] (in AppKit)
14 0x00b5fa4c -[XCWindow resignKeyWindow] (in DevToolsInterface)
15 0x94004344 -[NSWindow _changeKeyAndMainLimitedOK:] (in AppKit)
16 0x940040a9 -[NSWindow makeKeyWindow] (in AppKit)
17 0x94003fe5 -[NSWindow makeKeyAndOrderFront:] (in AppKit)
18 0x00c8fc97 -[PBXAssertionHandler _reallyRunInternalErrorPanelWithAttributedMessageString:] (in DevToolsInterface)
19 0x00c9049d -[PBXAssertionHandler handleUncaughtException:] (in DevToolsInterface)
20 0x00cbae20 -[PBXExtendedApplication reportException:] (in DevToolsInterface)
21 0x941818a8 _NSDefaultTopLevelErrorHandler (in AppKit)
22 0x93f774f4 -[NSApplication run] (in AppKit)
23 0x93f44834 NSApplicationMain (in AppKit)
24 0x00002bca

15/08/2009 15:19:23 Xcode[101] Stack: (
2529534123,
2419220027,
2529533579,
2529533642,
2503025404,
14759635,
2503476018,
2503400996,
2503400487,
13832593,
12033424,
12033096,
12180044,
2483361770,
11926092,
2483045188,
2483044521,
2483044325,
13171863,
13173917,
13348384,
2484607144,
2482468084,
2482260020,
11210
)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.