GeyserMC / Geyser

A bridge/proxy allowing you to connect to Minecraft: Java Edition servers with Minecraft: Bedrock Edition.
https://geysermc.org
MIT License
4.74k stars 687 forks source link

Bug - Error sending packet clientbound/minecraft:disconnect #5143

Open WindowsCraft76 opened 3 days ago

WindowsCraft76 commented 3 days ago

Describe the bug

When I start my server, there is this error message, I can still connect with my Java and Bedrock account.

To Reproduce

[13:10:20] [Geyser Spigot connection thread-6-2/ERROR]: Error sending packet clientbound/minecraft:disconnect
--
270 | io.netty.handler.codec.EncoderException: Sending unknown packet 'clientbound/minecraft:disconnect'
271 | at net.minecraft.network.codec.IdDispatchCodec.a(SourceFile:47) ~[spigot-1.21.3-R0.1-SNAPSHOT.jar:4378-Spigot-e65d67a-8ef9079]
272 | at net.minecraft.network.codec.IdDispatchCodec.encode(SourceFile:14) ~[spigot-1.21.3-R0.1-SNAPSHOT.jar:4378-Spigot-e65d67a-8ef9079]
273 | at net.minecraft.network.PacketEncoder.a(SourceFile:26) ~[spigot-1.21.3-R0.1-SNAPSHOT.jar:4378-Spigot-e65d67a-8ef9079]
274 | at net.minecraft.network.PacketEncoder.encode(SourceFile:12) ~[spigot-1.21.3-R0.1-SNAPSHOT.jar:4378-Spigot-e65d67a-8ef9079]
275 | at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107) ~[netty-codec-4.1.97.Final.jar:4.1.97.Final]
276 | at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:881) ~[netty-transport-4.1.97.Final.jar:4.1.97.Final]
277 | at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:863) ~[netty-transport-4.1.97.Final.jar:4.1.97.Final]
278 | at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:968) ~[netty-transport-4.1.97.Final.jar:4.1.97.Final]
279 | at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:856) ~[netty-transport-4.1.97.Final.jar:4.1.97.Final]
280 | at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:120) ~[netty-codec-4.1.97.Final.jar:4.1.97.Final]
281 | at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:881) ~[netty-transport-4.1.97.Final.jar:4.1.97.Final]
282 | at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:863) ~[netty-transport-4.1.97.Final.jar:4.1.97.Final]
283 | at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:968) ~[netty-transport-4.1.97.Final.jar:4.1.97.Final]
284 | at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:856) ~[netty-transport-4.1.97.Final.jar:4.1.97.Final]
285 | at io.netty.channel.ChannelOutboundHandlerAdapter.write(ChannelOutboundHandlerAdapter.java:113) ~[netty-transport-4.1.97.Final.jar:4.1.97.Final]

and it repeats itself in a loop but for a moment it stops.

Expected behaviour

I would like to fix this.

Screenshots / Videos

No response

Server Version and Plugins

It's a single server. This server is running Geyser version 2.5.0-b711 (git-master-4598ffe) (Java: 1.21.3, Bedrock: 1.20.80/1.20.81 - 1.21.40 - 1.21.44)

Plugins:

Geyser Dump

https://dump.geysermc.org/VlGOG0njgUNDM5IwLePCIOoOspTujjQK

Geyser Version

2.5.0-b711 (git-master-4598ffe)

Minecraft: Bedrock Edition Device/Version

No response

Additional Context

No response

Kas-tle commented 3 days ago

This can likely be fixed by using Paper instead of Spigot, but out of curiousity, could you also see if the issue still occurs if you remove ProtocolLib (before switching to Paper)?

WindowsCraft76 commented 3 days ago

ok I will test

WindowsCraft76 commented 3 days ago

I don't know how but there is no more error, I didn't do anything...

WindowsCraft76 commented 1 day ago

I found the bug it comes either from the customcrafting plugin or from WolfyUtils.

WindowsCraft76 commented 1 day ago

and I also get a very big error message when a player connects. Here are the logs directly: https://mclo.gs/1VmxdGV (the first error is normal and from DiscordSRV too)

WindowsCraft76 commented 1 day ago

and of course it doesn't do that to me when I'm not customcrafting or WolfyUtils.