CloudburstMC / Nukkit

Cloudburst Nukkit - Nuclear-Powered Minecraft: Bedrock Edition Server Software
https://cloudburstmc.org
GNU General Public License v3.0
1.22k stars 419 forks source link

Server appears to hang but can send data to players #798

Closed imjack closed 5 years ago

imjack commented 5 years ago

Expected Behavior

The server should run without randomly hanging/stalling.

Actual Behavior

The server will randomly stop accepting new player connections, and the player will feel a "lag" effect and their messages will be delayed 30+ seconds but the client will not disconnect. If the server console uses /tell or /say the player will get the packet fine. Plugins such as pocketvote can continue to poll the API.

Steps to Reproduce

We can't find the cause but will happen randomly but usually will happen with 50+ players online.

We feel this might be an exploit, so in addition to a person finding the cause or releasing the exploit I will be happy to put a bug bounty of £50 to reward the person or a chosen charity

Debug information

Checklist:

Creeperface01 commented 5 years ago

Maybe try to get some thread dump?

imjack commented 5 years ago

Here is a dump during the issue https://gist.github.com/imjack/e21a1f82d512ff7088dde44b7f4b247d

hteppl commented 5 years ago

Same problem!

imjack commented 5 years ago

Same problem!

How many players are online during the error?

hteppl commented 5 years ago

I can't find the cause too. This bug comes with 10-15 players online.

Creeperface01 commented 5 years ago

What plugins do you use?

hteppl commented 5 years ago

What plugins do you use?

MobPlugin, DbLib and my plugin for anarchy which use sql connection.

hteppl commented 5 years ago

Mmm

imjack commented 5 years ago

Appears to be fixed on the new raknet branch. Thanks to @SupremeMortal