Azn9 / JetBrains-Discord-Integration

Discord rich presence integration for all JetBrains IDEs
Apache License 2.0
156 stars 9 forks source link

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

Closed JDI-Bot closed 3 months ago

JDI-Bot commented 3 months ago

IDE version

PyCharm 2024.2 RC (PY-242.20224.170)

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.cbyrne.kdiscordipc.manager.impl.ActivityManager.clearActivity(ActivityManager.kt:56)
    at dev.azn9.plugins.discord.rpc.connection.DiscordIpcConnection.clearActivity(DiscordIpcConnection.kt:96)
    at dev.azn9.plugins.discord.rpc.RpcService$update$1$1$1$1.invokeSuspend(RpcService.kt:83)
    at dev.azn9.plugins.discord.rpc.RpcService$update$1$1$1$1.invoke(RpcService.kt)
    at dev.azn9.plugins.discord.rpc.RpcService$update$1$1$1$1.invoke(RpcService.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:74)
    at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:148)
    at kotlinx.coroutines.TimeoutKt.withTimeout(Timeout.kt:43)
    at dev.azn9.plugins.discord.rpc.RpcService$update$1$1$1.invokeSuspend(RpcService.kt:82)
    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}@2fedfb8, Dispatchers.Default]

Issue hash: 9fb36a1d5bbc0e0d494a72604ca227da

Azn9 commented 3 months ago

Duplicate of https://github.com/Azn9/JetBrains-Discord-Integration/issues/160