• 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: -[NSManagedObjectContext save:] takes 30 minutes, then crashes out of memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -[NSManagedObjectContext save:] takes 30 minutes, then crashes out of memory


  • Subject: Re: -[NSManagedObjectContext save:] takes 30 minutes, then crashes out of memory
  • From: Dado Colussi <email@hidden>
  • Date: Sat, 02 Jul 2011 12:45:54 -0500

On 1 July 2011 22:54, Jerry Krinock <email@hidden> wrote:

> App then executes -[NSManagedObjectContext save:].  This method thrashes
> for 30 minutes, with memory usage increasing slowly, until system won't give
> any more and then it crashes.



Run the app in Instruments, and see what it's doing. You may discover that
it's doing stuff you didn't intend it to do. Eliminate parts of your code
until the bug goes away, or, alternatively, begin with test app (with entity
classes that have no added features) that loads, maybe deletes the expired
entities, and saves the datastore. If the bug is still there when you have
virtually none of your own code left, and all your entities classes are
practically plain NSManagedObjects, then you may consider eliminating parts
of your datamodel (involves migration) until the bug goes away.
_______________________________________________

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: 
 >-[NSManagedObjectContext save:] takes 30 minutes, then crashes out of memory (From: Jerry Krinock <email@hidden>)

  • Prev by Date: [Solved] (iOS) strange animation bug
  • Next by Date: Re: From a view rect to a screen rect
  • Previous by thread: -[NSManagedObjectContext save:] takes 30 minutes, then crashes out of memory
  • Next by thread: How To Fully Test Cleanup Code Paths (iOS)?
  • Index(es):
    • Date
    • Thread