Azn9 / JetBrains-Discord-Integration

Discord rich presence integration for all JetBrains IDEs
Apache License 2.0
142 stars 10 forks source link

[Bug]: dev.cbyrne.kdiscordipc.core.error.ConnectionError$NotConnected: This socket has either been closed, or, was never connected. #182

Closed JDI-Bot closed 1 month ago

JDI-Bot commented 1 month ago

IDE version

IntelliJ IDEA 2024.2.0.1 (IU-242.20224.387)

OS

Windows

Java version

21.0.3

Plugin version

2.1.2.242

Error message

dev.cbyrne.kdiscordipc.core.error.ConnectionError$NotConnected: This socket has either been closed, or, was never connected.

Additional info

/

Stack trace

dev.cbyrne.kdiscordipc.core.error.ConnectionError$NotConnected: This socket has either been closed, or, was never connected.
    at dev.cbyrne.kdiscordipc.core.error.ConnectionError$NotConnected.(ConnectionError.kt)
    at dev.cbyrne.kdiscordipc.core.socket.handler.SocketHandler.write(SocketHandler.kt:114)
    at dev.cbyrne.kdiscordipc.KDiscordIPC.writePacket(KDiscordIPC.kt:134)
    at dev.cbyrne.kdiscordipc.KDiscordIPC.access$writePacket(KDiscordIPC.kt:44)
    at dev.cbyrne.kdiscordipc.manager.impl.ActivityManager.setActivity(ActivityManager.kt:60)
    at dev.azn9.plugins.discord.rpc.connection.DiscordIpcConnection.send(DiscordIpcConnection.kt:83)
    at dev.azn9.plugins.discord.rpc.RpcService$update$1$1$1$7.invokeSuspend(RpcService.kt:127)
    at dev.azn9.plugins.discord.rpc.RpcService$update$1$1$1$7.invoke(RpcService.kt)
    at dev.azn9.plugins.discord.rpc.RpcService$update$1$1$1$7.invoke(RpcService.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:74)
    at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:148)
    at kotlinx.coroutines.TimeoutKt.withTimeoutOrNull(Timeout.kt:104)
    at dev.azn9.plugins.discord.rpc.RpcService$update$1$1$1.invokeSuspend(RpcService.kt:126)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
    Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelled}@4e050548, Dispatchers.Default]

Issue hash: 9fb36a1d5bbc0e0d494a72604ca227da

Azn9 commented 1 month ago

Duplicate of #160