caoimhebyrne / KDiscordIPC

A Kotlin library for interacting with Discord via IPC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to read raw packet exception on Windows

Wyvest opened this issue · comments

some users are getting this error:

[10:35:41] [Thread-39/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.IllegalStateException: Failed to read raw packet
[10:35:41] [Thread-39/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at dev.cbyrne.kdiscordipc.socket.DiscordSocket.readPacket(DiscordSocket.kt:156)
[10:35:41] [Thread-39/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at dev.cbyrne.kdiscordipc.socket.DiscordSocket.access$readPacket(DiscordSocket.kt:44)
[10:35:41] [Thread-39/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at dev.cbyrne.kdiscordipc.socket.DiscordSocket$connect$1.invoke(DiscordSocket.kt:80)
[10:35:41] [Thread-39/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at dev.cbyrne.kdiscordipc.socket.DiscordSocket$connect$1.invoke(DiscordSocket.kt:78)
[10:35:41] [Thread-39/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)

Some don't, some do, the issue is very inconsistent.

Not enough information. Please provide their OS, discord version and anything else required.

image
image
they're both using windows 1902, maybe that's the issue?

image
this is one person that doesn't have the issue, i do not think it is a windows 1902 problem anymore

It's probably an issue with the windows code. I'll check it out soon.

@Wyvest, fixed on latest commit. Check with your users if it's fixed on their side. Also, those on 19XX should really update to 20XX...

checked now, with latest commit the issue still is not fixed

@Wyvest does this happen instantly, or does it happen after a while?

This appears to be resolved in the latest commit.
image