[1.205.026] Rapid memory leak in client thread on PC via Windows Store (PC GamePass)

Joel Cressy shared this bug 18 days ago
Need More Information

Per the title, I suspect the Windows Store version of the game is currently exhibiting a memory leak issue that is crippling to my gameplay and making the game unplayable after a short amount of time. The worst symptoms develop after only 5-10 minutes of gameplay and force me to quit/restart.


This issue is also happening regardless of single player mode or multiplayer mode. It does not seem to be exclusive to the server thread. Screen shots and recordings will be attached, with shift-F11 stats as well as ctrl+H debug profiler overlay.


Firstly, the screenshot file titled "red_ship_v2_memory_leak.png" I loaded up a new game with the Red Ship V2 scenario (new save) and after only a few minutes was experiencing huge spikes in load on the client and server threads, where each spike caused my game to freeze. The spikes were frequent, but the freezes are short, however more than enough to make the game unplayable.


Second, the screenshot file titled "multiplayer_mode_memory_leak.png" I have a dedicated server running on external hardware with only one large grid. The server's performance is perfect, with over 1.00 simulation speed the entire time. However the client thread again is exhibiting the frequent, massive load spikes coinciding with brief freezes on the client side.


Note: This same multiplayer server I was on I also played with using my xbox series X console and the performance of the console client was 100% perfect with zero issues.


Third, a screen recording has been attached titled "Screen Recording 2024-12-08 152639.mp4"

In this recording, I remain connected to my multiplayer server and open task manager alongside to view the memory usage of the game. Notice specifically how the used memory rapidly grows from ~2.5GB to over ~9.5GB, almost 10GB and the moment the game freezes is also the moment the memory usage immediately shoots back down to ~2.5GB.


Speculation: To me, this looks like a textbook case of a massive garbage collection cycle that results in the entire application halting while GC clears out memory. It also seems coincidental that it hits a 10GB threshold before this happens, since the recommended memory requirements of the game are indeed 10GB, which leads me to believe this is the maximum heap size of some sort.


Finally, refer to the file titled "Screenshot 2024-12-08 161806.png". To better eliminate my machine/hardware as the cause, I also own and downloaded the steam version of the game and connected it to the same multiplayer server. Performance here is immaculate by comparison. I am consistently achieving 120fps on top of the client thread load trending well below any other threads in my game client. I have no stutters, freezes, fps drops or other performance issues using the steam version of the game.

However, my user ID with xbox and steam are not the same and connecting to multiplayer servers results in it treating me as a different player. Additionally, I have purchased all DLC through xbox/microsoft and as such can't access that content via steam. So, as much as I would love to just use the steam client and consider the issue resolved for me personally, I lose access to content i've paid for and progression/saves I've spent lots of time building on xbox.


So at the very least maybe we could look at what's different between the steam and windows store versions of the game to narrow down even further what the source of this memory leak could be?


Thanks,

Replies (2)

photo
2

Hello, Engineer!


We're sorry to hear you're experiencing issues.

Could you please answer a few questions for us?

Are you playing on Windows 10 or Windows 11?

Are you using a default world, and if yes, which?

Are any mods present during your testing?

Could you please attach a log from the Windows Store version of the game from when those issues are present? Both WS and Steam logs are located in C:\Users\your_username\AppData\Roaming\SpaceEngineers


Kind Regards

Keen Software House

QA Department

photo
2

Hey! Thanks for you quick response.


- Windows 11

- Single Player is using a Default world, Red Ship V2. (in multiplayer my server's save is based on Home System but we can just use the single player evidence for now)

- No mods at all. Completely vanilla.


attaching logs

Leave a Comment
 
Attach a file