Allocation Error Mem.cpp Line 289

Technical support requests for Capitalism Lab
Post Reply
SnowXy0
Level 2 user
Posts: 27
Joined: Sun Jan 25, 2015 1:31 am

Allocation Error Mem.cpp Line 289

Post by SnowXy0 »

Image
Attachments
error file 1-2.JPG
error file 1-2.JPG (26.94 KiB) Viewed 1605 times
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10968
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 131 times
Been thanked: 409 times

Re: Allocation Error Mem.cpp Line 289

Post by David »

We will investigate the problem.

Could you please provide us with your save game file and let us know the following?
1) Which version of Capitalism Lab you are using. You can see the version number on the top-right of the main menu.
2) The exact steps for triggering the bug with the save game
3) If your savegame uses a MOD, please let us know the name of the MOD and the MOD's version number.

You can find save game files of Capitalism Lab from the C:\Users\<your user name>\Documents\My Games\Capitalism Lab\SAVE

You may provide us with your save game file by posting it here on the forum as a ZIP file attachment or emailing the save game file to us at info@enlight.com.

If your save game file is too large for attachment, you may check out this post about how to send us large files: https://www.enlight.com/forum/viewtopic.php?f=13&t=2473
SnowXy0
Level 2 user
Posts: 27
Joined: Sun Jan 25, 2015 1:31 am

Re: Allocation Error Mem.cpp Line 289

Post by SnowXy0 »

Google Drive link for save

https://drive.google.com/file/d/1xOtKYQ ... share_link

1. Version 8.1.20 Release
2. Not sure, but it seems to happen a few minutes after loading
3. Real World V 11.5
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10968
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 131 times
Been thanked: 409 times

Re: Allocation Error Mem.cpp Line 289

Post by David »

SnowXy0 wrote: Thu Feb 09, 2023 5:46 pm Google Drive link for save

https://drive.google.com/file/d/1xOtKYQ ... share_link

1. Version 8.1.20 Release
2. Not sure, but it seems to happen a few minutes after loading
3. Real World V 11.5
I can't download it. I've requested access to the file.
SnowXy0
Level 2 user
Posts: 27
Joined: Sun Jan 25, 2015 1:31 am

Re: Allocation Error Mem.cpp Line 289

Post by SnowXy0 »

User avatar
David
Community and Marketing Manager at Enlight
Posts: 10968
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 131 times
Been thanked: 409 times

Re: Allocation Error Mem.cpp Line 289

Post by David »

The programmer has investigated the problem and found that it was caused by insufficient memory when the game needs to expand the size of the memory block that stores the products. Your save game has over 63000 products.

Here is a more detailed explanation by the programmer:
Since the game stores the products in an array of continuous data, when the array exceeds the current size, it will need to allocate a new memory block for the increased array size. In your case, the new memory block that it needs to allocate exceeds 100MB. When your computer does not have a memory block of 100MB available (the memory can be fragmented and does not have a single block of 100MB memory free even though the total memory free may exceeds 1GB), it will fail the memory allocation request and thus causing the error.

The programmer has done some tweaking on this and hopefully it will improve it a bit. You may download the latest patch v8.1.22 with this improvement from viewtopic.php?f=7&t=8845

You may also consider adding more memory to your computer. Here is an article for your reference: https://www.pcworld.com/article/422901/ ... ur-pc.html

Alternatively, you may start a new game next time with fewer cities, it will reduce the memory usage.
Post Reply