Crash when saving my Core Data context
Crash when saving my Core Data context
- Subject: Crash when saving my Core Data context
- From: Joseph Jones <email@hidden>
- Date: Sun, 19 Jun 2005 17:49:38 -0700
Hi all,
I currently have a project that takes an XSD file, generates a core
data object graph and populates the graph from the associated XML.
Graph creation works fine. Graph population works fine. Saving the
graph, however, does not work so well. I seem to get a crash DEEP in
the system code (71397 stack frames deep). Here is a print out of the
first 10 frames (if it helps):
#0 0x9000fc18 in __vfprintf
#1 0x90730e74 in _CFStringAppendFormatAndArgumentsAux
#2 0x90730228 in _CFStringCreateWithFormatAndArgumentsAux
#3 0x90730170 in CFStringCreateWithFormat
#4 0x928d73fc in -[NSObject description]
#5 0x9400af34 in -[NSManagedObject description]
#6 0x928da1e0 in _NSGetUsingKeyValueGetter
#7 0x940163d0 in -[NSManagedObject _descriptionValues]
#8 0x9400af94 in -[NSManagedObject description]
#9 0x928da1e0 in _NSGetUsingKeyValueGetter
#10 0x940163d0 in -[NSManagedObject _descriptionValues]
Given the large stack frame count I would assume that there might be
a recursive looping issue here. Unfortunately, after I call save on
the ManagedObjectContext the other 71395 stack frames are all in
system code.
Note that if I populate the graph w/o using the XML data (i.e. create
dummy objects maintaining referential integrity) the save works just
fine. The amount of data in the XML file is not much more than what I
was creating by hand. I do have inverse relationships on all my
objects so that you can completely navigate the model. I am not sure
if that is a bad thing or not. If it is that seems to be a problem
with Core Data. :-(
Any help on how to resolve this is greatly appreciated.
Thanx,
joe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden