-
Notifications
You must be signed in to change notification settings - Fork 671
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
[Windows] EXCEPTION_IN_PAGE_ERROR Crash in sqlite3 WAL since 2.5.0 #6881
Comments
As far as i can remember, we've always had these crashes. My suspicion is that this is one of these crashes which happens on corrupted database. |
Hmm not sure I can agree..
That one has a different (much shorter) backtrace and only occured between 2.0.1 and 2.2.4!
But that one is also first seen in 2.5.0 (according to sentry) |
We don't have enough information to know what the cause of these crashes is. What are our options here? We could switch away from WAL and hope that that does something? @ogoffart @guruz Do you know why exactly we use WAL mode? (as far as I remember we already switch to DELETE mode on some incompatible filesystems) |
How about we switch to EXCLUSIVE locking mode as suggested in https://bugzilla.mozilla.org/show_bug.cgi?id=993556 ? |
I've done a short test with EXCLUSIVE lock mode on windows and it seems to work fine. The -wal and -shm files are no longer created when it's enabled. Basic sync worked fine. |
So the write ahead log is in normal heap memory then? And this is properly guarded against multi-threaded access that we might be doing? See also my comments on your PR #6960 |
Hmm the bugzilla commenter that you linked says
|
Can be overridden with OWNCLOUD_SQLITE_LOCKING_MODE
Can be overridden with OWNCLOUD_SQLITE_LOCKING_MODE
How can we test this properly? tested 252rc2 on linux mint taraMy sync folder still contains ._sync_ffe9784ffc22.db-shm and ._sync_ffe9784ffc22.db-wal files.
|
@jnweiger The patch is in the rc and it worked in my tests. Maybe these files linger if they were present before. Can you try whether they're recreated on client start if you delete them while the client isn't running? |
wal and shm files get created even in a fresh sync folder. Seen on macos and linux. |
@jnweiger Thanks for retesting, I'll take a second look. Possibly it's that index deletion that happens before the pragmas are set for some reason. |
Oddly enough I couldn't reproduce the issue on linux. Could you test whether my #6999 improves behavior for you? |
Ready to test now |
See https://sentry.io/owncloud/desktop-win-and-mac/issues/705087323/events/
The backtrace shown in sentry is a bit confusing but from raw one you can see:
Annoying that the backtrace is cut at 18, need to fix this
The text was updated successfully, but these errors were encountered: