SteamDeck Out of Memory Crash

This forum provides information on obtaining access to Public Beta versions of X4: Foundations allowing people running those versions to provide feedback on their experiences.

Moderator: DevNet Public Moderators

Post Reply
qnlbnsl
Posts: 2
Joined: Sun, 26. Mar 23, 08:41

SteamDeck Out of Memory Crash

Post by qnlbnsl » Sun, 26. Mar 23, 09:11

Fantastic work on the 6.0.0 beta. I just wanted to bring to your attention a crash that causes the steam deck to restart(not a real restart, but it looks like it to the end user.).
After about 1-1.5 hours of playing the game, no more RAM is left.
From what I can tell, there might be either a memory leak.
The end user sees the game crashing and the steam deck rebooting.
I ran `journalctl` to check the logs and saw that it was probably a soft reboot. Meaning that there is supposed to be a crash to the desktop.
However, being in Wayland mode (default on steam deck), we see steam crashing, and then the deck appears to reboot, which would be steam restarting. There is no "desktop" per se.
To note is the fact that the game would not crash depending on the number of assets in the scene/sector. After the steam deck has recovered and the game starts, it would work perfectly fine until the next OOM error. Running the performance overlay, I saw the ram usage creeping up slowly but steadily.
Here are the logs of my crashes that were filtered by running `journalctl | grep oom` (give me all the logs with oom in them)

Code: Select all

Mar 25 15:20:41 steamdeck kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/user@1000.service/app.slice/gamescope-session.service,task=X4.exe,pid=5461,uid=1000
Mar 25 15:20:41 steamdeck kernel: Out of memory: Killed process 5461 (X4.exe) total-vm:15636312kB, anon-rss:7564632kB, file-rss:0kB, shmem-rss:3656kB, UID:1000 pgtables:25624kB oom_score_adj:200
Mar 25 15:20:42 steamdeck kernel: oom_reaper: reaped process 5461 (X4.exe), now anon-rss:0kB, file-rss:0kB, shmem-rss:2316kB
Mar 25 15:22:11 steamdeck systemd[1103]: gamescope-session.service: Failed with result 'oom-kill'.
Mar 25 19:48:20 steamdeck kernel: steamwebhelper invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=200
Mar 25 19:48:20 steamdeck kernel:  oom_kill_process.cold+0xb/0x10
Mar 25 19:48:20 steamdeck kernel: [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
Mar 25 19:48:20 steamdeck kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/user@1000.service/app.slice/gamescope-session.service,task=X4.exe,pid=10456,uid=1000
Mar 25 19:48:20 steamdeck kernel: Out of memory: Killed process 10456 (X4.exe) total-vm:14529452kB, anon-rss:7440836kB, file-rss:0kB, shmem-rss:21492kB, UID:1000 pgtables:23984kB oom_score_adj:200
Mar 25 19:48:21 steamdeck kernel: oom_reaper: reaped process 10456 (X4.exe), now anon-rss:0kB, file-rss:0kB, shmem-rss:19864kB
Mar 25 19:49:50 steamdeck systemd[1103]: gamescope-session.service: Failed with result 'oom-kill'.
I want to stress that the games itself worked very, very, very well. Setting graphics to medium, FSR to balanced, Anti Aliasing to MSAAx4. FXAA causes the environment to go blank when using a highway.
I was getting solid 25 fps. When playing on high/ultra, it would fluctuate between 18-23. Still, it IS playable.
I haven't been able to test out the late-game performance yet, but I think the biggest blocker there would be the CPU and the ram due to the requirement to manage all the NPCs, but then again, it is a steam deck... If I want the full X4 "experience" might as well stream from my laptop.

If any other info is required, then I can provide it. Note this x4 version was the one from March 25th. I received an update at 01:00 AM EDT that was about 600MB so I cannot fully confirm the version I was on... :cry:

CBJ
EGOSOFT
EGOSOFT
Posts: 51906
Joined: Tue, 29. Apr 03, 00:56
x4

Re: SteamDeck Out of Memory Crash

Post by CBJ » Sun, 26. Mar 23, 11:08

qnlbnsl wrote:
Sun, 26. Mar 23, 09:11
From what I can tell, there might be either a memory leak.
The last time we performed a memory leak check a few weeks ago, we found two leaks; both of them in Steam's own code!

qnlbnsl
Posts: 2
Joined: Sun, 26. Mar 23, 08:41

Re: SteamDeck Out of Memory Crash

Post by qnlbnsl » Mon, 27. Mar 23, 07:02

CBJ wrote:
Sun, 26. Mar 23, 11:08
qnlbnsl wrote:
Sun, 26. Mar 23, 09:11
From what I can tell, there might be either a memory leak.
The last time we performed a memory leak check a few weeks ago, we found two leaks; both of them in Steam's own code!
Not surprising... are there any steps I can take to help ascertain the cause of the crash being either steam itself or something else?

Post Reply

Return to “X4: Foundations - Public Beta Feedback”