BungeePackFix icon indicating copy to clipboard operation
BungeePackFix copied to clipboard

bad packet, are mods in use!? Couldn't read all bytes from a packet

Open SrMonsterYT opened this issue 1 year ago • 9 comments

this happens when I log into version 1.8, and then log into the 1.20.1 server

error 1: https://prnt.sc/SaWnZY-p6c7M

então ativei a opção Dwaterfall.packet-decode-logging=true

error 2: https://prnt.sc/_y7zw9d15RIU

BungeePackFix_1.1.5-beta-1 waterfall-1.20-562

removing bungeepackfix solves the problem and they are not kicked

SrMonsterYT avatar Jan 26 '24 21:01 SrMonsterYT

Just curious, but why are you logging in via 1.8 client on a 1.20.1 server? I find it quite strange to do such thing as 1.8 can't render most of the 1.20 features.

LoneDev6 avatar Jan 29 '24 15:01 LoneDev6

Also post your bungeecord log, do not post screenshots only.

LoneDev6 avatar Jan 29 '24 15:01 LoneDev6

i'm using viaversion to support 1.8 - 1.20.4 i believe 80% of servers use it to do this.

the only error is this:

[17:01:51] [Netty Worker IO Thread #4/WARN]: [/*:23340|SrMonsterYT] -> UpstreamBridge - bad packet, are mods in use!? Couldn't read all bytes from a packet. For more information, launch Waterfall with -Dwaterfall.packet-decode-logging=true [17:01:51] [Netty Worker IO Thread #4/INFO]: [SrMonsterYT] disconnected with: DecoderException : net.md_5.bungee.protocol.BadPacketException: Couldn't read all bytes from a packet. For more information, launch Waterfall with -Dwaterfall.packet-decode-logging=true @ io.netty.handler.codec.MessageToMessageDecoder:98

no other errors except for the players who have joined who are in the image, now if you want the full log you will only see a normal server starting up

this person has a problem almost similar to mine: https://github.com/LoneDev6/BungeePackFix/issues/56

SrMonsterYT avatar Jan 29 '24 21:01 SrMonsterYT

For more information, launch Waterfall with -Dwaterfall.packet-decode-logging=true

Did you run it with this Java argument enabled? Check logs after you enable it and share them here.

LoneDev6 avatar Jan 30 '24 11:01 LoneDev6

For more information, launch Waterfall with -Dwaterfall.packet-decode-logging=true

Did you run it with this Java argument enabled? Check logs after you enable it and share them here.

yes i did and the error changed to that: https://prnt.sc/_y7zw9d15RIU

it was the first thing I did to report the problem to you

SrMonsterYT avatar Jan 30 '24 12:01 SrMonsterYT

I left only these plugins and the error happens, when I remove the itemadder, the BungeePackFix error doesn't happen, it looks like a conflict

plugins:

ViaVersion-4.9.3-SNAPSHOT.jar ViaRewind-3.0.6-SNAPSHOT.jar ViaBackwards-4.9.2-SNAPSHOT.jar ProtocolLib.jar item-nbt-api-plugin-2.12.1.jar

ItemsAdder 3.6.3-beta-9 LoneLibs 1.0.45

SrMonsterYT avatar Feb 01 '24 19:02 SrMonsterYT

@LoneDev6 sorry to tag you, but I've been waiting 1 week for a fix for this, it didn't happen in previous versions only in this version that it happens

SrMonsterYT avatar Feb 07 '24 18:02 SrMonsterYT

[21:58:18 WARN]: [/127.0.0.1:50217|SrMonsterYT] -> UpstreamBridge - A decoder exception has been thrown: net.md_5.bungee.protocol.FastDecoderException: Error decoding packet class ServerboundResourcePackPacket with contents: +-------------------------------------------------+ | 0 1 2 3 4 5 6 7 8 9 a b c d e f | +--------+-------------------------------------------------+----------------+ |00000000| 19 04 6e 75 6c 6c 03 |..null. | +--------+-------------------------------------------------+----------------+ Caused by: net.md_5.bungee.protocol.BadPacketException: Packet GAME:TO_SERVER/25 (ServerboundResourcePackPacket) larger than expected, extra bytes: 5

I did a test on the local server and the problem is solved when I set the itemadder option:

apply-on-join: false

how to reproduce the problem just use BungeePackFix in version 1.1.5, and enter the server in 1.8, using viaversion, the server is in version 1.20.1

i put the delay of 3 in the itemadder settings, i can enter but when the texture loads the error occurs.

ItemsAdder -> config: delay-ticks: 3

SrMonsterYT avatar Feb 11 '24 01:02 SrMonsterYT

@LoneDev6 it looks like the problem is in BungeePackFix and viaversion, I just saw more reports, and they point out that the problem is in bungeepackfix

image: https://prnt.sc/kKpmQT0v5rEY

please fix this problem

SrMonsterYT avatar Feb 15 '24 15:02 SrMonsterYT