Open ouchadam opened 5 years ago
Yea I've seen this issue before 😢 I'm not sure why it is cropping up again though 😭
The error still occurs with the latest room upgrade, potentially we could catch the error and reopen the database connection in a non wal mode, although the docs suggest it could be due to the filesystem being out of space https://sqlite.org/rescode.html#ioerr_shmsize
although this commit would suggest a new status code will be returned SQLITE_FULL
https://android.googlesource.com/platform/external/sqlite/+/1eb051da2d460037a748d574b128cdd33b6d8b28%5E!/
Can confirm this is happening when the device is low on storage
We're seeing crashes when the room database is initialised, from google'ing around, this error code is related to
WAL
.I'm hoping upgrading to the latest version of room will address this as I can't find any recent references to the issue (which #519 addresses)
Have you seen this issue before?
https://sqlite.org/rescode.html#ioerr_shmsize
The SQLITE_IOERR_SHMSIZE error code is an extended error code for SQLITE_IOERR indicating an I/O error within the xShmMap method on the sqlite3_io_methods object while trying to enlarge a "shm" file as part of WAL mode transaction processing. This error may indicate that the underlying filesystem volume is out of space.