• 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
CoreData: "Could not fulfill a fault", but only sometimes…
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreData: "Could not fulfill a fault", but only sometimes…


  • Subject: CoreData: "Could not fulfill a fault", but only sometimes…
  • From: Felix Franz <email@hidden>
  • Date: Thu, 21 Apr 2011 10:52:31 +0200

Hi all,

I have a strange bug in my CoreData-Application (sql store). I received bug reports where the program throws
an exception "Could not fulfill a fault". This happens while loading the document. The only way
I can reproduce this problem is using the "Time Profiler" in Instruments while loading a big document.

It throws the aforementioned exception while accessing a relationship or property (the objects differ for each load).
Without Instruments I was unable to reproduce the error. Strangely if I open the same document and retrieve the object mentioned
in the exception: the object is there all properties/relationships are ok, no problem at all.

Using the -com.apple.CoreData.SQLDebug 1 switch the last entry of the log looks suspicious:

CoreData: error: (11) Fatal error.  The database at /Users/felix/Desktop/foo.atype is corrupted.  SQLite error code:11, 'database disk image is malformed'

If I run the integrity check on this file:

$ sqlite3 /Users/felix/Desktop/foo.atype "pragma integrity_check"
ok

all seems to be ok.

Is it possible to check the file in other ways? I don't understand why the file shows no problems whatsoever
if I load it normally (not using Instruments). Maybe a Memory management bug (I don't use GC)?

If someone has a pointer or experienced a similar error: speak up :)

Thanks in advance,

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

  • Follow-Ups:
    • Re: CoreData: "Could not fulfill a fault", but only sometimes …
      • From: Sean McBride <email@hidden>
  • Prev by Date: cell editing in tableview
  • Next by Date: Re: getting metadata from iPhone photos
  • Previous by thread: cell editing in tableview
  • Next by thread: Re: CoreData: "Could not fulfill a fault", but only sometimes …
  • Index(es):
    • Date
    • Thread