Page 1 of 1
CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289
Posted: Sun Aug 20, 2023 5:42 pm
by Neiwin
Hi,
I get from time to times a CTD if the game make a Auto Save. With some MOD´s, I´m not sure if it also comes in the not modded game. SV 9.01.04 all DLC activated.

- CTD on auto save.png (16.74 KiB) Viewed 1504 times
Best Regards
Neiwin
Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289
Posted: Mon Aug 21, 2023 3:43 pm
by David
Please provide the save game and we will look into it.
Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289
Posted: Mon Aug 21, 2023 5:00 pm
by Neiwin
This is one of the corrupted save file. SV 9.1.04 MOD: GLOBCAP V1
But it happen also with others MODs.
Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289
Posted: Tue Aug 22, 2023 8:03 am
by David
It is due your computer not having insufficient memory to run the compression function to compress the game data before save the game. Do you have a save game file before the corrupted one? The dev team would like to look at it and see if there is any way to improve it to reduce the memory usage.
Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289
Posted: Tue Aug 22, 2023 8:27 am
by Neiwin
Hi thank you for testing. The save file is to large (~28MB) for an attachment.
I have round about 9GB not used RAM while the game is running. This is 10 times the space for the entire game.
Best regards
Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289
Posted: Wed Aug 23, 2023 8:27 am
by David
I'd like to update you that the programmer has been looking into this and working on a solution.
Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289
Posted: Thu Aug 24, 2023 2:28 am
by Neiwin
Nice support, thank you.
Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289
Posted: Fri Aug 25, 2023 8:44 am
by David
The dev team has updated me that the error occurred when the compression function (which use a ZIP library) needs to allocate a continuous block of memory in order to compresses data before saving it into a savegame file.
While your computer shows that it has several GB of memory, the memory is fragmented and thus it is unable to allocate a continuous memory block large enough for the compression process (could range from tens of MB to a couple hundred MB depending on your game data size).
In general, only games that use MODs with a huge product variety and a large number of AI competitors and cities may experience this kind of memory error.
The good news is that the dev team told me that they will try to work on a new method to mitigate this in the next major update v10.0.
Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289
Posted: Fri Aug 25, 2023 6:44 pm
by Neiwin
Thank you, yes I have save files with near 80MB modded and 15 cities.