retrooper / packetevents

Precision meets performance—a powerful tool for mastering Minecraft packet manipulation with speed and finesse.
GNU General Public License v3.0
555 stars 150 forks source link

PacketEvents 2.0 failed to inject randomly #1063

Open SergioK29 opened 2 days ago

SergioK29 commented 2 days ago

Describe the bug Randomly players while joining will get kicked with "PacketEvents 2.0 failed to inject"

Software brand Paper 1.20.4, paper 1.21 (this issue has been around a long time, since 2024-02-10 until present day)

Plugins Protocollib, vulcan, grim

How To Reproduce Randomly players will get disconnected when joining, its quite rare so hard to replicate, it has happened 191 times on my server out of ~150,000 player joins, here is a dump of all https://pastebin.com/GqBE0v0z

I assume this is because there is some kind of conflict/data race between protocollib, the shaded packet events in grim and the old shaded packet events in vulcan?

Expected behavior Shouldn't kick them

Additional context What causes this error? Is there some way to make packet events more fault tolerant rather than just kicking?, maybe some debug flag to println that I could enable and if it happens report back the debug data?

LilPhyziX commented 2 days ago

Your having the same issue, eh? It's not rare for me though. It happens every time anyone tries to join.

FaultyFunctions commented 1 day ago

I am also getting this error every single time on 2.6.0 with Purpur 1.21.1.

FaultyFunctions commented 1 day ago

Actually updating Better Chat Bubbles to the latest version fixed this for me just now.

booky10 commented 1 day ago

@SergioK29 are there any other errors? do you have any other plugins installed? also see the comments above, they may solve your issue