[0.15.32] Idle server holds unsaved progress in memory

This subforum contains all the issues which we already resolved.
Madoushi90
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Aug 24, 2017 2:45 am
Contact:

[0.15.32] Idle server holds unsaved progress in memory

Post by Madoushi90 »

tl;dr: Main save file should be written when last player logs off, so that idle server is not holding unsaved progress in memory.

I've noticed some problematic logic with how the multiplayer server handles the main save file. From what I've observed, the autosave timer ticks by only when someone is connected (which is clever and correct), but the main save file is only written when the server is cleanly shut down. A consequence of this is that while no one is logged in, all progress since the last autosave resides in memory, unsaved.

I ran into this problem when I came home to find my server had been reset (probably a power interruption). The latest autosave was recent, but the main save was from the last time I had cleanly stopped the server (two weeks earlier). I loaded up the latest autosave to find that the latest bit of progress was lost.

As a solution to this problem, I would suggest that the main save file be written whenever the last player logs off. That way, the server is never idle with unsaved progress in memory.
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.15.32] Idle server holds unsaved progress in memory

Post by posila »

Thanks for the report.
This should be fixed for 0.16
Post Reply

Return to “Resolved Problems and Bugs”