CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289

Technical support requests for Capitalism Lab
Post Reply
Neiwin
Translation Contributor
Translation Contributor
Posts: 94
Joined: Sun Aug 06, 2023 8:12 pm

CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289

Post 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
CTD on auto save.png (16.74 KiB) Viewed 868 times
Best Regards
Neiwin
User avatar
David
Community and Marketing Manager at Enlight
Posts: 9356
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 17 times
Been thanked: 48 times

Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289

Post by David »

Please provide the save game and we will look into it.
Neiwin
Translation Contributor
Translation Contributor
Posts: 94
Joined: Sun Aug 06, 2023 8:12 pm

Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289

Post by Neiwin »

This is one of the corrupted save file. SV 9.1.04 MOD: GLOBCAP V1
But it happen also with others MODs.
AUTO.CTD.zip
(10.13 KiB) Downloaded 47 times
User avatar
David
Community and Marketing Manager at Enlight
Posts: 9356
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 17 times
Been thanked: 48 times

Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289

Post 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.
Neiwin
Translation Contributor
Translation Contributor
Posts: 94
Joined: Sun Aug 06, 2023 8:12 pm

Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289

Post 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
User avatar
David
Community and Marketing Manager at Enlight
Posts: 9356
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 17 times
Been thanked: 48 times

Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289

Post by David »

I'd like to update you that the programmer has been looking into this and working on a solution.
Neiwin
Translation Contributor
Translation Contributor
Posts: 94
Joined: Sun Aug 06, 2023 8:12 pm

Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289

Post by Neiwin »

Nice support, thank you.
User avatar
David
Community and Marketing Manager at Enlight
Posts: 9356
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 17 times
Been thanked: 48 times

Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289

Post 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.
Neiwin
Translation Contributor
Translation Contributor
Posts: 94
Joined: Sun Aug 06, 2023 8:12 pm

Re: CTD With Error on File : C:\CLsrc\ilib\Mem.cpp Line : 289

Post by Neiwin »

Thank you, yes I have save files with near 80MB modded and 15 cities.
Post Reply