Almighty-Alpaca / JetBrains-Discord-Integration

Discord rich presence integration for all JetBrains IDEs
https://plugins.jetbrains.com/plugin/10233-discord-integration
Apache License 2.0
586 stars 64 forks source link

kotlin.UninitializedPropertyAccessException: lateinit property randomAccessFile has not been initialized #382

Open AndreyGP opened 8 months ago

AndreyGP commented 8 months ago

Good day! Plugin version: 1.11.0

Common info: IntelliJ IDEA 2023.1.5 (Ultimate Edition) Build #IU-231.9392.1, built on July 25, 2023 Licensed to kiddy inseams You have a perpetual fallback license for this version. Subscription is active until August 1, 2025. Runtime version: 17.0.7+10-b829.16 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 16 Non-Bundled Plugins: lermitage.intellij.extratci (1.27.0) https://github.com/DUNNIK (1.7) com.intellij.plugins.xwinkeymap (211.4961.30) com.andrey4623.rainbowcsv (2.0.2) com.intellij.properties.bundle.editor (231.8109.91) com.intellij.jira (4.5.0) com.jetbrains.jax.ws (231.8109.90) MavenRunHelper (4.26.0-IJ2022.2) com.almightyalpaca.intellij.plugins.discord (1.11.0) izhangzhihao.rainbow.brackets.lite (1.1.0) com.mallowigi (90.0.0)

Kotlin: 231-1.8.21-IJ9392.1

For the last few days an exception has been thrown:

kotlin.UninitializedPropertyAccessException: lateinit property randomAccessFile has not been initialized
    at dev.cbyrne.kdiscordipc.core.socket.impl.WindowsSocket.close(WindowsSocket.kt:28)
    at dev.cbyrne.kdiscordipc.core.socket.handler.SocketHandler.disconnect(SocketHandler.kt:67)
    at dev.cbyrne.kdiscordipc.KDiscordIPC.disconnect(KDiscordIPC.kt:118)
    at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.connection.DiscordIpcConnection.disconnectInternal(DiscordIpcConnection.kt:77)
    at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.connection.DiscordIpcConnection.dispose(DiscordIpcConnection.kt:81)
    at com.intellij.openapi.util.ObjectTree.runWithTrace(ObjectTree.java:127)
    at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:159)
    at com.intellij.openapi.util.Disposer.dispose(Disposer.java:264)
    at com.intellij.openapi.util.Disposer.dispose(Disposer.java:252)
    at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.RpcService$update$1.invokeSuspend(RpcService.kt:115)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

Another exception was thrown once, but so far it has not been repeated. In case of repetition, I will create a separate issue. Thank You for your work!