Server 'hangs' on a player login (sometimes)
Bonista opened this issue ยท 4 comments
Describe the bug
Sometimes when a player logins, server doesn't allow a login and times out with this spamming in console:
https://pastebin.com/padLkiRR
To Reproduce
Not very reproducible :/ It is very random, in my case occurring on a player login (maybe a relog).
Expected behavior
To allow players to join, and not time out on login.
Version Info
https://pastebin.com/NVJWDW1H
Additional context
Looking around to see whether this bug is known, I found this issue: #724
Although the error that I am getting is not the same error as the original issue creator's, it is almost identical to the ones posted by others on that issue (java.lang.IllegalArgumentException: java.lang.ClassCastException) which seems to be triggered by a login. From looking at the other stacktraces, it seems to be present on every version of Spigot (1.8.8 in one case, 1.15.1 in another), ViaVersion or not.
Seems like this is the same issue:
#791
@dmulloy2 Could this be a concurrency issue? I'm not familiar with netty but I don't see how DECODE_BUFFER.invoke(vanillaDecoder, ctx, byteBuffer, packets) would have an illegal argument randomly.
This is how you replicate this
Fixed in b04fca8