Out of virtual memory

Moderator: MOD_DW2

Post Reply
NStriker
Posts: 21
Joined: Mon Mar 14, 2022 9:07 am

Out of virtual memory

Post by NStriker »

My game crashes every few hours. Has for a long time and I just lived with it. More curiously, it tends to take out my browser with it. Finally looked in my event logs and found out why. A whole lot of this:

System:
Windows successfully diagnosed a low virtual memory condition. The following programs consumed the most virtual memory: DistantWorlds2.exe (16304) consumed 31289860096 bytes, [...].exe (10332) consumed 419708928 bytes, and [...].exe (5208) consumed 385142784 bytes.

That's almost 32GB virtual memory space allocated. Actual physical used is much lower. Which of course leads to:

Application:
Application: DistantWorlds2.exe
CoreCLR Version: 7.0.1423.51910
.NET Version: 7.0.14
Description: The process was terminated due to an unhandled exception.
Exception Info: Stride.Core.Serialization.Contents.ContentManagerException: Unexpected exception while loading asset [Ships/Abandoned/KitTextures/DetailPack_01_Emissive]. Reason: One or more errors occurred. (Insufficient memory to continue the execution of the program.). Check inner-exception for details.
---> System.AggregateException: One or more errors occurred. (Insufficient memory to continue the execution of the program.)
---> System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
etc, etc.


I like big galaxies and I cannot lie, but I think Erik, et al need to look into freeing over-committed but unused memory space. I can mitigate this by increasing my page file, of course, but something is clearly awry.
MomentsBeforeCrash.png
MomentsBeforeCrash.png (12.99 KiB) Viewed 349 times

The logs unhelpfully say "The GPU device instance has been suspended" which isn't the case. But I suppose it comes from being unable to load an asset.
DW2_CrashDump 12-06-2024 02-22-55 1.txt
(2.12 KiB) Downloaded 6 times
User avatar
MaximKI
Posts: 2118
Joined: Thu Oct 20, 2022 12:29 pm

Re: Out of virtual memory

Post by MaximKI »

Thanks, do you mind uploading or PM'ing us your DxDiag?

Also, did you catch if there were any gameplay reasons that may lead to the crash or is it very much a timed crash?
NStriker
Posts: 21
Joined: Mon Mar 14, 2022 9:07 am

Re: Out of virtual memory

Post by NStriker »

It's timed. The usage increases until it barfs, though the time it takes to get there varies.

DxDiag PMed.
NStriker
Posts: 21
Joined: Mon Mar 14, 2022 9:07 am

Re: Out of virtual memory

Post by NStriker »

I just made myself a handy little PowerShell script to keep an eye on the usage and warn me it's about to crash when it's > 30GB. It polls every 15 seconds.

You can see it's fine for about 43 minutes, then starts growing out of hand soon after.
DW2_page.txt
(3.36 KiB) Downloaded 12 times
User avatar
MaximKI
Posts: 2118
Joined: Thu Oct 20, 2022 12:29 pm

Re: Out of virtual memory

Post by MaximKI »

Thanks, we'll investigate.
Post Reply

Return to “Distant Worlds 2: Tech Support”