maxrave-dev / maxrave-dev/SimpMusic

High CPU Usage in Windows

Open
#2,145 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
11.4k
Forks
599
Avg merge
3d 18h
Merged PRs (30d)
7

Description

Whenever starting the software it take huge amount of CPU power which makes it continuously crashing and also showing some crash message.

Error code --> java.io.IOException: Unable to rename C:\Users\Your Name.simpmusic\settings.preferences_pb.tmp to C:\Users\Your Name.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}@515e61e8, java.util.concurrent.Executors$AutoShutdownDelegatedExecutorService@33f8aa48]

Image Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the startup failure on Windows and trace creation and access of the settings.preferences_pb DataStore named in the error. Determine where multiple instances may be created; done means the app starts without the reported CPU spike, crash, or rename error.

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
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.