I'm using cwac-saferoom version 1.0.4 And some of the devices are getting this issue right after updating the app to a new version.
Fatal Exception: java.lang.RuntimeException: Exception while computing database live data. at androidx.room.RoomTrackingLiveData$1.run(SourceFile:6) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:764)
Another part of logs from the sqlcipher itself is :
Caused by net.sqlcipher.database.SQLiteException: file is not a database: , while compiling: select count(*) from sqlite_master; at net.sqlcipher.database.SQLiteCompiledSql.native_compile(SourceFile) at net.sqlcipher.database.SQLiteCompiledSql.compile(SourceFile:3) at net.sqlcipher.database.SQLiteCompiledSql.(SourceFile:12) at net.sqlcipher.database.SQLiteProgram.(SourceFile:18) at net.sqlcipher.database.SQLiteQuery.(SourceFile:1) at net.sqlcipher.database.SQLiteDirectCursorDriver.query(SourceFile:9) at net.sqlcipher.database.SQLiteDatabase.rawQueryWithFactory(SourceFile:5) at net.sqlcipher.database.SQLiteDatabase.rawQuery(SourceFile:1) at net.sqlcipher.database.SQLiteDatabase.keyDatabase(SourceFile:6) at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal(SourceFile:4) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SourceFile:10) at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SourceFile:8) at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase(SourceFile:14) at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase(SourceFile:2) at com.commonsware.cwac.saferoom.Helper$OpenHelper.getWritableSupportDatabase(SourceFile:2) at com.commonsware.cwac.saferoom.Helper.getWritableDatabase(SourceFile:5) at androidx.room.RoomDatabase.createInvalidationTracker(SourceFile:25) createOpenHelper inTransaction at androidx.room.RoomDatabase.assertNotSuspendingTransaction(SourceFile:3) at androidx.room.RoomDatabase.createInvalidationTracker(SourceFile:18) createOpenHelper query at androidx.room.util.DBUtil.query(SourceFile:1) at com.myapp.MainActivity$onResume$2.onChanged(SourceFile:1) at com.myapp.MainActivity$onResume$2.call(SourceFile:1) at androidx.room.RoomTrackingLiveData$1.run(SourceFile:5) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:764)