Jump to content

Server fails to shut down correctly when attempting to send servermsg to a disconnected player


dgl

Recommended Posts

This bug is reproducible but requires a very precise timing to pull off. I have a script that sends restart countdown servermsgs, including sending one final "Restarting NOW!" message right before sysytemd service is stopped. During last game session, server failed to shut down cleanly and persist server state, partially wiping player progress. After looking at the logs and some lucky guessing I was able to pinpoint the issue to that one final servermsg. Here's how to reproduce this:

1. Create a script that sleeps for a few seconds, sends servermsg and immediately terminates the server.

2. Log into the game.

3. Execute the script.

4. Quit the game immediately before servermsg.

5. My guess is that servermsg is either racing with shutdown, or attempts to message a disconnected player that did not yet have time to fully close the client session.

 

hs_err_pid15877.log systemd.log

Edited by dgl
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...