• 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: Years-old mysterious bindings crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Years-old mysterious bindings crash


  • Subject: Re: Years-old mysterious bindings crash
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 03 Oct 2011 20:56:50 -0700

On Oct 3, 2011, at 18:29 , Seth Willits wrote:

> I've been receiving reports of this rare but persistent crash over the past few years, and I've never been able to reproduce it or figure out what's causing it.

One thing you could do, if you have an actual crash dump to examine, is to work out which register contains the 1st parameter to [NSObject(NSKeyValueObservingPrivate) _notifyObserversForKeyPath:change:] and examine the string at that location. Knowing the keypath *may* give a clue as to what's going on.

You could also try setting a breakpoint on setContent in one of your two scenarios, and examine the object controller's observationInfo to see what observers the object controller has at this point. Presumably, the (an?) observer in a non-crashy situation is the object whose memory management you need to suspect.

The only subtle bug KVO bug that I can think of that *might* be coming into play here is this one:

	http://www.cocoabuilder.com/archive/cocoa/239182-crash-in-kvo-when-using-keypathsforvaluesaffecting-key.html

I don't know if it's ever been fixed, or whether Lion's new 'removeObserver:' variant provides a way of avoiding that bug.


_______________________________________________

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

  • Follow-Ups:
    • Re: Years-old mysterious bindings crash
      • From: Seth Willits <email@hidden>
References: 
 >Years-old mysterious bindings crash (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: how to set path on NSPathControl
  • Next by Date: Re: Finder Integration
  • Previous by thread: Years-old mysterious bindings crash
  • Next by thread: Re: Years-old mysterious bindings crash
  • Index(es):
    • Date
    • Thread