GeyserMC / Geyser

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

Sending a large number of data packets to the player's IP #4918

Open enderLuoxh opened 1 month ago

enderLuoxh commented 1 month ago

Describe the bug

Regularly, even after restarting the server, Geyser will continue to send data packets to a random player IP until the network is full, and then the Bedrock version player will start to experience latency spikes and disconnections

To Reproduce

Geyser did not report any errors. The occurrence of this problem is uncertain, but it occurs dozens of times within a day, which has a significant impact on server gameplay

Expected behaviour

Stop Geyser from sending a large number of data packets to a certain player, causing all players in the Bedrock version to disconnect

Screenshots / Videos

No response

Server Version and Plugins

Current Purpur Version: 1.21-2275-82ccc76 (MC: 1.21)*

Geyser Dump

https://dump.geysermc.org/Wzbq1f7nIJ5ipKdZ6AeERyRWxlT7doPu

Geyser Version

Geyser version 2.4.0-b626 (git-master-45f96a0) (Java: 1.21, Bedrock: 1.20.80/1.20.81 - 1.21.2/1.21.3)

Minecraft: Bedrock Edition Device/Version

1.21.2

Additional Context

No response

oldsheep0205 commented 1 month ago

I have the same issue, once bedrock player logged into server, only 3 minutes later the whole server will crash

enderLuoxh commented 1 month ago

I am a server, but due to strange external transmission, the entire server network freezes and all players disconnect

oldsheep0205 commented 1 month ago

when some bedrock players join the game, the backstage will show "resending teleport x " all the time, then the server crashed

onebeastchris commented 1 month ago

What's the underlying data that makes you think that Geyser is sending huge amounts of packets? Are you looking at packet logs? Please provide more information - so far, there's little information for us to start diagnosing this issue.

enderLuoxh commented 1 month ago

I'm very sorry, here is the task manager and detailed network connection data of my computer when geyser was offline. You can see a large number of udp connections. Then I reloaded geyser, and the problem temporarily disappeared. It can be ruled out that it was caused by too many players, because all players had already been disconnected due to high latency when geyser was offline. There were no errors reported in the geyser backend

Image_1722468483214

Image_1722468483214

Image_1722468502306

Image_1722468497917

enderLuoxh commented 1 month ago

Screenshot_20240801_222032_com microsoft rdc androidx Screenshot_20240801_222036_com microsoft rdc androidx The above two pictures are the error logs I just found when geyser was sending a large number of packets

Kas-tle commented 1 month ago

Please take a pcap with wireshark while the issue is happening and provide that. Just knowing there is some amount of network traffic tells us very little.

onebeastchris commented 2 weeks ago

Following up on this - is this still occurring? If it is, please provide said pcap file :)