Crash on windows 10
Duplicate Check
- [x] I confirm I searched for existing reports and found no duplicates.
Describe the Bug
Just playing any song will cause it to be corrupted.
Steps to Reproduce
https://github.com/user-attachments/assets/a62445dd-1e64-4c3a-912b-89ea991a0c96
Expected Behavior
tI think it will play music.
App Version
1.0.4
Android Version
windows 10
Device Model
windows
Custom ROM
- [x] I am using a custom ROM
Custom ROM Name (if applicable)
windows 10
Screenshots (optional)
No response
Log / Error Details
No response
Same here:
java.io.IOException: Unable to rename C:\Users\Codey.simpmusic\settings.preferences_pb.tmp to C:\Users\Codey.simpmusic\settings.preferences_pb. This likely means that there are multiple instances of DataStore for this file. Ensure that you are only creating a single instance of datastore for this file. at androidx.datastore.a.q.a(FileStorage.kt) at androidx.datastore.a.k.a(DataStoreImpl.kt) at androidx.datastore.a.k$r.invokeSuspend(DataStoreImpl.kt) at androidx.datastore.a.k$r.invoke(DataStoreImpl.kt) at androidx.datastore.a.D.a(SingleProcessCoordinator.kt) at androidx.datastore.a.k.a(DataStoreImpl.kt) at androidx.datastore.a.k$g.invokeSuspend(DataStoreImpl.kt) at androidx.datastore.a.k$g.invoke(DataStoreImpl.kt) at kotlinx.coroutines.b.b.a(Undispatched.kt) at kotlinx.coroutines.b.b.a(Undispatched.kt) at kotlinx.coroutines.h.a(Builders.common.kt) at kotlinx.coroutines.g.a(Unknown Source) at androidx.datastore.a.k.a(DataStoreImpl.kt) at androidx.datastore.a.k.a(DataStoreImpl.kt) at androidx.datastore.a.k$t.invokeSuspend(DataStoreImpl.kt) at androidx.datastore.a.k$t.invoke(DataStoreImpl.kt) at androidx.datastore.a.C$a.invokeSuspend(SimpleActor.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt) at kotlinx.coroutines.U.run(DispatchedTask.kt) at kotlinx.coroutines.internal.q$a.run(LimitedDispatcher.kt) at kotlinx.coroutines.c.i.run(Tasks.kt) at kotlinx.coroutines.c.a.a(CoroutineScheduler.kt) at kotlinx.coroutines.c.a$c.run(CoroutineScheduler.kt) Suppressed: kotlinx.coroutines.internal.i: [aL{Cancelling}@2358d882, java.util.concurrent.Executors$AutoShutdownDelegatedExecutorService@774ae882]
I too faced this issue:
java.io.IOException: Unable to rename C:\Users\kpbeh.simpmusic\settings.preferences_pb.tmp to C:\Users\kpbeh.simpmusic\settings.preferences_pb. This likely means that there are multiple instances of DataStore for this file. Ensure that you are only creating a single instance of datastore for this file. at androidx.datastore.a.q.a(FileStorage.kt) at androidx.datastore.a.k.a(DataStoreImpl.kt) at androidx.datastore.a.k$r.invokeSuspend(DataStoreImpl.kt) at androidx.datastore.a.k$r.invoke(DataStoreImpl.kt) at androidx.datastore.a.D.a(SingleProcessCoordinator.kt) at androidx.datastore.a.k.a(DataStoreImpl.kt) at androidx.datastore.a.k$g.invokeSuspend(DataStoreImpl.kt) at androidx.datastore.a.k$g.invoke(DataStoreImpl.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatched(Undispatched.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt) at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt) at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) at androidx.datastore.a.k.a(DataStoreImpl.kt) at androidx.datastore.a.k.a(DataStoreImpl.kt) at androidx.datastore.a.k$t.invokeSuspend(DataStoreImpl.kt) at androidx.datastore.a.k$t.invoke(DataStoreImpl.kt) at androidx.datastore.a.C$a.invokeSuspend(SimpleActor.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@795ed88b, java.util.concurrent.Executors$AutoShutdownDelegatedExecutorService@65653674]
Fixed by 0f878947 (desktop: run the single-instance check before startKoin to avoid the DataStore 'multiple instances' crash). Closing as completed — reopen if it persists.