Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: CoreData SQL relaunch issue



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.