Page 1 of 1

Out of virtual memory

Posted: Wed Jun 12, 2024 6:25 am
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 448 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 10 times

Re: Out of virtual memory

Posted: Wed Jun 12, 2024 5:05 pm
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?

Re: Out of virtual memory

Posted: Thu Jun 13, 2024 12:08 am
by NStriker
It's timed. The usage increases until it barfs, though the time it takes to get there varies.

DxDiag PMed.

Re: Out of virtual memory

Posted: Thu Jun 13, 2024 5:55 am
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 20 times

Re: Out of virtual memory

Posted: Fri Jun 21, 2024 1:11 pm
by MaximKI
Thanks, we'll investigate.