• 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: CoreData SQL relaunch issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: CoreData SQL relaunch issue


  • Subject: re: CoreData SQL relaunch issue
  • From: Ben Trumbull <email@hidden>
  • Date: Sat, 3 Nov 2007 16:54:35 -0700

When quitting and relaunching my app I get a never-ending string of
the following errors:

NSError "An error occurred while saving." Domain=NSCocoaErrorDomain
Code=134030 UserInfo={
    NSUnderlyingException = error during execution of SQL string
'ROLLBACK' : library routine called out of sequence;
}


I assume it's because the SQL database hasn't had adequate time to close before the relaunch. The problem goes away if the user waits a bit before relaunching.

No. SQLite is an embedded database, built around a file descriptor that the kernel will always clean up when the process terminates (under any circumstance, including seg fault)


What happens if you add to your ~/.gdbinit file

future-break objc_exception_throw

and catch this in gdb, and run the following commands
bt
info threads
thread apply all bt

? Also, is this on Tiger or Leopard ? Do you have multiple processes accessing the file ?

- 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: Why initialize the menubar without Interface Builder
  • Next by Date: Re: Core Data app saving zero length files
  • Previous by thread: CoreData SQL relaunch issue
  • Next by thread: Tooltips in an NSBrowser
  • Index(es):
    • Date
    • Thread