• 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: How to debug invalidated core data object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to debug invalidated core data object


  • Subject: Re: How to debug invalidated core data object
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 13 Jun 2010 15:43:31 -0700

On 2010 Jun 13, at 08:49, Gideon King wrote:

> I get an exception ... The NSManagedObject with ID:(whatever) has been invalidated.

Those things always ruin my day.  I don't think I've ever fixed one by debugging from the bottom up as you would like to do. The solution has always come from thinking back and review everything I'd changed recently.

> I'd really appreciate any suggestions about how to pinpoint the source of this problem.

I wonder if by "invalidated" they mean "deallocated"?  If not, you could click on this call:

> #5  0x00007fff83bf74be in -[NSManagedObject valueForKey:] ()

get the value of self, and then send some messages to it in the debugger console.  For example, if self is 0xabcdabcdabcdabcd,

po 0xabcdabcdabcdabcd
po [0xabcdabcdabcdabcd entity]

_______________________________________________

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: How to debug invalidated core data object
      • From: Gideon King <email@hidden>
References: 
 >How to debug invalidated core data object (From: Gideon King <email@hidden>)

  • Prev by Date: SOLVED: Process executes an AppleScript, then disappears.
  • Next by Date: Re: How to debug invalidated core data object
  • Previous by thread: How to debug invalidated core data object
  • Next by thread: Re: How to debug invalidated core data object
  • Index(es):
    • Date
    • Thread