• 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: Help with crash in removeObserver:forKeyPath:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with crash in removeObserver:forKeyPath:


  • Subject: Re: Help with crash in removeObserver:forKeyPath:
  • From: John Timmer <email@hidden>
  • Date: Wed, 14 Sep 2005 20:53:59 -0400

Ah, the infamous _NSKeyValueObservationInfoCreateByRemoving  crash bug.
That's shown up with a number of triggers, and is definitely not
reproducible, nor is your code at fault.  I filed a bug on it, and Jim
Correia (who often posts on this list) has sent in a reproducible case.

If you can figure out the interface item or binding that's triggering it,
you may be able to work around it.  In my case, I was able to have an object
traverse a relationship for me, instead of binding through the relationship,
and that stopped the crashing.

JT


> I'm having a hard time tracking down a crash related
> [removeObserver:forKeyPath:]. Unfortunately the bug is not
> reproducable, I've only seen various crash logs looking like this one:
>
> 0   com.apple.CoreFoundation      0x9072dd84 CFRetain + 60
> 1   com.apple.Foundation          0x929094b0
> _NSKeyValueObservationInfoCreateByRemoving + 440
> 2   com.apple.Foundation          0x92909288 -[NSObject
> (NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 56
> 3   com.apple.Foundation          0x92909178 -[NSObject
> (NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 436
> 4   com.mydomain.myapp             0x00077d2c -[GSTreeController
> removeItems:] + 368 (crt.c:300)
> 5   com.mydomain.myapp             0x00077b8c -[GSTreeController
> deleteItems:] + 32 (crt.c:300)
> 6   com.mydomain.myapp             0x00087808 -[GSAppController
> (ImageView) imageView:shouldDeleteObjects:] + 68 (crt.c:300)
> 7   com.mydomain.myapp       0x000868b8 -[GSImageView delete:] + 136
> (crt.c:300)
> 8   com.mydomain.myapp        0x0008697c -[GSImageView keyDown:] +
> 108 (crt.c:300)
> 9   com.apple.AppKit           0x936600d8 -[NSWindow sendEvent:] + 6424
> 10  com.apple.AppKit              0x93608bfc -[NSApplication
> sendEvent:] + 4172
> 11  com.apple.AppKit              0x93600090 -[NSApplication run] + 508
> 12  com.apple.AppKit              0x936f08bc NSApplicationMain + 452
> 13  com.mydomain.myapp        0x00002abc _start + 392 (crt.c:267)
> 14  com.mydomain.myapp        0x00002930 start + 48
>
> Since I've been hunting down this bug for quite some time now without
> success, maybe someone on this list can have a look at the code and
> point me to what I'm doing wrong.
>

_______________________________________________
This mind intentionally left blank


 _______________________________________________
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

References: 
 >Help with crash in removeObserver:forKeyPath: (From: "Ilja A. Iwas" <email@hidden>)

  • Prev by Date: Re: Disabling Display of JPG and PDF Files in NSTextView
  • Next by Date: Re: Programatically Change the Application Title Menu Item
  • Previous by thread: Help with crash in removeObserver:forKeyPath:
  • Next by thread: Using NSDictionary in datasource
  • Index(es):
    • Date
    • Thread