Re: -[NSManagedObjectContext save:] takes 30 minutes, then crashes out of memory
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