• 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: CoreData: Crash in NSManagedObjectContext#existingObjectWithID:error:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData: Crash in NSManagedObjectContext#existingObjectWithID:error:


  • Subject: Re: CoreData: Crash in NSManagedObjectContext#existingObjectWithID:error:
  • From: Felix Franz <email@hidden>
  • Date: Thu, 27 Jan 2011 13:09:51 +0100

On 26.01.2011, at 19:08, Kyle Sluder wrote:

> On Wed, Jan 26, 2011 at 10:07 AM, Kyle Sluder <email@hidden> wrote:
>> Start here:
>
> Actually, start with either NSZombieEnabled=YES or using the Zombies
> instrument. And then move on to Greg's article if zombies don't help
> you.
>
> --Kyle Sluder

Thank you for the pointer. NSZombieEnabled and the Zombies instruments didn't help.
According to the linked article, It tries to send retain to the number 0x28:

(gdb) x/s $ecx
0x919b0a6c:	 "retain"

(gdb) p/x $eax
$2 = 0x28

I created a new CoreData-command-line tool (using the Xcode template) which uses the same model
and opens the context on the file. Calling existingObjectWithID worked, without crashing ...
but compiling the same project with Garbage Collection: Unsupported triggers the crash.

The tool only references the model file and does not use the custom NSManagedObject subclasses for
the entities.

The code in the real project is used for copy/paste. Copy creates a dictionary containing the values
of the objects and uses objectIDs-for the relationships which should not be copied. It checks if an
object with objectID is available and if yes uses it for the relationship. The crash occurs using a copied
object copied from another document (and another managed object context). I guess I have to change the
code.


Cheers,

Felix







_______________________________________________

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: 
 >CoreData: Crash in NSManagedObjectContext#existingObjectWithID:error: (From: Felix Franz <email@hidden>)
 >Re: CoreData: Crash in NSManagedObjectContext#existingObjectWithID:error: (From: Kyle Sluder <email@hidden>)
 >Re: CoreData: Crash in NSManagedObjectContext#existingObjectWithID:error: (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Video Frame Processing on AVFoundation
  • Next by Date: iOS Setting frame size for MKAnnotationView
  • Previous by thread: Re: CoreData: Crash in NSManagedObjectContext#existingObjectWithID:error:
  • Next by thread: Undo with NSArrayController
  • Index(es):
    • Date
    • Thread