-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FailableIterator next() crash #1028
Comments
This occurs when more than one thread is trying to access the DB. This library is not thread-friendly. My suggestion is that you create one global connection (in the AppDelegate for example) and use that connection all over your app. |
issue also occurs if the db is open in 2 processes |
Merged a fix to replace |
I saw you reverted that change ? |
Yes, because as explained in #1075, you should use |
extension FailableIterator {
public func next() -> Element? {
return try! failableNext()
}
}
Thread 1: Fatal error: 'try!' expression unexpectedly raised an error: disk I/O error (code: 10)
The text was updated successfully, but these errors were encountered: