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

jiminaus

macrumors 65816
Dec 16, 2010
1,449
1
Sydney
Chances are no-one's going to a follow a random URL to answer your question. Attach the file instead.
 

Littleodie914

macrumors 68000
Jun 9, 2004
1,813
8
Rochester, NY
Didn't crash for me in either of:

  • Xcode 3.2.6 (1761)
  • Xcode 4.0 (4A304a)

Do you have any relevant log messages in the Console? (Applications -> Utilities -> Console)
 

teguh123

macrumors member
Original poster
Mar 22, 2011
62
0
Didn't crash for me in either of:

  • Xcode 3.2.6 (1761)
  • Xcode 4.0 (4A304a)

Do you have any relevant log messages in the Console? (Applications -> Utilities -> Console)

Code:
Process:         Xcode [1975]
Path:            /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:      com.apple.dt.Xcode
Version:         4.0 (99)
Build Info:      IDEApplication-990000~36
Code Type:       X86-64 (Native)
Parent Process:  launchd [92]

Date/Time:       2011-04-22 09:27:11.994 +0700
OS Version:      Mac OS X 10.6.7 (10J869)
Report Version:  6

Interval Since Last Report:          35240 sec
Crashes Since Last Report:           7
Per-App Interval Since Last Report:  32139 sec
Per-App Crashes Since Last Report:   7
Anonymous UUID:                      B0FCFF42-38B8-4466-8161-8D3F5CEBC494

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Application Specific Information:
ProductBuildVersion: 4A304a
Encountered multiple assertions. First assertion was: UNCAUGHT EXCEPTION (NSRangeException): *** -[NSCFString _getBlockStart:end:contentsEnd:forRange:stopAtLineSeparators:]: Range or index out of bounds
UserInfo: (null)
Hints: None
Backtrace:
  0  0x00007fff86932796 __exceptionPreprocess (in CoreFoundation)
  1  0x00007fff87cb80f3 objc_exception_throw (in libobjc.A.dylib)
  2  0x00007fff869325d7 +[NSException raise:format:arguments:] (in CoreFoundation)
  3  0x00007fff86932564 +[NSException raise:format:] (in CoreFoundation)
  4  0x00007fff83e564aa -[NSString _getBlockStart:end:contentsEnd:forRange:stopAtLineSeparators:] (in Foundation)
  5  0x00007fff84eb902d _NSFastFillAllLayoutHolesForGlyphRange (in AppKit)
  6  0x00007fff8540fcbb -[NSTextView(NSPrivate) _ensureLayoutCompleteForVisibleRectWithExtensionFactor:minimumExtensionDistance:repetitions:] (in AppKit)
  7  0x000000010020d1a3 -[DVTSourceTextView(FoldingSupport) _ensureLayoutCompleteForVisibleRectWithExtension:] (in DVTKit)
  8  0x00007fff84eb6694 -[NSTextView setNeedsDisplayInRect:avoidAdditionalLayout:] (in AppKit)
  9  0x0000000100204b15 -[DVTSourceTextView setNeedsDisplayInRect:avoidAdditionalLayout:] (in DVTKit)
 10  0x00007fff84e73c3b -[NSView setNeedsDisplay:] (in AppKit)
 11  0x0000000100075704 -[NSObject(DVTPropertyLinking) dvt_addObserverWithName:toKeyPath:ofObject:block:] (in DVTFoundation)
 12  0x000000011988e833 -[IDESourceCodeEditor contentViewDidCompleteLayout] (in IDESourceEditor)
 13  0x000000011988e115 -[IDESourceCodeEditorContainerView didCompleteLayout] (in IDESourceEditor)
 14  0x00000001001d8fc0 +[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:] (in DVTKit)
 15  0x000000010088c649 __66-[IDEEditorContext _openNavigableItem:documentExtension:document:]_block_invoke_0 (in IDEKit)
 16  0x000000010088c1b8 -[IDEEditorContext _performBlockInsideReentrantGuard:] (in IDEKit)
 17  0x000000010088c088 -[IDEEditorContext _openNavigableItem:documentExtension:document:] (in IDEKit)
 18  0x00000001008c0021 -[IDEEditorContext _openNavigableItem:documentExtension:] (in IDEKit)
 19  0x00000001008bf3d6 -[IDEEditorContext _notifyDelegateAndOpenNavigableItem:documentExtensionIdentifier:locationToSelect:annotationRepresentedObject:stateDictionary:annotationWantsIndicatorAnimation:exploreAnnotationRepresentedObject:] (in IDEKit)
 20  0x00000001008bb968 -[IDEEditorContext _notifyDelegateAndOpenEditorOpenSpecifier:updateHistory:] (in IDEKit)
 21  0x00000001008bb743 -[IDEEditorContext _openEditorOpenSpecifier:updateHistory:] (in IDEKit)
 22  0x00000001008bb44e -[IDEEditorContext openEditorOpenSpecifier:] (in IDEKit)
 23  0x00000001008bb42b -[IDEEditorModeViewController openEditorOpenSpecifier:editorContext:] (in IDEKit)
 24  0x00000001008bb3e9 -[IDEEditorArea _openEditorOpenSpecifier:editorContext:takeFocus:] (in IDEKit)
 25  0x0000000100941c9b __108+[IDEEditorCoordinator _doOpenEditorOpenSpecifier:forWorkspaceTabController:editorContext:target:takeFocus:]_block_invoke_0 (in IDEKit)
 26  0x00000001008bb14d +[IDEEditorCoordinator _doOpenWithWorkspaceTabController:editorContext:target:allowFallback:documentURL:usingBlock:] (in IDEKit)
 27  0x0000000100941bb8 +[IDEEditorCoordinator _doOpenEditorOpenSpecifier:forWorkspaceTabController:editorContext:target:takeFocus:] (in IDEKit)
 28  0x00000001008bab89 -[_IDEOpenRequest _runIfNecessary] (in IDEKit)
 29  0x00007fff83e1f11c __NSFireDelayedPerform (in Foundation)
 30  0x00007fff868cebe8 __CFRunLoopRun (in CoreFoundation)
 31  0x00007fff868ccdbf CFRunLoopRunSpecific (in CoreFoundation)
 32  0x00007fff81e397ee RunCurrentEventLoopInMode (in HIToolbox)
 33  0x00007fff81e395f3 ReceiveNextEventCommon (in HIToolbox)
 34  0x00007fff81e394ac BlockUntilNextEventMatchingListInMode (in HIToolbox)
 35  0x00007fff84e99e64 _DPSNextEvent (in AppKit)
 36  0x00007fff84e997a9 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
 37  0x00007fff84e5f48b -[NSApplication run] (in AppKit)
 38  0x00007fff84e581a8 NSApplicationMain (in AppKit)
 39  0x0000000100000eec
 
