[0.17.79] Error during autosave, then crash during manual save

Place for things which are bugs but we have no idea how to solve them. Things related to hardware, libraries, strange setups, etc.
Post Reply
teelo
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Apr 07, 2020 9:28 am
Contact:

[0.17.79] Error during autosave, then crash during manual save

Post by teelo »

No save file because it didn't save. No mods.

Code: Select all

19901.695 Warning WriteFileGuard.cpp:57: Writing C:\Users\teelo\AppData\Roaming\Factorio\saves\_autosave2.zip failed; previous version (if any) should still be available
19901.695 Error ParallelScenarioSaver.cpp:114: Saving scenario failed: bad allocation
19915.756 Warning MemoryBitmap.cpp:145: Error writing image to C:\Users\teelo\AppData\Roaming\Factorio\temp\preview.jpg: Failed to lock bitmap: InvalidParameter.
19915.917 Warning WriteFileGuard.cpp:57: Writing C:\Users\teelo\AppData\Roaming\Factorio\saves\dfgdfgdfg.zip failed; previous version (if any) should still be available
19915.918 Error ParallelScenarioSaver.cpp:114: Saving scenario failed: bad allocation
Attachments
factorio-current.log
(14.25 KiB) Downloaded 98 times

Zavian
Smart Inserter
Smart Inserter
Posts: 1641
Joined: Thu Mar 02, 2017 2:57 am
Contact:

Re: [0.17.79] Error during autosave, then crash during manual save

Post by Zavian »

Looks like you ran out of ram.
19949.409 Error CrashHandler.cpp:398: Unhandled exception: memory allocation of 1048656 bytes failed! RAM: 15827/16313, Page: 30441/30445.

teelo
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Apr 07, 2020 9:28 am
Contact:

Re: [0.17.79] Error during autosave, then crash during manual save

Post by teelo »

Well I'm using 6GB of my 16GB without the game running. How much does it need? Does it just endlessly memory leak until it crashes?

someone1337
Fast Inserter
Fast Inserter
Posts: 131
Joined: Wed Apr 26, 2017 11:29 pm
Contact:

Re: [0.17.79] Error during autosave, then crash during manual save

Post by someone1337 »

Factorio stores the whole game state in RAM, so if you have a huge map, or many weird mods I can picture factorio needing more than 10gb.

I never had factorio eat 6GB, but my maps are not insanely big and im on linux.

Maybe some of your Background Processes got temp. bigger?

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.17.79] Error during autosave, then crash during manual save

Post by posila »

The save loaded was tiny ... ~5 MB, so unless teelo used command to uncover large are of the map, save size is not a problem.

What I see is this: start of the game out of 16 GB of RAM, 6700 MB is used, and out of 21 GB page file, 14 GB are occupied.
At the time of crash 5.5 hours later - when allocating of 1 MB buffer failed - 15.5 GB of RAM is used, and page file is 30GB out of 30GB.

This is not only report with symptoms like this, but they are relatively rare. And so far I have not been able to reproduce it nor determine what's cause of it and how to prevent it from happening.
Also, some reports mentioned that the game was working fine for many days, one day this crash happened and kept happening until player rebooted computer and than it continued to work as previously.

teelo
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Apr 07, 2020 9:28 am
Contact:

Re: [0.17.79] Error during autosave, then crash during manual save

Post by teelo »

Can you add the games personal memory usage to the logfile? Rule out external factors?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.79] Error during autosave, then crash during manual save

Post by Rseding91 »

teelo wrote:
Wed Apr 08, 2020 1:37 am
Can you add the games personal memory usage to the logfile? Rule out external factors?
That has since been done. But even in the reports we've seen since then the game was never using a lot of RAM - something external was always doing it.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “1 / 0 magic”