Strange crash...
Strange crash...
- Subject: Strange crash...
- From: Laurent Daudelin <email@hidden>
- Date: Sun, 09 Nov 2003 19:44:47 -0500
Hi!
I got a user who reported to me that he is unable to launch my application.
He updated from Jaguar to Panther. He did repair permissions on his system
partition. I can't explained where the application is crashing. I have a
method that displays a window in a modal loop called 'displayDisclaimer'
which is as follow:
- (void)displayDisclaimer
{
modalSession = [NSApp beginModalSessionForWindow:licensePanel];
modalSessionResponse = NSRunContinuesResponse;
while (modalSessionResponse == NSRunContinuesResponse)
{
modalSessionResponse = [NSApp runModalSession:modalSession];
}
[NSApp endModalSession:modalSession];
[licensePanel close];
if (modalSessionResponse == NSRunAbortedResponse)
{
[NSApp terminate:self];
}
}
There is one NSTextView that displays a license agreement and 2 buttons that
let the user decide if he agrees or not. The user said that he never saw the
dialog displayed on screen. Further, I sent him a preference file that had
the flag to display the disclaimer off. He should have got another dialog in
a similar modal loop, but he reported the application still crashing. I'm
really puzzled and could use some help to determine the problem. No other
users among probably a few thousands have reported this. Here is part of the
crash log:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
Thread 0 Crashed:
#0 0x901a4f60 in CFCharacterSetIsLongCharacterMember
(CFCharacterSetIsLongCharacterMember + 64)
#1 0x92dd5c70 in
-[NSMutableAttributedString(NSMutableAttributedStringKitAdditions)
fixFontAttributeInRange:]
(-[NSMutableAttributedString(NSMutableAttributedStringKitAdditions)
fixFontAttributeInRange:] + 2912)
#2 0x92e19e30 in
-[NSMutableAttributedString(NSMutableAttributedStringKitAdditions)
fixAttributesInRange:]
(-[NSMutableAttributedString(NSMutableAttributedStringKitAdditions)
fixAttributesInRange:] + 68)
#3 0x92e03610 in -[NSTextStorage ensureAttributesAreFixedInRange:]
(-[NSTextStorage ensureAttributesAreFixedInRange:] + 472)
#4 0x92e352b8 in -[NSConcreteTextStorage
attributesAtIndex:longestEffectiveRange:inRange:] (-[NSConcreteTextStorage
attributesAtIndex:longestEffectiveRange:inRange:] + 92)
#5 0x92deecec in -[NSConcreteGlyphGenerator
generateGlyphsForGlyphStorage:desiredNumberOfCharacters:glyphIndex:character
Index:] (-[NSConcreteGlyphGenerator
generateGlyphsForGlyphStorage:desiredNumberOfCharacters:glyphIndex:character
Index:] + 1128)
#6 0x92e4dbe0 in -[NSGlyphGenerator
generateGlyphsForLayoutManager:range:desiredNumberOfCharacters:startingAtGly
phIndex:completedRange:nextGlyphIndex:] (-[NSGlyphGenerator
generateGlyphsForLayoutManager:range:desiredNumberOfCharacters:startingAtGly
phIndex:completedRange:nextGlyphIndex:] + 68)
#7 0x92df2794 in -[NSLayoutManager(NSPrivate)
_fillGlyphHoleAtIndex:desiredNumberOfCharacters:]
(-[NSLayoutManager(NSPrivate)
_fillGlyphHoleAtIndex:desiredNumberOfCharacters:] + 800)
#8 0x92dd1da8 in _NSFastFillAllGlyphHolesUpToGlyphIndex
(_NSFastFillAllGlyphHolesUpToGlyphIndex + 284)
#9 0x92ddcaf8 in _NSFastFillAllLayoutHolesUpToGlyphIndex
(_NSFastFillAllLayoutHolesUpToGlyphIndex + 376)
#10 0x92e15e24 in -[NSLayoutManager(NSPrivate)
_firstPassGlyphRangeForBoundingRect:inTextContainer:okToFillHoles:]
(-[NSLayoutManager(NSPrivate)
_firstPassGlyphRangeForBoundingRect:inTextContainer:okToFillHoles:] + 160)
#11 0x92e40d98 in -[NSLayoutManager(NSPrivate)
_glyphRangeForBoundingRect:inTextContainer:fast:okToFillHoles:]
(-[NSLayoutManager(NSPrivate)
_glyphRangeForBoundingRect:inTextContainer:fast:okToFillHoles:] + 396)
#12 0x92e6c46c in -[NSLayoutManager
glyphRangeForBoundingRect:inTextContainer:] (-[NSLayoutManager
glyphRangeForBoundingRect:inTextContainer:] + 76)
#13 0x92e1a7d0 in -[NSTextView drawRect:] (-[NSTextView drawRect:] + 348)
#14 0x92e1366c in -[NSTextView _drawRect:clip:] (-[NSTextView
_drawRect:clip:] + 976)
#15 0x92dd82ac in -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] (-[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 232)
#16 0x92e0de98 in _recursiveDisplayInRect2 (_recursiveDisplayInRect2 + 84)
#17 0x9019f3bc in CFArrayApplyFunction (CFArrayApplyFunction + 408)
#18 0x92dd83b0 in -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] (-[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 492)
#19 0x92e0de98 in _recursiveDisplayInRect2 (_recursiveDisplayInRect2 + 84)
#20 0x9019f3bc in CFArrayApplyFunction (CFArrayApplyFunction + 408)
#21 0x92dd83b0 in -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] (-[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 492)
#22 0x92e0de98 in _recursiveDisplayInRect2 (_recursiveDisplayInRect2 + 84)
#23 0x9019f3bc in CFArrayApplyFunction (CFArrayApplyFunction + 408)
#24 0x92dd83b0 in -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] (-[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 492)
#25 0x92e0de98 in _recursiveDisplayInRect2 (_recursiveDisplayInRect2 + 84)
#26 0x9019f3bc in CFArrayApplyFunction (CFArrayApplyFunction + 408)
#27 0x92dd83b0 in -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] (-[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 492)
#28 0x92e10914 in -[NSFrameView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRect
ForView:topView:] (-[NSFrameView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRect
ForView:topView:] + 144)
#29 0x92df7b9c in -[NSThemeFrame
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRect
ForView:topView:] (-[NSThemeFrame
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRect
ForView:topView:] + 192)
#30 0x92dd4e80 in -[NSView
_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
(-[NSView
_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 384)
#31 0x92dedd84 in -[NSView displayIfNeeded] (-[NSView displayIfNeeded] +
168)
#32 0x92dfea4c in -[NSWindow displayIfNeeded] (-[NSWindow displayIfNeeded]
+ 180)
#33 0x92e22b18 in -[NSWindow
_reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]
(-[NSWindow
_reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 936)
#34 0x92f451f8 in -[NSApplication
_orderFrontModalWindow:relativeToWindow:] (-[NSApplication
_orderFrontModalWindow:relativeToWindow:] + 512)
#35 0x92ef9848 in -[NSApplication
_commonBeginModalSessionForWindow:relativeToWindow:modalDelegate:didEndSelec
tor:contextInfo:] (-[NSApplication
_commonBeginModalSessionForWindow:relativeToWindow:modalDelegate:didEndSelec
tor:contextInfo:] + 544)
#36 0x00018f70 in -[LicenseController displayDisclaimer]
(-[LicenseController displayDisclaimer] + 56)
Anybody has any idea?
Thanks in advance!
-Laurent.
--
============================================================================
Laurent Daudelin AIM/iChat: LaurentDaudelin <
http://nemesys.dyndns.org>
Logiciels Nemesys Software
mailto:email@hidden
bytesexual /bi:t`sek'shu-*l/ adj.: [rare] Said of hardware, denotes
willingness to compute or pass data in either big-endian or little-endian
format (depending, presumably, on a mode bit somewhere). See also NUXI
problem.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.