abort() called
objc[1975]: garbage collection is ON

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib             	0x00007fff874b85d6 __kill + 10
1   libSystem.B.dylib             	0x00007fff87558cd6 abort + 83
2   com.apple.dt.IDEKit           	0x0000000100949360 +[IDEAssertionHandler _handleAssertionWithLogString:] + 343
3   com.apple.dt.IDEKit           	0x0000000100949eb3 -[IDEAssertionHandler handleUncaughtException:] + 563
4   com.apple.dt.DVTKit           	0x00000001002183ce -[DVTSourceTextView drawRect:] + 808
5   com.apple.AppKit              	0x00007fff84fce3ae -[NSTextView _drawRect:clip:] + 2343
6   com.apple.dt.DVTKit           	0x0000000100218086 -[DVTSourceTextView _drawRect:clip:] + 178
7   com.apple.AppKit              	0x00007fff84f558bc -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1325
8   com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
9   com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
10  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
11  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
12  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
13  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
14  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
15  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
16  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
17  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
18  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
19  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
20  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
21  com.apple.dt.DVTKit           	0x00000001001ee112 -[DVTReplacementView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 245
22  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
23  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
24  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
25  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
26  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
27  com.apple.AppKit              	0x00007fff84f55c26 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199
28  com.apple.AppKit              	0x00007fff84f53f8e -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 767
29  com.apple.AppKit              	0x00007fff84f53ab0 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 254
30  com.apple.AppKit              	0x00007fff84f50362 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2683
31  com.apple.AppKit              	0x00007fff84ec9b9a -[NSView displayIfNeeded] + 969
32  com.apple.AppKit              	0x00007fff84ec4a46 _handleWindowNeedsDisplay + 678
33  com.apple.CoreFoundation      	0x00007fff868f1b37 __CFRunLoopDoObservers + 519
34  com.apple.CoreFoundation      	0x00007fff868cd464 __CFRunLoopRun + 468
35  com.apple.CoreFoundation      	0x00007fff868ccdbf CFRunLoopRunSpecific + 575
36  com.apple.HIToolbox           	0x00007fff81e397ee RunCurrentEventLoopInMode + 333
37  com.apple.HIToolbox           	0x00007fff81e39551 ReceiveNextEventCommon + 148
38  com.apple.HIToolbox           	0x00007fff81e394ac BlockUntilNextEventMatchingListInMode + 59
39  com.apple.AppKit              	0x00007fff84e99e64 _DPSNextEvent + 718
40  com.apple.AppKit              	0x00007fff84e997a9 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
41  com.apple.AppKit              	0x00007fff850d4c47 -[NSApplication _realDoModalLoop:peek:] + 442
42  com.apple.AppKit              	0x00007fff850d27d5 -[NSApplication runModalForWindow:] + 129
43  com.apple.dt.IDEKit           	0x0000000100948a55 -[IDE_IBDetailedAlert runModal] + 74
44  com.apple.dt.IDEKit           	0x00000001009494c7 __53+[IDEAssertionHandler _handleAssertionWithLogString:]_block_invoke_020 + 132
45  com.apple.dt.IDEKit           	0x0000000100949347 +[IDEAssertionHandler _handleAssertionWithLogString:] + 318
46  com.apple.dt.IDEKit           	0x0000000100949eb3 -[IDEAssertionHandler handleUncaughtException:] + 563
47  com.apple.AppKit              	0x00007fff84e5f58b -[NSApplication run] + 651
48  com.apple.AppKit              	0x00007fff84e581a8 NSApplicationMain + 364
49  com.apple.dt.Xcode            	0x0000000100000eec 0x100000000 + 3820

Thread 1:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib             	0x00007fff8748312a kevent + 10
1   libSystem.B.dylib             	0x00007fff87484ffd _dispatch_mgr_invoke + 154
2   libSystem.B.dylib             	0x00007fff87484cd4 _dispatch_queue_invoke + 185
3   libSystem.B.dylib             	0x00007fff874847fe _dispatch_worker_thread2 + 252
4   libSystem.B.dylib             	0x00007fff87484128 _pthread_wqthread + 353
5   libSystem.B.dylib             	0x00007fff87483fc5 start_wqthread + 13

Thread 2:
0   libSystem.B.dylib             	0x00007fff87483f4a __workq_kernreturn + 10
1   libSystem.B.dylib             	0x00007fff8748435c _pthread_wqthread + 917
2   libSystem.B.dylib             	0x00007fff87483fc5 start_wqthread + 13

Thread 3:
0   libSystem.B.dylib             	0x00007fff8746a29a mach_msg_trap + 10
1   libSystem.B.dylib             	0x00007fff8746a90d mach_msg + 59
2   com.apple.CoreFoundation      	0x00007fff868cd932 __CFRunLoopRun + 1698
3   com.apple.CoreFoundation      	0x00007fff868ccdbf CFRunLoopRunSpecific + 575
4   com.apple.DTDeviceKit         	0x0000000115388598 -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 314
5   com.apple.Foundation          	0x00007fff83e07f29 __NSThread__main__ + 1429
6   libSystem.B.dylib             	0x00007fff874a34f6 _pthread_start + 331
7   libSystem.B.dylib             	0x00007fff874a33a9 thread_start + 13

Thread 4:  com.apple.CFSocket.private
0   libSystem.B.dylib             	0x00007fff874ade52 select$DARWIN_EXTSN + 10
1   com.apple.CoreFoundation      	0x00007fff868ef498 __CFSocketManager + 824
2   libSystem.B.dylib             	0x00007fff874a34f6 _pthread_start + 331
3   libSystem.B.dylib             	0x00007fff874a33a9 thread_start + 13


I know it's kind of dangerous to download file from the net. Open in text editor first to see it's just a text file.
 
Last edited by a moderator:

teguh123

macrumors member
Original poster
Mar 22, 2011
62
0
I copy the code to another text file and copy chunks by chunks to see which part causes error

This part is:

- (void)awakeFromNib
{
/*
Typically you should set up the Core Data stack here, usually by passing the managed object context to the first view controller.
self.<#View controller#>.managedObjectContext = self.managedObjectContext;
*/
}

Looks like xcode try to set the viewcontroller of the managedobject context and crash while doing so.
 

Littleodie914

macrumors 68000
Jun 9, 2004
1,813
8
Rochester, NY
I copy the code to another text file and copy chunks by chunks to see which part causes error

This part is:

- (void)awakeFromNib
{
/*
Typically you should set up the Core Data stack here, usually by passing the managed object context to the first view controller.
self.<#View controller#>.managedObjectContext = self.managedObjectContext;
*/
}

Looks like xcode try to set the viewcontroller of the managedobject context and crash while doing so.
Nah, that's not the problem. Your code isn't actually being compiled or run by Xcode.

Xcode itself is what's crashing, most likely due to those "<#" and "#>" tags. Worth upgrading to 4.0.1 to see if it fixes things.
 

teguh123

macrumors member
Original poster
Mar 22, 2011
62
0
Installing and In

Uninstalling, Reinstalling doesn't work.

It seems that the placeholder is the problematic

Xcode supposedly replace <#View controller#> with something. Something shiny. I know, it's a place holder. But if I go to another file and goes back to the original file, if the original file contain <# bla bla #> thingy then crash will Xcode.

Am I the only with that problem? Using 4.2 now. The problem has been around since I am using 3.2.6
 

gnasher729

Suspended
Nov 25, 2005
17,980
5,565
Uninstalling, Reinstalling doesn't work.

It seems that the placeholder is the problematic

Xcode supposedly replace <#View controller#> with something. Something shiny. I know, it's a place holder. But if I go to another file and goes back to the original file, if the original file contain <# bla bla #> thingy then crash will Xcode.

Am I the only with that problem? Using 4.2 now. The problem has been around since I am using 3.2.6

No good complaining here. File a bug report with Apple.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.