Page 1 of 1
[0.17.79] Error during autosave, then crash during manual save
Posted: Tue Apr 07, 2020 9:32 am
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
Re: [0.17.79] Error during autosave, then crash during manual save
Posted: Tue Apr 07, 2020 9:43 am
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.
Re: [0.17.79] Error during autosave, then crash during manual save
Posted: Tue Apr 07, 2020 9:46 am
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?
Re: [0.17.79] Error during autosave, then crash during manual save
Posted: Tue Apr 07, 2020 10:27 am
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?
Re: [0.17.79] Error during autosave, then crash during manual save
Posted: Tue Apr 07, 2020 11:12 am
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.
Re: [0.17.79] Error during autosave, then crash during manual save
Posted: Wed Apr 08, 2020 1:37 am
by teelo
Can you add the games personal memory usage to the logfile? Rule out external factors?
Re: [0.17.79] Error during autosave, then crash during manual save
Posted: Tue Jun 02, 2020 2:19 pm
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.