• 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: Core Data Debugging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Core Data Debugging


  • Subject: re: Core Data Debugging
  • From: Ben Trumbull <email@hidden>
  • Date: Fri, 25 Jul 2008 12:21:20 -0700

I use Core Data to store the information and it all runs pretty smoothly, that is until the app has been running for 15-20mins and I start getting Core Data save errors such as "CoreData does not support
persistent cross-store relationships"

This happens when you save objects to a store that have relationships directly to objects that are not also saved in that store.


The error should have a user info dictionary which contains some more useful information like the source object and the flawed destination objectID.

You could also try switching to the SQLite store, and see what error it produces.

If it works fine for 15 minutes before failing, it could be a memory management related problem. You can start with setting some env variables:

export NSZombieEnabled=YES;export CFZombieLevel=9; export MallocScribble=1;export MallocPreScribble=1;export MallocGuardEdges=1

and if that doesn't help, move on to libgmalloc:

export DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib;export MALLOC_FILL_SPACE=1;
--


-Ben
_______________________________________________

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


  • Prev by Date: Re: NSenu and memory ownership
  • Next by Date: Re: Problem drawing multiple parallel lines
  • Previous by thread: Core Data Debugging
  • Next by thread: Retrieving the current -[NSShadow set]
  • Index(es):
    • Date
    • Thread