Random crash in -[NSView displayIfNeeded]
Random crash in -[NSView displayIfNeeded]
- Subject: Random crash in -[NSView displayIfNeeded]
- From: Florent Pillet <email@hidden>
- Date: Mon, 18 Oct 2004 22:31:52 +0200
I have several threads performing intensive work and sending out
notifications. These notifications are catched by code which [self
performSelectorOnMainThread] to call a method which will update a
progress bar and a NSTextField. Also, I have a sheet other the current
window which has another progress bar and another NSTextField which are
updated the same way.
Sometimes, more or less randomly, the main thread crashes (as in the
report below). It seems that it has something to do with the number of
updates triggered each second, but I'm not sure. Any hint at why Cocoa
would be crashing there?
I have a hard time retrieving the last valid object, so any help would
be appreciated...
Here is the stack trace for the main thread (which is the one crashing):
#0 0x908311f4 in objc_msgSend
#1 0x9019f194 in CFArrayApplyFunction
#2 0x92dc4be4 in -[NSView _propagateDirtyRectsToOpaqueAncestors]
#3 0x9019f194 in CFArrayApplyFunction
#4 0x92dc4be4 in -[NSView _propagateDirtyRectsToOpaqueAncestors]
#5 0x9019f194 in CFArrayApplyFunction
#6 0x92dc4be4 in -[NSView _propagateDirtyRectsToOpaqueAncestors]
#7 0x9019f194 in CFArrayApplyFunction
#8 0x92dc4be4 in -[NSView _propagateDirtyRectsToOpaqueAncestors]
#9 0x92ded578 in -[NSView displayIfNeeded]
#10 0x92dfe2a8 in -[NSWindow displayIfNeeded]
#11 0x92dde9b0 in -[NSImage
compositeToPoint:fromRect:operation:fraction:]
#12 0x90191ca8 in __CFRunLoopDoObservers
#13 0x90191544 in __CFRunLoopRun
#14 0x90195e94 in CFRunLoopRunSpecific
#15 0x927d5f88 in RunCurrentEventLoopInMode
#16 0x927dc6f0 in ReceiveNextEventCommon
#17 0x927fe6c8 in BlockUntilNextEventMatchingListInMode
#18 0x92dd227c in _DPSNextEvent
#19 0x92de8c24 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
#20 0x92dfcf8c in -[NSApplication run]
#21 0x02021e4c in -[OAApplication run] at OAApplication.m:84
#22 0x92eb948c in NSApplicationMain
#23 0x0075ad44 in main at main.m:25
--
Florent Pillet, Code Segment email@hidden
Developer tools and end-user products for Palm OS & Mac OS X
ICQ: 117292463
http://www.florentpillet.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden