• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Strange crash in -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NIB problem after upgrading to 2.3
  • Next by Date: Re: What encoding to use to turn NSData from a subprocess into an NSString?
  • Previous by thread: Set filePackage
  • Next by thread: NSFormatter for hexadecimal numbers
  • Index(es):
    • Date
    • Thread