Help with a crash on Panther
Help with a crash on Panther
- Subject: Help with a crash on Panther
- From: Sandy Martel <email@hidden>
- Date: Thu, 30 Oct 2003 09:39:23 -0500
I have an application that works on 10.1 and 10.2 but crash randomly on
Panther. When I run it with NSZombieEnabled I get this message just
before crashing:
2003-10-29 15:00:41.451 Toon Boom Studio[13859] *** *** Selector
'count' sent to dealloced instance 0xf7acce0 of class
NSAttributeDictionary.
Break at '-[_NSZombie methodSignatureForSelector:]' to debug.
2003-10-29 15:00:41.453 Toon Boom Studio[13859] <NSATSTypesetter:
0xa9d0850>: Exception *** Selector 'count' sent to dealloced instance
0xf7acce0 of class NSAttributeDictionary.
Break at '-[_NSZombie methodSignatureForSelector:]' to debug. raised
during typesetting layout manager <NSLayoutManager: 0xeb81450>
1 containers, text backing has 0 characters
selected character range {177264512, 0} affinty: upstream
granularity: character
marked character range {1127219200, 2147483648}
Currently holding 0 glyphs with 0 glyph holes and 0 layout holes.
Glyph holes: ()
Layout holes: ()
, glyph range {782 7}. Ignoring...
So something is trying to use an instance that was deallocated, but the
object is an instance of NSAttributeDictionary, a class private to the
framework, I don't allocate or release those objects. The crash never
occurs at the same place, but it always seems to occurs when the
framework is dealing with attributed atring. I put the top of 2 stack
trace at the end of the message.
I spent the whole day searching for that one but couldn't find
anything more than that. All the NSDictionary used as attributes seem
OK. If anyone have an idea (about the crash or about what I could try
next) please help me!
Thank you.
Sandy.
#0 0x9083122c in objc_msgSend (objc_msgSend + 12)
#1 0x90a395e0 in -[NSDictionary isEqualToDictionary:]
(-[NSDictionary isEqualToDictionary:] + 68)
#2 0x92de654c in attributeDictionaryIsEqual
(attributeDictionaryIsEqual + 164)
#3 0x90196848 in __CFSetFindBuckets1 (__CFSetFindBuckets1 + 216)
#4 0x9019dc38 in CFSetGetValue (CFSetGetValue + 200)
#5 0x92df55e4 in +[NSAttributeDictionary newWithDictionary:]
(+[NSAttributeDictionary newWithDictionary:] + 196)
#6 0x90a00f48 in -[NSConcreteAttributedString
initWithString:attributes:] (-[NSConcreteAttributedString
initWithString:attributes:] + 124)
#7 0x92e570e4 in -[NSString(NSStringDrawing)
drawInRect:withAttributes:] (-[NSString(NSStringDrawing)
drawInRect:withAttributes:] + 264)
---
#0 0x90012688 in clock_sleep_trap ()
#1 0x9000d858 in nanosleep ()
#2 0x92df55c0 in +[NSAttributeDictionary newWithDictionary:] ()
#3 0x90a00f48 in -[NSConcreteAttributedString
initWithString:attributes:] ()
#4 0x92e14bcc in syncTextWithTextView ()
#5 0x92e6be30 in editTextCellWithTextView ()
#6 0x92ec9c9c in _NSEditTextCell ()
#7 0x92f0d5b8 in -[NSTextFieldCell
_selectOrEdit:inView:target:editor:event:start:end:] ()
#8 0x92f0d4d0 in -[NSCell
selectWithFrame:inView:editor:delegate:start:length:] ()
#9 0x92eeb560 in -[NSTextField selectText:] ()
#10 0x92ee0e60 in -[NSTextField becomeFirstResponder] ()
#11 0x92e71a28 in -[NSWindow makeFirstResponder:] ()
#12 0x92ea35a0 in -[NSWindow _selectFirstKeyView] ()
#13 0x93022224 in -[NSColorPanel _selectFirstKeyView] ()
#14 0x92e22aec in -[NSWindow
_reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] ()
#15 0x93021d70 in -[NSColorPanel
_reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] ()
_______________________________________________
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.