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] StartGamePacket - Failed to decode packet #280

Closed
kroast2432423 opened this issue Jul 8, 2023 · 3 comments
Closed

[BUG] StartGamePacket - Failed to decode packet #280

kroast2432423 opened this issue Jul 8, 2023 · 3 comments
Labels
bug Something isn't working unconfirmed

Comments

@kroast2432423
Copy link

Describe the bug
When connecting via waterdog pe, the following error occurs:

023-07-08 13:49:29.235 [Bedrock Listener - #1] INFO - [/...::19136|xxH9IWKAxx] -> Downstream [v1_20_0] has connected
2023-07-08 13:49:30.283 [Bedrock Listener - #1] WARN - Failed to decode packet
org.cloudburstmc.protocol.bedrock.codec.PacketSerializeException: Error whilst deserializing StartGamePacket(gamerules=[commandblocksenabled=false, commandblockoutput=false, dodaylightcycle=false, doentitydrops=false, dofiretick=false, doinsomnia=false, doimmediaterespawn=false, domobloot=false, domobspawning=false, dotiledrops=false, doweathercycle=false, drowningdamage=false, falldamage=false, firedamage=false, freezedamage=false, functioncommandlimit=10000, keepinventory=false, maxcommandchainlength=65536, mobgriefing=false, naturalregeneration=false, pvp=false, randomtickspeed=1, sendcommandfeedback=false, showcoordinates=false, showdeathmessages=false, spawnradius=0, tntexplodes=false, experimentalgameplay=true, showtags=false], uniqueEntityId=3, runtimeEntityId=3, playerGameType=SURVIVAL, playerPosition=(199, 100, 200), rotation=(279.68073, 40.803864), seed=-1, spawnBiomeType=DEFAULT, customBiomeName=plains, dimensionId=0, generatorId=1, levelGameType=SURVIVAL, difficulty=1, defaultSpawn=(199, 98, 200), achievementsDisabled=true, dayCycleStopTime=-1, eduEditionOffers=0, eduFeaturesEnabled=false, educationProductionId=, rainLevel=0.0, lightningLevel=0.0, platformLockedContentConfirmed=false, multiplayerGame=true, broadcastingToLan=true, xblBroadcastMode=PUBLIC, platformBroadcastMode=PUBLIC, commandsEnabled=true, texturePacksRequired=false, experiments=[ExperimentData(name=data_driven_items, enabled=true), ExperimentData(name=upcoming_creator_features, enabled=true), ExperimentData(name=experimental_molang_features, enabled=true), ExperimentData(name=cameras, enabled=true)], experimentsPreviouslyToggled=true, bonusChestEnabled=false, startingWithMap=false, trustingPlayers=false, defaultPlayerPermission=MEMBER, serverChunkTickRange=4, behaviorPackLocked=false, resourcePackLocked=false, fromLockedWorldTemplate=false, usingMsaGamertagsOnly=false, fromWorldTemplate=false, worldTemplateOptionLocked=false, onlySpawningV1Villagers=false, vanillaVersion=
, limitedWorldWidth=16, limitedWorldHeight=16, netherType=false, eduSharedUriResource=EduSharedUriResource(buttonName=, linkUri=), forceExperimentalGameplay=OptionalBoolean[false], chatRestrictionLevel=NONE, disablingPlayerInteractions=false, disablingPersonas=false, disablingCustomSkins=false, levelId=§l§cTest server,, levelName=, premiumWorldTemplateId=, trial=true, authoritativeMovementMode=CLIENT, rewindHistorySize=-1, serverAuthoritativeBlockBreaking=false, currentTick=0, enchantmentSeed=0, blockProperties=[], multiplayerCorrelationId=null, inventoriesServerAuthoritative=false, serverEngine=null, playerPropertyData=null, blockRegistryChecksum=0, worldTemplateId=null, worldEditor=false, clientSideGenerationEnabled=false, emoteChatMuted=false, blockNetworkIdsHashed=false, createdInEditor=false, exportedFromEditor=false, networkPermissions=NetworkPermissions(serverAuthSounds=false))
at org.cloudburstmc.protocol.bedrock.codec.BedrockCodec.tryDecode(BedrockCodec.java:59) ~[server.jar:?]
at dev.waterdog.waterdogpe.network.protocol.handler.ProxyBatchBridge.decodePacket(ProxyBatchBridge.java:91) ~[server.jar:?]
at dev.waterdog.waterdogpe.network.protocol.handler.ProxyBatchBridge.onBedrockBatch(ProxyBatchBridge.java:55) ~[server.jar:?]
at dev.waterdog.waterdogpe.network.connection.client.BedrockClientConnection.channelRead0(BedrockClientConnection.java:83) ~[server.jar:?]
at dev.waterdog.waterdogpe.network.connection.client.BedrockClientConnection.channelRead0(BedrockClientConnection.java:54) ~[server.jar:?]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.ProxyInboundRouter.channelRead(ProxyInboundRouter.java:66) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.common.EncapsulatedToMessageHandler.channelRead0(EncapsulatedToMessageHandler.java:15) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.common.EncapsulatedToMessageHandler.channelRead0(EncapsulatedToMessageHandler.java:8) ~[server.jar:?]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.AdvancedChannelInboundHandler.channelRead(AdvancedChannelInboundHandler.java:48) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.AdvancedChannelInboundHandler.channelRead(AdvancedChannelInboundHandler.java:48) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.AdvancedChannelInboundHandler.channelRead(AdvancedChannelInboundHandler.java:48) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.common.RakSessionCodec.onOrderedReceived(RakSessionCodec.java:341) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.common.RakSessionCodec.checkForOrdered(RakSessionCodec.java:322) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.common.RakSessionCodec.handleDatagram(RakSessionCodec.java:310) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.common.RakSessionCodec.channelRead(RakSessionCodec.java:206) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:102) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.AdvancedChannelInboundHandler.channelRead(AdvancedChannelInboundHandler.java:48) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.client.RakClientProxyRouteHandler.channelRead(RakClientProxyRouteHandler.java:50) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[server.jar:?]
at io.netty.channel.nio.AbstractNioMessageChannel$NioMessageUnsafe.read(AbstractNioMessageChannel.java:97) ~[server.jar:?]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) ~[server.jar:?]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) ~[server.jar:?]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) ~[server.jar:?]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[server.jar:?]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[server.jar:?]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[server.jar:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.IndexOutOfBoundsException: Tag type id must be greater than 0 and less than 12
at org.cloudburstmc.nbt.NbtType.byId(NbtType.java:46) ~[server.jar:?]
at org.cloudburstmc.nbt.NBTInputStream.readTag(NBTInputStream.java:38) ~[server.jar:?]
at org.cloudburstmc.nbt.NBTInputStream.readTag(NBTInputStream.java:30) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.BaseBedrockCodecHelper.readTag(BaseBedrockCodecHelper.java:261) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v428.serializer.StartGameSerializer_v428.lambda$deserialize$2(StartGameSerializer_v428.java:74) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.BaseBedrockCodecHelper.readArray(BaseBedrockCodecHelper.java:196) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.BedrockCodecHelper.readArray(BedrockCodecHelper.java:48) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v428.serializer.StartGameSerializer_v428.deserialize(StartGameSerializer_v428.java:72) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v440.serializer.StartGameSerializer_v440.deserialize(StartGameSerializer_v440.java:23) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v527.serializer.StartGameSerializer_v527.deserialize(StartGameSerializer_v527.java:24) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v544.serializer.StartGameSerializer_v544.deserialize(StartGameSerializer_v544.java:21) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v582.serializer.StartGameSerializer_v582.deserialize(StartGameSerializer_v582.java:21) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v589.serializer.StartGameSerializer_v589.deserialize(StartGameSerializer_v589.java:19) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v589.serializer.StartGameSerializer_v589.deserialize(StartGameSerializer_v589.java:9) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.BedrockCodec.tryDecode(BedrockCodec.java:57) ~[server.jar:?]
... 89 more
2023-07-08 13:49:30.283 [Bedrock Listener - #1] WARN - [/...:19136|xxH9IWKAxx] - exception caught
org.cloudburstmc.protocol.bedrock.codec.PacketSerializeException: Error whilst deserializing StartGamePacket(gamerules=[commandblocksenabled=false, commandblockoutput=false, dodaylightcycle=false, doentitydrops=false, dofiretick=false, doinsomnia=false, doimmediaterespawn=false, domobloot=false, domobspawning=false, dotiledrops=false, doweathercycle=false, drowningdamage=false, falldamage=false, firedamage=false, freezedamage=false, functioncommandlimit=10000, keepinventory=false, maxcommandchainlength=65536, mobgriefing=false, naturalregeneration=false, pvp=false, randomtickspeed=1, sendcommandfeedback=false, showcoordinates=false, showdeathmessages=false, spawnradius=0, tntexplodes=false, experimentalgameplay=true, showtags=false], uniqueEntityId=3, runtimeEntityId=3, playerGameType=SURVIVAL, playerPosition=(199, 100, 200), rotation=(279.68073, 40.803864), seed=-1, spawnBiomeType=DEFAULT, customBiomeName=plains, dimensionId=0, generatorId=1, levelGameType=SURVIVAL, difficulty=1, defaultSpawn=(199, 98, 200), achievementsDisabled=true, dayCycleStopTime=-1, eduEditionOffers=0, eduFeaturesEnabled=false, educationProductionId=, rainLevel=0.0, lightningLevel=0.0, platformLockedContentConfirmed=false, multiplayerGame=true, broadcastingToLan=true, xblBroadcastMode=PUBLIC, platformBroadcastMode=PUBLIC, commandsEnabled=true, texturePacksRequired=false, experiments=[ExperimentData(name=data_driven_items, enabled=true), ExperimentData(name=upcoming_creator_features, enabled=true), ExperimentData(name=experimental_molang_features, enabled=true), ExperimentData(name=cameras, enabled=true)], experimentsPreviouslyToggled=true, bonusChestEnabled=false, startingWithMap=false, trustingPlayers=false, defaultPlayerPermission=MEMBER, serverChunkTickRange=4, behaviorPackLocked=false, resourcePackLocked=false, fromLockedWorldTemplate=false, usingMsaGamertagsOnly=false, fromWorldTemplate=false, worldTemplateOptionLocked=false, onlySpawningV1Villagers=false, vanillaVersion=
, limitedWorldWidth=16, limitedWorldHeight=16, netherType=false, eduSharedUriResource=EduSharedUriResource(buttonName=, linkUri=), forceExperimentalGameplay=OptionalBoolean[false], chatRestrictionLevel=NONE, disablingPlayerInteractions=false, disablingPersonas=false, disablingCustomSkins=false, levelId=§l§cTest server, levelName=, premiumWorldTemplateId=, trial=true, authoritativeMovementMode=CLIENT, rewindHistorySize=-1, serverAuthoritativeBlockBreaking=false, currentTick=0, enchantmentSeed=0, blockProperties=[], multiplayerCorrelationId=null, inventoriesServerAuthoritative=false, serverEngine=null, playerPropertyData=null, blockRegistryChecksum=0, worldTemplateId=null, worldEditor=false, clientSideGenerationEnabled=false, emoteChatMuted=false, blockNetworkIdsHashed=false, createdInEditor=false, exportedFromEditor=false, networkPermissions=NetworkPermissions(serverAuthSounds=false))
at org.cloudburstmc.protocol.bedrock.codec.BedrockCodec.tryDecode(BedrockCodec.java:59) ~[server.jar:?]
at dev.waterdog.waterdogpe.network.protocol.handler.ProxyBatchBridge.decodePacket(ProxyBatchBridge.java:91) ~[server.jar:?]
at dev.waterdog.waterdogpe.network.protocol.handler.ProxyBatchBridge.onBedrockBatch(ProxyBatchBridge.java:55) ~[server.jar:?]
at dev.waterdog.waterdogpe.network.connection.client.BedrockClientConnection.channelRead0(BedrockClientConnection.java:83) ~[server.jar:?]
at dev.waterdog.waterdogpe.network.connection.client.BedrockClientConnection.channelRead0(BedrockClientConnection.java:54) ~[server.jar:?]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.ProxyInboundRouter.channelRead(ProxyInboundRouter.java:66) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.common.EncapsulatedToMessageHandler.channelRead0(EncapsulatedToMessageHandler.java:15) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.common.EncapsulatedToMessageHandler.channelRead0(EncapsulatedToMessageHandler.java:8) ~[server.jar:?]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.AdvancedChannelInboundHandler.channelRead(AdvancedChannelInboundHandler.java:48) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.AdvancedChannelInboundHandler.channelRead(AdvancedChannelInboundHandler.java:48) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.AdvancedChannelInboundHandler.channelRead(AdvancedChannelInboundHandler.java:48) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.common.RakSessionCodec.onOrderedReceived(RakSessionCodec.java:341) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.common.RakSessionCodec.checkForOrdered(RakSessionCodec.java:322) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.common.RakSessionCodec.handleDatagram(RakSessionCodec.java:310) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.common.RakSessionCodec.channelRead(RakSessionCodec.java:206) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:102) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[server.jar:?]
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.AdvancedChannelInboundHandler.channelRead(AdvancedChannelInboundHandler.java:48) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at org.cloudburstmc.netty.handler.codec.raknet.client.RakClientProxyRouteHandler.channelRead(RakClientProxyRouteHandler.java:50) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[server.jar:?]
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) ~[server.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[server.jar:?]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[server.jar:?]
at io.netty.channel.nio.AbstractNioMessageChannel$NioMessageUnsafe.read(AbstractNioMessageChannel.java:97) ~[server.jar:?]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) ~[server.jar:?]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) ~[server.jar:?]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) ~[server.jar:?]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[server.jar:?]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[server.jar:?]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[server.jar:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.IndexOutOfBoundsException: Tag type id must be greater than 0 and less than 12
at org.cloudburstmc.nbt.NbtType.byId(NbtType.java:46) ~[server.jar:?]
at org.cloudburstmc.nbt.NBTInputStream.readTag(NBTInputStream.java:38) ~[server.jar:?]
at org.cloudburstmc.nbt.NBTInputStream.readTag(NBTInputStream.java:30) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.BaseBedrockCodecHelper.readTag(BaseBedrockCodecHelper.java:261) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v428.serializer.StartGameSerializer_v428.lambda$deserialize$2(StartGameSerializer_v428.java:74) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.BaseBedrockCodecHelper.readArray(BaseBedrockCodecHelper.java:196) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.BedrockCodecHelper.readArray(BedrockCodecHelper.java:48) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v428.serializer.StartGameSerializer_v428.deserialize(StartGameSerializer_v428.java:72) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v440.serializer.StartGameSerializer_v440.deserialize(StartGameSerializer_v440.java:23) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v527.serializer.StartGameSerializer_v527.deserialize(StartGameSerializer_v527.java:24) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v544.serializer.StartGameSerializer_v544.deserialize(StartGameSerializer_v544.java:21) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v582.serializer.StartGameSerializer_v582.deserialize(StartGameSerializer_v582.java:21) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v589.serializer.StartGameSerializer_v589.deserialize(StartGameSerializer_v589.java:19) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.v589.serializer.StartGameSerializer_v589.deserialize(StartGameSerializer_v589.java:9) ~[server.jar:?]
at org.cloudburstmc.protocol.bedrock.codec.BedrockCodec.tryDecode(BedrockCodec.java:57) ~[server.jar:?]
... 89 more
2023-07-08 13:49:30.283 [Bedrock Listener - #1] DEBUG - Disconnecting RakNet Session (/...:56852 => /...**:19136) due to DISCONNECTED
Although when I connect on a direct port to the server (without waterdog), everything works fine, and no errors occur. Core used: pnx (powernukkitx)

To Reproduce
Steps to reproduce the behavior:

  1. Install waterdog pe v2.0.0 and powernukkitx v1.20.0-r2
  2. start the server
  3. join pnx via waterdrop pe

Expected behavior
The player should have joined normally, no errors

Screenshots
Screenshots are not required

Platform Information:

  • Game Platform: Windows 11
  • Game (Client) Version: 1.20.1
  • Server OS: Windows 2012R2
  • Java Version: 17
  • Server Deployment Method: open windows console (start.bat)

Additional context
Nothing to add

@kroast2432423 kroast2432423 added bug Something isn't working unconfirmed labels Jul 8, 2023
@Alemiz112
Copy link
Member

There is an issue with StartGamePacket serialization in PowerNukkit, so it will have to be fixed there.

@kroast2432423
Copy link
Author

Can you fix it? Or to whom can I write with this problem?

@TobiasGrether
Copy link
Member

Can you fix it? Or to whom can I write with this problem?

You can contact the developers of PowerNukkit to fix this

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

No branches or pull requests

3 participants