Re: Assertion in AppKit
Re: Assertion in AppKit
- Subject: Re: Assertion in AppKit
- From: John Stiles <email@hidden>
- Date: Fri, 8 Oct 2004 16:15:56 -0700
Hmm. When I google on the assertion failure message, I find that the
exception being raised may be:
"lockFocus sent to a view whose window is deferred and does not yet
have a corresponding platform window"
Which doesn't ring any bells for me; I'm not doing anything fancy.
On Oct 8, 2004, at 4:06 PM, John Stiles wrote:
Our testing department found an unreproducible crash in an app of
ours. It's only happened once, ever, but we'd like to figure out
what's going on.
The console printed this:
2004-10-08 09:51:30.840 Installer[397] *** Assertion failure in
-[NSView lockFocus], AppKit.subproj/NSView.m:2746
And we got a crash log, with basically all AppKit symbols in it:
Thread 0 Crashed:
0 libobjc.A.dylib 0x908311ec objc_msgSend + 0xc
1 com.apple.Foundation 0x90aa95a8
__NSLockHandlerFunc + 0x5c
2 com.apple.Foundation 0x90a5c800 _NSRaiseError +
0x1b8
3 com.apple.Foundation 0x90aa91c0
-[NSAssertionHandler
handleFailureInMethod:object:file:lineNumber:description:] + 0x70
4 com.apple.AppKit 0x92de9274 -[NSView lockFocus]
+ 0xa0
5 com.apple.AppKit 0x92dd7a70 -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 0xb0
6 com.apple.AppKit 0x92dc337c -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
rectIsVisibleRectForView:topView:] + 0x9c
7 com.apple.AppKit 0x92dc3798 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
rectIsVisibleRectForView:topView:] + 0x4b8
8 com.apple.AppKit 0x92dc3798 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
rectIsVisibleRectForView:topView:] + 0x4b8
9 com.apple.AppKit 0x92dc3798 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
rectIsVisibleRectForView:topView:] + 0x4b8
10 com.apple.AppKit 0x92dc3798 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
rectIsVisibleRectForView:topView:] + 0x4b8
11 com.apple.AppKit 0x92dc3798 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
rectIsVisibleRectForView:topView:] + 0x4b8
12 com.apple.AppKit 0x92dc3798 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
rectIsVisibleRectForView:topView:] + 0x4b8
13 com.apple.AppKit 0x92e1024c -[NSFrameView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
rectIsVisibleRectForView:topView:] + 0x124
14 com.apple.AppKit 0x92df73e8 -[NSThemeFrame
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
rectIsVisibleRectForView:topView:] + 0xc0
15 com.apple.AppKit 0x92dd467c -[NSView
_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] +
0x180
16 com.apple.AppKit 0x92ded5d0 -[NSView
displayIfNeeded] + 0xa8
17 com.apple.AppKit 0x92dfe2a8 -[NSWindow
displayIfNeeded] + 0xb4
18 com.apple.AppKit 0x92dde9b0
_handleWindowNeedsDisplay + 0xe0
19 com.apple.CoreFoundation 0x90191ca8
__CFRunLoopDoObservers + 0x194
20 com.apple.CoreFoundation 0x90191544 __CFRunLoopRun +
0x18c
21 com.apple.CoreFoundation 0x90195e94
CFRunLoopRunSpecific + 0x148
22 com.apple.HIToolbox 0x927d5f88
RunCurrentEventLoopInMode + 0xac
23 com.apple.HIToolbox 0x927dc668
ReceiveNextEventCommon + 0xf4
24 com.apple.HIToolbox 0x927fe6c8
BlockUntilNextEventMatchingListInMode + 0x60
25 com.apple.AppKit 0x92dd227c _DPSNextEvent +
0x180
26 com.apple.AppKit 0x92de8c24 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 0x74
27 com.apple.AppKit 0x92dfcf8c -[NSApplication
run] + 0x21c
28 com.apple.AppKit 0x92eb948c NSApplicationMain
+ 0x1d0
29 com.blizzard.installer 0x00004384 main + 0x40
30 com.blizzard.installer 0x00004290 _start + 0x1cc
31 com.blizzard.installer 0x000040c0 start + 0x30
I believe our app was just about to drop down a sheet with a few
NSTextFields and NSButtons in it. Nothing too fancy; it's been working
for a year w/o problems :)
Is this the work of cosmic radiation? I'd really like to know what
AppKit is asserting on. Anyone from Apple, could you enlighten me? :)
_______________________________________________
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
_______________________________________________
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