[2.0.23] Crash when trying to save / when server is autosaving

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
User avatar
AndrzejL.eu
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Nov 07, 2024 2:50 pm
Contact:

[2.0.23] Crash when trying to save / when server is autosaving

Post by AndrzejL.eu »

Hello,

After today's big (600 megs) update of the game (factorio server files were updated and service was restarted) and playing for a couple hours (yes the problem occurred few hours after the update) I was in the middle of setting up an array of assembly machines and I noticed the usual autosave green progress bar and instead of going away as usual after a second or two it stopped and then I got a message that server was not responding and another green progress bar appeared.

Next the game asked me to save the file but when the "Save file" window popped up - the game crashed.
12-02-2024, 17-40-46.png
12-02-2024, 17-40-46.png (42.72 KiB) Viewed 189 times
Current and previous log + dump file are attached.

When I restarted the game I have noticed that I was unable to load the save I tried to create prior to crash.

Game created a unusable Server.tmp.zip (attached) which was gave error when I tried to load it from the local saves.
12-02-2024, 17-42-50.png
12-02-2024, 17-42-50.png (21.67 KiB) Viewed 189 times
When I tried connecting to the server (Debian 12 virtual machine - headless / command line only - fully upgraded and working fine till this very morning) it refused:
12-02-2024, 17-43-40.png
12-02-2024, 17-43-40.png (14.44 KiB) Viewed 189 times
When I rebooted the server the status of the service was:
12-02-2024, 17-44-20.png
12-02-2024, 17-44-20.png (508.62 KiB) Viewed 189 times
I have noticed that the latest server autosave file (attached) has the .tmp.zip extension as well.
12-02-2024, 17-44-45.png
12-02-2024, 17-44-45.png (30.12 KiB) Viewed 189 times
After removing the autosave "_autosave58.tmp.zip" from the server and restarting factorio service game was back online. I lost about 5 minutes of gameplay which is not much BUT the problem re-occurred again during next autosave which basically did the same thing, and then again which is why I am reporting this bug.

What else could I add... Game client is on Windows 11 24H2, its fully upgraded - its the steam version.
Server is a virtual machine (based in Proxmox) and its fully updated Debian 12 with 2 cores and 4 gigs of ram allocated. Till this morning I never experienced a problem and I've spend 200+ hours in game (I know its not a lot lot but its quite a bit).

Oh I forgot to add - no mods are in use.

Please do not hesitate to ask for more details.

Thank you in advance for all help provided.

I apologise in advance for any typos or unclear statements.

Kindest regards.

AndrzejL.eu
Attachments
factorio-current.log
(6.92 KiB) Downloaded 6 times
factorio-previous.log
(6.92 KiB) Downloaded 6 times
factorio-dump-previous.dmp
(1012.85 KiB) Downloaded 4 times
Last edited by AndrzejL.eu on Mon Dec 02, 2024 7:21 pm, edited 1 time in total.
robot256
Filter Inserter
Filter Inserter
Posts: 948
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.23] Crash when trying to save / when server is autosaving

Post by robot256 »

Sounds like the save file got corrupted at some point after updating. The consistency checks run immediately after updating, so I would expect the 2.0.22 file is not corrupted.

Do you have a backup of the save that worked in 2.0.22? Do you have any of the previous autosaves from 2.0.23 that load correctly, or are they also corrupted?
User avatar
AndrzejL.eu
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Nov 07, 2024 2:50 pm
Contact:

Re: [2.0.23] Crash when trying to save / when server is autosaving

Post by AndrzejL.eu »

robot256 wrote: Mon Dec 02, 2024 5:55 pm Sounds like the save file got corrupted at some point after updating. The consistency checks run immediately after updating, so I would expect the 2.0.22 file is not corrupted.

