Fixed
Status Update
Comments
su...@google.com <su...@google.com>
su...@google.com <su...@google.com> #2
Is there any updates? This is a big problem!
ra...@google.com <ra...@google.com>
ap...@google.com <ap...@google.com> #3
Hi there - could you provide more context on the issue & a sample project to reproduce? Database locked exceptions are quite difficult to pinpoint without a repro project. Thanks!
ol...@gmail.com <ol...@gmail.com> #4
Hi. It is reproduceable on some users by using this code:
suspend fun <R> MyDatabase.workaroundWithTransaction(block: suspend TransactionScope<R>.() -> R) {
useWriterConnection {
it.immediateTransaction(block)
}
// TODO: Temporally fix https://issuetracker.google.com/issues/340606803#comment2
// Manually triggers invalidation
invalidationTracker.refreshAsync()
}
Description
Version used: 1.0.0-beta4
Devices/Android versions reproduced on: Crash only appears on Android 6
Crash appears when trying to enqueue a periodic task.
example :
WorkManager.getInstance().enqueueUniquePeriodicWork("UpdateNovel",ExistingPeriodicWorkPolicy.REPLACE,novel)