Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Version used: 2.4.3
Devices/Android versions reproduced on: Samsung A6, Huawei Honor 8c, ... all of the devices has android 8.1.0 or lower
- reproduction steps: My app has 11 threads that requests for data and store them in the database every 1 second. the app works fine for 2 minutes and crashes afterwards. The crash does not happen when I build my app with target sdk 33 but happens after updating to target sdk 34.
- stacktrace:
7:56.164 15508-15794 ROOM E Cannot run invalidation tracker. Is the db closed?
android.database.sqlite.SQLiteException: no such table: room_table_modification_log (Sqlite code 1): , while compiling: SELECT * FROM room_table_modification_log WHERE invalidated = 1;, (OS error - 0:Success)
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:927)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:538)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:603)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:63)
at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)
at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:46)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1471)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1441)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.query(FrameworkSQLiteDatabase.java:183)
at androidx.room.RoomDatabase.query(RoomDatabase.java:530)
at androidx.room.RoomDatabase.query(RoomDatabase.java:513)
at androidx.room.InvalidationTracker$1.checkUpdatedTable(InvalidationTracker.java:460)
at androidx.room.InvalidationTracker$1.run(InvalidationTracker.java:433)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:784)