Do you have a backup of the save that worked in 2.0.22? Do you have any of the previous autosaves from 2.0.23 that load correctly, or are they also corrupted?
Previous file (prior to removing the .tmp.zip file loaded just fine, and I left the game running for 10 minutes - it did 2 autosaves in the meanwhile without crashing.
12-02-2024, 18-03-46.png
12-02-2024, 18-03-46.png (9.19 KiB) Viewed 165 times
I tried adding the array of assembly machines just like before and:
12-02-2024, 18-07-39.png
12-02-2024, 18-07-39.png (81.02 KiB) Viewed 162 times
The game crashed.

I wonder if its ANY building after the current save that will cause issue OR is it just an array of assembly machines that is supposed to build assembly machines...

I have tons of the _autosave files. I am saving 200 iterations every 5 minutes

Attaching previous saves.

I have updated the game around 14:00 (2 pm.)
12-02-2024, 18-37-22.png
12-02-2024, 18-37-22.png (7.84 KiB) Viewed 156 times
The saves are listed as:
12-02-2024, 18-20-11.png
12-02-2024, 18-20-11.png (7.65 KiB) Viewed 165 times
So 34 was way before the update, then there was Server.zip (original save file) and it was probably first .23 save file. Then I have autosave 35 which is probably first autosave after update.

Not sure what to do but I am going to try saving the latest working file to local machine, add the array, save the file and then upload it to the server - see what happens...

Kindest regards.

AndrzejL.eu
Last edited by AndrzejL.eu on Tue Dec 03, 2024 12:54 am, edited 4 times in total.
User avatar
AndrzejL.eu
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Nov 07, 2024 2:50 pm
Contact:

Re: [2.0.23] Crash when trying to save / when server is autosaving

Post by AndrzejL.eu »

Added array of assembly machines onto the server:
12-02-2024, 18-38-41.png
12-02-2024, 18-38-41.png (1.04 MiB) Viewed 154 times
The game crashed while autosaving:
12-02-2024, 18-38-11.png
12-02-2024, 18-38-11.png (105.99 KiB) Viewed 154 times
Mega curious... I will clear the server-side saves, I will save the file locally in the windows game again and try uploading that to the server...

Wish me luck.

Kindest regards.

AndrzejL.eu
Loewchen
Global Moderator
Global Moderator
Posts: 9351
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.23] Crash when trying to save / when server is autosaving

Post by Loewchen »

The logs are not the ones with actual crashes, so if you still have those or it happens again that could be of interest. The rest is just fallout of the crash itself.
User avatar
AndrzejL.eu
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Nov 07, 2024 2:50 pm
Contact:

Re: [2.0.23] Crash when trying to save / when server is autosaving

Post by AndrzejL.eu »

Yeah that save file is corrupted...
12-02-2024, 18-45-35.png
12-02-2024, 18-45-35.png (426.72 KiB) Viewed 151 times
While trying to save the file locally...

Gona try and find a previous version of a save that works...

Its going to be a chore...

Regards.

AndrzejL.eu
User avatar
AndrzejL.eu
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Nov 07, 2024 2:50 pm
Contact:

Re: [2.0.23] Crash when trying to save / when server is autosaving

Post by AndrzejL.eu »

Loewchen wrote: Mon Dec 02, 2024 6:44 pm The logs are not the ones with actual crashes, so if you still have those or it happens again that could be of interest. The rest is just fallout of the crash itself.
Which logs would be of interest?

Kindest regards.

AndrzejL.eu
Loewchen
Global Moderator
Global Moderator
Posts: 9351
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.23] Crash when trying to save / when server is autosaving

Post by Loewchen »

AndrzejL.eu wrote: Mon Dec 02, 2024 6:55 pm Which logs would be of interest?
If the corruption happens because of a crash, a log of that crash would be of interest. If the crash happens because of a corruption, only a reliable method to create the corruption in the first place would be of interest.
User avatar
AndrzejL.eu
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Nov 07, 2024 2:50 pm
Contact:

Re: [2.0.23] Crash when trying to save / when server is autosaving

Post by AndrzejL.eu »

Loewchen wrote: Mon Dec 02, 2024 7:05 pm
AndrzejL.eu wrote: Mon Dec 02, 2024 6:55 pm Which logs would be of interest?
If the corruption happens because of a crash, a log of that crash would be of interest. If the crash happens because of a corruption, only a reliable method to create the corruption in the first place would be of interest.
I am afraid I don't have those logs... The only logs I had were the ones attached to the original post. Sorry...

Kindest regards.

AndrzejL.eu
User avatar
AndrzejL.eu
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Nov 07, 2024 2:50 pm
Contact:

Re: [2.0.23] Crash when trying to save / when server is autosaving

Post by AndrzejL.eu »

Ok, found a "not corrupted" save and replaced the server saves with this file. Not lost much. I am just glad its back to working.

Kindest regards.

AndrzejL.eu
Post Reply

Return to “Pending”