Re: Editor is really buggy
Re: Editor is really buggy
- Subject: Re: Editor is really buggy
- From: Jeremy Dronfield <email@hidden>
- Date: Sat, 29 May 2004 19:23:40 +0100
On 29 May 2004, at 5:26 pm, David Ewing wrote:
On May 28, 2004, at 3:41 PM, Fred Leboucher wrote:
Personally I have big problems with /* and */ comments...
Sometimes I open a comment and when I close it, XCode crashes ! It
can happen 5 or 6 times in a row, and then never happen again for a
month...
If memory serves, this may be related to using multiple fonts in the
editor. It's a known issue, but not something that we've heard
reported often. I tend use Courier just so I can still have Bold and
Italic variants.
I've seen this bug quite often, and I don't think it's caused by
multiple fonts (I use the default Monaco). I tend to get it when
working really fast, zipping through large amounts of code commenting
things out. I insert a /* then click to set the insertion point for the
*/. It seems to be on the click that the exception occurs, and happens
if I click before the /* has changed into "comment colour".
I've just managed to reproduce the bug, and here's the log output:
** INTERNAL ERROR: Uncaught Exception **
Exception: -[NSLayoutManager
_fillGlyphHoleAtIndex:desiredNumberOfCharacters:] *** attempted glyph
generation while textStorage is editing. It is not valid to cause the
layoutManager to do glyph generation while the textStorage is editing
(ie the textStorage has been sent a beginEditing message without a
matching endEditing.)
Stack:
0 0x94ec64b8 -[TSException raise]
1 0x90a5c620 +[NSException raise:format:]
2 0x92df2598 -[NSLayoutManager(NSPrivate)
_fillGlyphHoleAtIndex:desiredNumberOfCharacters:]
3 0x92dcb0b4 -[NSLayoutManager(NSPrivate)
_glyphIndexForCharacterIndex:startOfRange:okToFillHoles:]
4 0x92dd865c -[NSLayoutManager(NSPrivate)
_glyphRangeForCharacterRange:actualCharacterRange:okToFillHoles:]
5 0x92deb53c -[NSLayoutManager
glyphRangeForCharacterRange:actualCharacterRange:]
6 0x92e0058c -[NSLayoutManager invalidateDisplayForCharacterRange:]
7 0x92f364b8 -[NSLayoutManager
addTemporaryAttributes:forCharacterRange:]
8 0x97771c38 -[PBXTextStorage
addTemporaryAttributes:forCharacterRange:]
9 0x97772af8 -[PBXTextStorage fixSyntaxColoringInRange:]
10 0x977727ec -[PBXTextStorage fixAttributesInRange:]
11 0x92e035f4 -[NSTextStorage ensureAttributesAreFixedInRange:]
12 0x97771f58 -[PBXTextStorage attributesAtIndex:effectiveRange:]
13 0x92e23ddc -[NSTextView insertText:]
14 0x9789202c -[PBXTextView(PBXIndentation) insertText:]
15 0x92e84230
-[NSKeyBindingManager(NSKeyBindingManager_MultiClients)
flushTextForClient:]
16 0x92e3e3bc -[NSTSMInputContext interpretKeyEvents:]
17 0x92ea1248 -[NSView interpretKeyEvents:]
18 0x92e3a5b4 -[NSTextView keyDown:]
19 0x977da12c -[PBXTextView keyDown:]
20 0x92e032f8 -[NSWindow sendEvent:]
21 0x92df5320 -[NSApplication sendEvent:]
22 0x977337c0 -[PBXExtendedApplication sendEvent:]
23 0x92dfd738 -[NSApplication run]
24 0x92eb9b7c _NSApplicationMain
25 0x0000a080
26 0x8fe1a554
2004-05-29 19:18:49.230 Xcode[831] Exception raised during background
layout: -[NSLayoutManager
_fillLayoutHoleAtIndex:desiredNumberOfLines:] *** attempted layout
while textStorage is editing. It is not valid to cause the
layoutManager to do layout while the textStorage is editing (ie the
textStorage has been sent a beginEditing message without a matching
endEditing.)
Hope this clarifies the issue.
Regards,
-Jeremy
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.