Strange crash in -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]
Strange crash in -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]
- Subject: Strange crash in -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]
- From: Martin Redington <email@hidden>
- Date: Wed, 24 May 2006 00:45:39 +0100
I'm seeing a lot of recursive calls to
-[NSWindow
_reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]
associated with a crash in my application (see Crash Log excerpt
below). These started a few revisions back, so I'm pretty sure its
something I'm doing, although I'm not sure what.
They seem to be associated with alerts, and my alert code looks
something like this:
=============
+ (void) showAlert:(NSError *) error withWindow:(NSWindow *)window
didEndSelector:(SEL)didEndSelector modalDelegate:(id) delegate
contextInfo:(void *)contextInfo
{
NSAlert *alert = [NSAlert alertWithError:error];
[alert beginSheetModalForWindow:window
modalDelegate:delegate
didEndSelector:didEndSelector
contextInfo:contextInfo];
}
=============
with a didEndSelector that is either nil, or an appropriate method.
Some of the didEndSelectors call
[[alert window] orderOut:self];
which I thought might be connected, but not that many of them, and not
the ones that I've had crashes reported under.
Any hints would be very much appreciated ...
cheers,
Martin
==========================================================
Crash Log:
Date/Time: 2006-03-29 09:34:29.943 +0200
OS Version: 10.4.5 (Build 8H14)
Report Version: 4
Command: MySync
Path: /Applications/MySync.app/Contents/MacOS/MySync
Parent: WindowServer [60]
Version: ??? (0.74b)
PID: 196
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0xbf7fffd0
Thread 0 Crashed:
0 libSystem.B.dylib 0x900017b8 pthread_mutex_lock
+ 32
1 com.apple.Foundation 0x928e6dc0 -[NSRecursiveLock
lock] + 36
2 com.apple.AppKit 0x9366b9f0 _NSAppKitLock + 56
3 com.apple.AppKit 0x936ab628 -[NSWindow
_wsmOwnsWindow] +
60
4 com.apple.AppKit 0x936aa8c4 -[NSWindow
_reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 112
5 com.apple.AppKit 0x936aaf1c -[NSWindow
_reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] +
1736
Many similar records deleted ...
507 com.apple.AppKit 0x936aaf1c -[NSWindow
_reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] +
1736
508 com.apple.AppKit 0x936aaf1c -[NSWindow
_reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] +
1736
_______________________________________________
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