maxrave-dev / maxrave-dev/SimpMusic
Crash on startup windows desktop app
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 11.4k
- Forks
- 599
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 7
Description
Duplicate Check
- I confirm I searched for existing reports and found no duplicates.
Describe the Bug
I just opeed app normally and it often crash on first time but on reopen it opens normally
Steps to Reproduce
It was just found on app startup , so kill simpmusic from taskmanager if already running then just reopen , soemtime it crash sometime opens properly.
Expected Behavior
It should open normally.
App Version
1.7.0
Android Version
Windows 11
Device Model
Asus Vivobook 15
Custom ROM
- I am using a custom ROM
Custom ROM Name (if applicable)
No response
Screenshots (optional)
No response
Log / Error Details
java.io.IOException: Unable to rename C:\Users\Pawan Kumar.simpmusic\settings.preferences_pb.tmp to C:\Users\Pawan Kumar.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.r.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.a(DataStoreImpl.kt)
at androidx.datastore.a.k$r.invoke(DataStoreImpl.kt)
at androidx.datastore.a.G.a(SingleProcessCoordinator.kt)
at androidx.datastore.a.k.a(DataStoreImpl.kt)
at androidx.datastore.a.k.a(DataStoreImpl.kt)
at androidx.datastore.a.k$g.invokeSuspend(DataStoreImpl.kt)
at androidx.datastore.a.k$g.a(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.a(DataStoreImpl.kt)
at androidx.datastore.a.k$t.invoke(DataStoreImpl.kt)
at androidx.datastore.a.F$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}@2791c85e, java.util.concurrent.Executors$AutoShutdownDelegatedExecutorService@6a8b32f4]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Windows startup path that accesses settings.preferences_pb, using the reported FileStorage.kt, DataStoreImpl.kt, and SingleProcessCoordinator.kt stack frames as entry points. Reproduce by terminating SimpMusic and reopening it repeatedly, then verify that startup no longer crashes and the settings file is written successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100