[16.16] Slow memory leak on consecutive reloading of game
Posted: Wed Jan 17, 2018 3:28 pm
Hi, I've noticed a small memory leak when consecutively reloading the game from making changes that require game restart (enable/disable mod, change mod or game setting that require restart, etc). I do have a large mod list so expect that the game will use a lot. After the game restarting enough times from my doing this, Windows will pop a message about low memory and how it will close programs as needed. Eventually, after several more times of having the game reload, Factorio will close out / CTD during game load. Attached log file from when it did this. I expect this would be a low priority issue, but wanted to report it.
To give further in-depth details behind how I ran into this, I noticed a compatibility issue with some of my loaded mods and was trying to track down the exact mods causing the issues. So, I would make an adjustment in what mods were enabled or I would go into the mod options and adjust an On Startup setting, let the game reload, then would generate a new map and test for the bug. Quit map, rinse and repeat.
It does not appear that doing a full quit/exit from the game fixes this, either, for some reason. In retesting for this and monitoring memory usage in Task Manager, I caused Factorio to restart several times (noting each time that total memory usage did rise) until I started getting the warning from Windows. RAM usage started off around 11.6 GB peak during game load (ie, after restarting computer) and was over 14-15 GB peak (after the several consecutive restarts of Factorio) when Windows started prompting the warnings. I then completely closed out Factorio and relaunched it from Steam, to still see the memory usage at the 14+ GB peak levels. Total physical RAM is 16 GB.
To give further in-depth details behind how I ran into this, I noticed a compatibility issue with some of my loaded mods and was trying to track down the exact mods causing the issues. So, I would make an adjustment in what mods were enabled or I would go into the mod options and adjust an On Startup setting, let the game reload, then would generate a new map and test for the bug. Quit map, rinse and repeat.
It does not appear that doing a full quit/exit from the game fixes this, either, for some reason. In retesting for this and monitoring memory usage in Task Manager, I caused Factorio to restart several times (noting each time that total memory usage did rise) until I started getting the warning from Windows. RAM usage started off around 11.6 GB peak during game load (ie, after restarting computer) and was over 14-15 GB peak (after the several consecutive restarts of Factorio) when Windows started prompting the warnings. I then completely closed out Factorio and relaunched it from Steam, to still see the memory usage at the 14+ GB peak levels. Total physical RAM is 16 GB.