Constant crashes due to running out of memory

Issue Type (Required):

Other

Issue Description (Required):

Game crashes with an ‘out of memory’ error message consistently after launching the game, often before I’m able to reach the mission terminal, much less queue for a mission. I’ve tried verifying game files, and everything validates without issue. Closing all background applications likewise has done nothing, and checking task manage while the game is running shows that I’m not out of memory. Restarting my PC also does not appear to help. In prior patches I’d run mods and occasionally run into memory issues, but on the current patch I haven’t used them and am running into problems far more frequently.

The game is quite literally unplayable, as it’s crashing nigh on every launch. I’ve pasted the crash message below, there are a bunch more messages that I haven’t saved, but they all had the same things, heap_allocator, out of memory, etc.

GUID: a0f29bc3-02c5-43c7-845a-ad61db1911b3
Log File:
Info Type:

[Engine Error]: Commiting heap range failed for ‘heap_allocator’. Out of memory? error: 1455, reserved: 4294967296, required: 662700032, size: 2097152. Test allocation succeded? false

At D:\a\d\rel_engine_darktide\release\rel_2024_08_20_Patch1.5.0x\runtime\foundation\memory\heap_allocator.cpp:191 in function stingray::HeapAllocator::resize_heap


[PC] Do You Use Mods? (Optional):

Yes, and I’ve tried disabling them

Reproduction Rate (Required):

Constant (100%)

Platform (Required):

PC - Steam

This is occurring to me too. Sometimes I can get into missions but sometimes not.

1 Like

try adding this to your steam launch properties if you dont have it already

–lua-heap-mb-size 2048

1 Like

This doesn’t appear to be the lua heap, but the actual system mem heap allocator (likely paging file from err #).

1 Like

How much RAM do you actually have?
Did you fiddle with your Windows swap file? Leave it to System Managed.

If it’s 1455, paging file is too small . System Error Codes (1300-1699) (WinError.h) - Win32 apps | Microsoft Learn

ERROR_COMMITMENT_LIMIT
1455 (0x5AF)
The paging file is too small for this operation to complete.

It may also be a good idea to run Mem Test: Press Windows key + R then type in mdsched.exe hit OK then restart the device. (takes time)

2 Likes

I would follow these recommendations.

The info in your log says that you should have memory. But of some reason there isn’t any left that fits the criteria (2 mb) according to the system and windows will use the page file in this case.

Since the error is page file related the best thing is to first confirm if you still get this when you let windows manage your page files.

2 Likes

So, I have fixed the issue, it was an issue with my graphics drivers. Reinstalling them and rebooting my PC has entirely removed the memory problems.

For the record I have 16 gigs of ram, and am using an Nvidia GTX 1080 Ti. I just reinstalled the drivers through the geforce experience app and rebooted, in case anyone else is experiencing the same/similar issues.

2 Likes

PSA: GFE is now deprecated, and the nVidia App is now out of beta and releasing on time, well it’s out already.

2 Likes