[0.14.22] Dedicated Server Freeze on Screen Sleep
Posted: Mon Feb 20, 2017 5:17 am
I'm running a headless server via command line on my Mac desktop (Mavericks). This server is connected both via LAN and remotely via port forwarding. Whenever the screen goes to sleep, the clients report that the server is not responding until I wiggle the mouse to wake the screen again. In order to play for any length of time, I have to turn on Caffeine to keep the screen on.
And this isn't just when the screen goes to sleep: when I try to do anything else on the computer, the server begins freezing up intermittently, to the point where I have to restart the server to make it function again. It's like I have to keep the Terminal window focused in order for the server to continue running properly at all.
The server is not taking up any CPU under normal use, so I don't see how on earth it's being affected by things so benign as the screen turning off. It's not even going into power sleep mode: I disabled that long ago. The screen is turning off. I've had plenty of other servers running on this computer and never have any of them been affected by the screen turning off.
1. What did you do?
Nothing; I let the screen turn off on my Mac running the dedicated server.
2. What happened?
Client: "The server is not responding..." progress bar appears. When I wiggle the mouse, said bar vanishes. This happens every time.
The server doesn't report any state changes to the console log when this happens. Pressing enter in the terminal is fatal to the server, and it stops responding and can't be revived without restarting.
3. What did you expect to happen instead?
The server to NOT suddenly stop doing things when the screen turns off.
And this isn't just when the screen goes to sleep: when I try to do anything else on the computer, the server begins freezing up intermittently, to the point where I have to restart the server to make it function again. It's like I have to keep the Terminal window focused in order for the server to continue running properly at all.
The server is not taking up any CPU under normal use, so I don't see how on earth it's being affected by things so benign as the screen turning off. It's not even going into power sleep mode: I disabled that long ago. The screen is turning off. I've had plenty of other servers running on this computer and never have any of them been affected by the screen turning off.
1. What did you do?
Nothing; I let the screen turn off on my Mac running the dedicated server.
2. What happened?
Client: "The server is not responding..." progress bar appears. When I wiggle the mouse, said bar vanishes. This happens every time.
The server doesn't report any state changes to the console log when this happens. Pressing enter in the terminal is fatal to the server, and it stops responding and can't be revived without restarting.
3. What did you expect to happen instead?
The server to NOT suddenly stop doing things when the screen turns off.