• 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
Re: crash on OS X when popover closes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crash on OS X when popover closes


  • Subject: Re: crash on OS X when popover closes
  • From: Alex Zavatone <email@hidden>
  • Date: Sun, 01 Apr 2012 20:54:53 -0400

On Apr 1, 2012, at 4:54 PM, Ken Thomases wrote:

> On Apr 1, 2012, at 11:38 AM, Martin Hewitson wrote:
>
>> I've received a crash report from a customer which I'm unable to reproduce and have not heard of from any other user. The action needed for the customer to reproduce the crash is such a common one, that it seems that all other customers should hit the same issue. That makes me wonder if it's a problem of the customer's machine. The crash log is below.
>>
>> Does anyone have any suggestions as to how I might find the problem?
>
>> *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSRecursiveLock popoverDidClose:]: unrecognized selector sent to instance 0x1020e2a80'

It looks like the popup may have already been deallocated. That's where my money is.


> This suggests a memory management bug.  Something is invoking -popoverDidClose: on an NSRecursiveLock, which surely isn't what was supposed to receive that message.  Usually this happens because the object that was supposed to receive it has been deallocated and another object (an NSRecursiveLock, in this case) has reused that memory.
>
> The particular memory management bug may be an over-release (or failure to retain), but it could also be a failure to unregister an object from observing a notification prior to its deallocation.  In this case, it seems as though you failed to unset the delegate of the NSPopover prior to the delegate's deallocation.  (The NSPopover registers the delegate as an observer of NSPopoverDidCloseNotification and would unregister it when you unset the delegate.)
>
> Regards,
> Ken
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: crash on OS X when popover closes (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Order of Finder labels
  • Next by Date: Re: Drawing when app is in active
  • Previous by thread: Re: crash on OS X when popover closes
  • Next by thread: Re: Order of Finder labels
  • Index(es):
    • Date
    • Thread