Auto-save problems

Describe your experience with the latest version of FreeOrion to help us improve it.
Forum rules
Always mention the exact version of FreeOrion you are testing.

When reporting an issue regarding the AI, if possible provide the relevant AI log file and a save game file that demonstrates the issue.
Message
Author
defaultuser
Vacuum Dragon
Posts: 576
Joined: Wed Aug 26, 2015 6:15 pm

Auto-save problems

#1 Post by defaultuser » Mon Dec 18, 2017 9:24 pm

I'm a couple revs back, 12/04 test. Several games have had a problem where auto-save doesn't work at all for that game. That's a problem because that means that Continue doesn't either. So if you close the game without making a specific save, it's all lost.

There doesn't seem to be any pattern. I can resign from a game, go to the Start screen and set up another game without closing the application, and have the new game not saving correctly. No error messages on the console.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12284
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Auto-save problems

#2 Post by Geoff the Medio » Mon Dec 18, 2017 9:39 pm

defaultuser wrote:Several games have had a problem where auto-save doesn't work at all for that game.
What does "doesn't work at all" mean?

defaultuser
Vacuum Dragon
Posts: 576
Joined: Wed Aug 26, 2015 6:15 pm

Re: Auto-save problems

#3 Post by defaultuser » Mon Dec 18, 2017 9:58 pm

Geoff the Medio wrote:
defaultuser wrote:Several games have had a problem where auto-save doesn't work at all for that game.
What does "doesn't work at all" mean?
It doesn't create any save files. Here's a screenshot from the game I started today. As you can see, the files in the auto directory are from the previous game. Continue will fail, something about the save file. I'm guessing that it tries to match the most recent auto file against current game and can't.

I didn't see any other reports of similar problems.
FOAS.jpg
FOAS.jpg (124.72 KiB) Viewed 431 times

defaultuser
Vacuum Dragon
Posts: 576
Joined: Wed Aug 26, 2015 6:15 pm

Re: Auto-save problems

#4 Post by defaultuser » Mon Dec 18, 2017 10:03 pm

Regular save isn't working for this game either. That is, I go through the process, but no save file is in the save directory. That means that I can't send a save file. I will try changing the settings from/to text save files (not sure which it is now).

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12284
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Auto-save problems

#5 Post by Geoff the Medio » Mon Dec 18, 2017 10:27 pm

Please attach a freeoriond.log from immediately after trying and failing to save manually.

If you look in the saves directory in the OS file browser, is a save file present? It probably won't show up in the game if it's not a valid save file, or if it can't read the valid save file due to not being able to allocate enough memory.

It may be that it's saving successfully, but just not able to load the save, so there's no error message about the save failing, but it doesn't show the save it can't load in the saves list. Manually switching to binary saves should resolve that.

defaultuser
Vacuum Dragon
Posts: 576
Joined: Wed Aug 26, 2015 6:15 pm

Re: Auto-save problems

#6 Post by defaultuser » Mon Dec 18, 2017 11:06 pm

No save files are being created. I tried switching to binary and that didn't make any difference. The log file doesn't seem to update when I try a save. I just did one, the but log file still has a timestamp from earlier. It's also too big to attach. I will edit one down to the last bit.

defaultuser
Vacuum Dragon
Posts: 576
Joined: Wed Aug 26, 2015 6:15 pm

Re: Auto-save problems

#7 Post by defaultuser » Mon Dec 18, 2017 11:12 pm

Here's the last few turns of the current game. I tried manual saves after each turn.
Attachments
FOlogd.txt
(247.2 KiB) Downloaded 11 times

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12284
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Auto-save problems

#8 Post by Geoff the Medio » Mon Dec 18, 2017 11:20 pm

Also attach the client log from immediately after trying to save then...

defaultuser
Vacuum Dragon
Posts: 576
Joined: Wed Aug 26, 2015 6:15 pm

Re: Auto-save problems

#9 Post by defaultuser » Mon Dec 18, 2017 11:58 pm

Geoff the Medio wrote:Also attach the client log from immediately after trying to save then...
Ok. Had to cut it down again. All it says on all the saves, auto or user, is "Adding pending save to queue".
Attachments
freeorion.log
(275.13 KiB) Downloaded 9 times

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12284
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Auto-save problems

#10 Post by Geoff the Medio » Tue Dec 19, 2017 12:53 am

Set the client and server general log levels to trace, then try to initiate a save again, and post the logs.

Can you save if you start a new game, just not from a particular save file when trying to save it again?

defaultuser
Vacuum Dragon
Posts: 576
Joined: Wed Aug 26, 2015 6:15 pm

Re: Auto-save problems

#11 Post by defaultuser » Tue Dec 19, 2017 5:45 am

Geoff the Medio wrote:Set the client and server general log levels to trace, then try to initiate a save again, and post the logs.

Can you save if you start a new game, just not from a particular save file when trying to save it again?
I turned on tracing and attached log files from where it indicated that trace had started.

I'm not sure I understand the second question. Starting a new game is where it seems to happen. It's possible that starting a new one would start saving again, but then it might take a while for it to reoccur. It would of course end this game because I don't have a save for it. That's not that big of a deal.

Had a problem with one of the log files, I will work on its size and get them posted.

defaultuser
Vacuum Dragon
Posts: 576
Joined: Wed Aug 26, 2015 6:15 pm

Re: Auto-save problems

#12 Post by defaultuser » Tue Dec 19, 2017 6:02 am

The "d" log file is huge, and I don't know how much is useful in that. I'll start with the other and you can let me know about the other and where to cut it if it's needed.
Attachments
freeoriontrace.log
(171.98 KiB) Downloaded 7 times

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12284
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Auto-save problems

#13 Post by Geoff the Medio » Tue Dec 19, 2017 6:56 am

defaultuser wrote:The "d" log file is huge, and I don't know how much is useful in that.
Not much, but some of it. I'm looking for lines containing "(ServerFSM) WaitingForTurnEndIdle.SaveGameRequest"

defaultuser
Vacuum Dragon
Posts: 576
Joined: Wed Aug 26, 2015 6:15 pm

Re: Auto-save problems

#14 Post by defaultuser » Tue Dec 19, 2017 3:51 pm

Geoff the Medio wrote:
defaultuser wrote:The "d" log file is huge, and I don't know how much is useful in that.
Not much, but some of it. I'm looking for lines containing "(ServerFSM) WaitingForTurnEndIdle.SaveGameRequest"
Ok, I'll look at that when I get home tonight.

defaultuser
Vacuum Dragon
Posts: 576
Joined: Wed Aug 26, 2015 6:15 pm

Re: Auto-save problems

#15 Post by defaultuser » Wed Dec 20, 2017 12:25 am

Geoff the Medio wrote:
defaultuser wrote:The "d" log file is huge, and I don't know how much is useful in that.
Not much, but some of it. I'm looking for lines containing "(ServerFSM) WaitingForTurnEndIdle.SaveGameRequest"
Not finding that in freeoriond.log.

Post Reply