ServerCore

ServerCore

384k Downloads

Player login causes the server to crash

Anthem4867 opened this issue ยท 5 comments

commented

Hello Wesley1808,

I encountered an issue while using ServerCore. When players with poor network connections log into the server, it causes the server to crash. I suspect this might be due to optimizations related to player login in the mod. Since my server has many mods and the server logs are incomplete, it's difficult to pinpoint the exact cause. Therefore, I would like to request an option in the configuration file to disable this specific optimization.

Thank you.

commented

Mod version: ServerCore-fabric-1.5.1+1.20.1
Server version: fabric-server-mc.1.20.1-loader.0.15.11-launcher.1.0.1
FabricAPI version: fabric-api-0.92.2+1.20.1

commented

Never seen this happen with plenty of poor connections before, so its probably a mod incompatibility. Do you have any crash reports of when this happened? You can find them in <server_directory>/crash-reports.

The logs don't really tell me all that much about what actually caused it. The optimization in question also pretty small and seems really unlikely to cause crashes, so providing a way to disable would most likely not even fix it.

commented

You could try to disable these specific optimizations to see if that fixes it (though I doubt it) through the mixinconfig file in the servercore jar.

  1. Close the server and open the jar as archive (as if its a zip file, tools like 7zip work for this)
  2. Open servercore.common.mixins.json
  3. Delete the lines "optimizations.players.PlayerListMixin", and "optimizations.players.ServerPlayerMixin",
  4. Save the file and close it (make sure it actually saves), and start the server back up again.

I assume you've also made sure this doesn't still happen without servercore installed?

commented

I checked the <server_directory>/crash-reports but did not find any crash reports there.