[14.22] Crash on autosave

Things that we don't consider worth fixing at this moment.
Yinan
Fast Inserter
Fast Inserter
Posts: 131
Joined: Sun Feb 14, 2016 2:40 pm
Contact:

[14.22] Crash on autosave

Post by Yinan »

Hi,

while playing the current version, the game crashed on autosave. The autosave-Information appeared, but nothing happened for several seconds (around 10 to 15). Then the error dialog appeared.
I attached the log file.

the auto_save created a file called "_autosave5.tmp", which seems to be the current autosave-file and the error-message I get when selecting it for Game-Load is:
"Result too large".
But that might just be because it's a temporary file and the autosave itself failed, considering that that file is not as large as the normal autosave-files (~4 MB normally, ~1MB is the temp autosave file).
Attachments
factorio-current.log
(17.76 KiB) Downloaded 112 times
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [14.22] Crash on autosave

Post by posila »

I am afraid the game ran out of memory. You can lower graphics quality in graphics options to free some space used by sprites, but it will start crashing again as you explore more of the map.

The issue is processes are limited to 2GB of RAM on 32bit Windows.
Yinan
Fast Inserter
Fast Inserter
Posts: 131
Joined: Sun Feb 14, 2016 2:40 pm
Contact:

Re: [14.22] Crash on autosave

Post by Yinan »

Well, interestingly, I'm still playing the game. I just loaded the previous autosave and have now been playing for 2 more hours without any more crashes. Didn't have any problem with subsequent autosaves.

It seems to me as there is some kind of issue with the autosave which rarely fills up the memory needlessly.
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [14.22] Crash on autosave

Post by posila »

Autosave allocates 20 MB buffer to which it captures part of game state before writing to disk in order to write the save to disk as fast as possible.
It is unusually big allocation (compared to rest of the game) so it is most common place to crash when the game is running out of memory.

It is possible there is some small memory leak (we will investigate), it is also possible the memory got so fragmented it couldn't find continuous chunk of 20MB to use.
This is one of the reasons we have decided release only 64bit builds in future updates. I am sorry. https://www.factorio.com/blog/post/fff-158
Rseding91
Factorio Staff
Factorio Staff
Posts: 15881
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [14.22] Crash on autosave

Post by Rseding91 »

posila wrote:Autosave allocates 20 MB buffer to which it captures part of game state before writing to disk in order to write the save to disk as fast as possible.
It is unusually big allocation (compared to rest of the game) so it is most common place to crash when the game is running out of memory.

It is possible there is some small memory leak (we will investigate), it is also possible the memory got so fragmented it couldn't find continuous chunk of 20MB to use.
This is one of the reasons we have decided release only 64bit builds in future updates. I am sorry. https://www.factorio.com/blog/post/fff-158
Note: it allocates the 20 MB in 1 MB chunks so fragmentation shouldn't be an issue.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Won't fix.”