Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error decoding class net.elytrium.limboapi.injection.packet.UpsertPlayerInfoHook Direction CLIENTBOUND Protocol 1.20 State PLAY ID 3a #110

Open
frogglen opened this issue Oct 18, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@frogglen
Copy link

frogglen commented Oct 18, 2023

Describe the bug

[23:07:34] [Netty epoll Worker #30/INFO] [limboapi]: Nirita002 has disconnected from the LimboReconnect Limbo
[23:07:34] [Netty epoll Worker #30/INFO] [com.velocitypowered.proxy.connection.MinecraftConnection]: [connected player] Nirita002 has disconnected
[23:07:40] [Netty epoll Worker #11/INFO] [com.velocitypowered.proxy.connection.MinecraftConnection]: [server connection] Nirita002 -> survival has connected
[23:07:40] [Netty epoll Worker #11/ERROR] [com.velocitypowered.proxy.connection.MinecraftConnection]: [server connection] Nirita002 -> survival: exception encountered in com.velocitypowered.proxy.connection.backend.BackendPlaySessionHandler@4c275967
io.netty.handler.codec.CorruptedFrameException: Error decoding class net.elytrium.limboapi.injection.packet.UpsertPlayerInfoHook Direction CLIENTBOUND Protocol 1.20 State PLAY ID 3a
	at com.velocitypowered.proxy.protocol.netty.MinecraftDecoder.handleDecodeFailure(MinecraftDecoder.java:131) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at com.velocitypowered.proxy.protocol.netty.MinecraftDecoder.tryDecode(MinecraftDecoder.java:86) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at com.velocitypowered.proxy.protocol.netty.MinecraftDecoder.channelRead(MinecraftDecoder.java:61) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:333) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:454) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:800) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:499) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:397) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.IllegalArgumentException: Invalid key bytes
	at com.velocitypowered.proxy.crypto.EncryptionUtils.parseRsaPublicKey(EncryptionUtils.java:206) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at com.velocitypowered.proxy.crypto.IdentifiedKeyImpl.<init>(IdentifiedKeyImpl.java:46) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at com.velocitypowered.proxy.protocol.ProtocolUtils.readPlayerKey(ProtocolUtils.java:585) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at com.velocitypowered.proxy.protocol.packet.chat.RemoteChatSession.<init>(RemoteChatSession.java:36) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at com.velocitypowered.proxy.protocol.packet.UpsertPlayerInfo$Action.lambda$static$2(UpsertPlayerInfo.java:155) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at com.velocitypowered.proxy.protocol.packet.UpsertPlayerInfo.decode(UpsertPlayerInfo.java:103) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	at com.velocitypowered.proxy.protocol.netty.MinecraftDecoder.tryDecode(MinecraftDecoder.java:84) ~[velocity.jar:3.2.0-SNAPSHOT (git-19abb909-b265)]
	... 26 more

this issue that happens on my server after a few hours of running, it randomly logs out players with this issue and doesn't let them back in.
to solve the issue I have to restart the proxy every time it happens, what can I do?

Expected behavior
that players can stay within the server without being randomly kicked out

Server Info (please complete the following information):

@frogglen frogglen added the bug Something isn't working label Oct 18, 2023
@enesop
Copy link

enesop commented Oct 25, 2023

This is due to the new state introduced with 1.20, the CONFIG state, which needs to be implemented into limboapi, players connecting from 1.20.2 will cause this issue

PaperMC/Velocity#1088
#109

@frogglen
Copy link
Author

This is due to the new state introduced with 1.20, the CONFIG state, which needs to be implemented into limboapi, players connecting from 1.20.2 will cause this issue

PaperMC/Velocity#1088 #109

Are you sure?

I'm using velocity 265

@kainlighty
Copy link

This is due to the new state introduced with 1.20, the CONFIG state, which needs to be implemented into limboapi, players connecting from 1.20.2 will cause this issue

PaperMC/Velocity#1088 #109

Are you sure?

I'm using velocity 265

Do you also have build version higher than 265 that do not allow you to access the server with its plugins?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants