Force crash reporting for DB lock

This commit is contained in:
M66B 2024-05-15 17:44:06 +02:00
parent 9173ec038c
commit f79b1579f9
1 changed files with 5 additions and 0 deletions

View File

@ -419,6 +419,8 @@ public abstract class DB extends RoomDatabase {
Log.i("Disabled view invalidation");
} catch (ReflectiveOperationException ex) {
// Should never happen
Log.forceCrashReporting();
Log.e(ex);
}
@ -459,6 +461,8 @@ public abstract class DB extends RoomDatabase {
lock.value.release();
}
} catch (Throwable ex) {
// Should never happen
Log.forceCrashReporting();
Log.e(ex);
}
Log.i("DB critical section end");
@ -584,6 +588,7 @@ public abstract class DB extends RoomDatabase {
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at androidx.room.RoomDatabase.inTransaction(RoomDatabase.java:706)
*/
// Should never happen
Log.forceCrashReporting();
Log.e(ex);
// FrameworkSQLiteOpenHelper.innerGetDatabase will delete the database