John O'Reilly
07/11/2021, 9:30 AMandroidx.datastore:datastore-preferences:1.0.0-rc01
and seeing occasional crashes in play console (stack trace in thread) but can't reproduce locally....just in case anyone else has encountered this.John O'Reilly
07/11/2021, 9:30 AMjava.lang.IllegalStateException:
at androidx.datastore.core.SingleProcessDataStore$file$2.invoke (SingleProcessDataStore.kt:168)
at androidx.datastore.core.SingleProcessDataStore$file$2.invoke (SingleProcessDataStore.kt:163)
at kotlin.SynchronizedLazyImpl.getValue (LazyJVM.kt:74)
at androidx.datastore.core.SingleProcessDataStore.getFile (SingleProcessDataStore.kt:163)
at androidx.datastore.core.SingleProcessDataStore.readData (SingleProcessDataStore.kt:380)
at androidx.datastore.core.SingleProcessDataStore.readDataOrHandleCorruption (SingleProcessDataStore.kt:359)
at androidx.datastore.core.SingleProcessDataStore.readAndInit (SingleProcessDataStore.kt:322)
at androidx.datastore.core.SingleProcessDataStore.readAndInitOrPropagateFailure (SingleProcessDataStore.kt:311)
at androidx.datastore.core.SingleProcessDataStore.handleRead (SingleProcessDataStore.kt:261)
at androidx.datastore.core.SingleProcessDataStore.access$handleRead (SingleProcessDataStore.kt:76)
at androidx.datastore.core.SingleProcessDataStore$actor$3.invokeSuspend (SingleProcessDataStore.kt:239)
at androidx.datastore.core.SingleProcessDataStore$actor$3.invoke (SingleProcessDataStore.kt:8)
at androidx.datastore.core.SingleProcessDataStore$actor$3.invoke (SingleProcessDataStore.kt:4)
at androidx.datastore.core.SimpleActor$offer$2.invokeSuspend (SimpleActor.kt:122)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.kt:665)
John O'Reilly
07/11/2021, 9:34 AMcheck(!activeFiles.contains(it)) {
"There are multiple DataStores active for the same file: $file. You should " +
"either maintain your DataStore as a singleton or confirm that there is " +
"no two DataStore's active on the same file (by confirming that the scope" +
" is cancelled)."
}
John O'Reilly
07/11/2021, 9:39 AMFunkyMuse
07/11/2021, 11:26 AM