ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.26k stars 175 forks source link

steamwebhelper eating all RAM _AND_ swap until it gets OOM'd #7266

Open blisskidd opened 4 years ago

blisskidd commented 4 years ago

Your system information

Please describe your issue in as much detail as possible:

What the title says. This has been noted before under issue 6502, which is closed. This started happening shortly Screenshot_20200715_101644_steamwebhelper after my last client update. I have steamwebhelper growing to somewhere north of TWENTY GIGABYTES of memory usage.

It's also WORSE than Issue #6502 (https://github.com/ValveSoftware/steam-for-linux/issues/6502) was, because even if I mercilessly slay these processes before they quite get that big (it does take several seconds) enough to get into the settings menu and disable the interface acceleration options... it doesn't stop doing it. I literally have ALL of that turned off.

Steps for reproducing this issue:

  1. Launch client.
  2. Wait a few seconds - watch your processes with ksysguard or top or whatever your favorite is.
  3. Observe all system memory being fully exhausted by steamwebhelper, and then all available swap (granted, I only have 16GB RAM and somewhere around 5.5GB swap allocated...)
blisskidd commented 4 years ago

Is there any useful log info I could possibly generate to help point in the right direction? Part of me wants to try wiping / moving my ~/.steam - but I also live in a very rural part of North Carolina and it would take me literally all day to download games again (though I suppose I could backup/restore from my laptop...) but I guess what I'm asking is... ...is there a log I can look at somewhere?

blisskidd commented 4 years ago

Update: Tried a round of mv ~/.steam ~/dot-steam-is-this-the-problem (and logging in fresh). No dice, steamwebhelper still runs away with all my RAM within seconds of trying to show me the store page (which doesn't display, either... clue maybe?)

garyttirn commented 4 years ago

I've been getting the same issue on Windows 10 too, on two separate computers, a laptop (intel i7) and desktop (AMD 2950X), both with Nvidia GPU (M840 in laptop, RTX2060 in the desktop), generally with latest Nvidia drivers.

I think I first saw the issue around spring time (Feb/March), but I haven't had much time to play games so I didn't bother to investigate further after I found a workaround. Several Steams updates after that and issue is still there, tested latest with Jul 31 build.

The workaround is disabling the builtin browser component from Steam with command line options -no-browser steam://open/minigameslist

I did try all the other workarounds mention in Issue #6502, but none of those made any difference.

garyttirn commented 3 years ago

Seems Steam client build on 10th December 2020 no longer has this issue on Windows 10, I have not checked Linux yet.

alamar commented 2 years ago

Still see this issue! Does not happen outright but eventually it will start eating all RAM.

CtrlAltDeplete commented 2 years ago

The last time I noticed my memory usage skyrocket was upon launching dota 2. Memory went from a couple 100MiB (still high) to 4GiB. Any logs I can capture or memory profiles, just let me know.

RenaKunisaki commented 2 years ago

Just started happening to me today. Somehow multiple steamwebhelper processes all decided they needed all 32GB of RAM, and even killing them doesn't help because they immediately start back up and go right back to 32GB instantly. I have to use -no-browser now to use Steam at all.

CtrlAltDeplete commented 2 years ago

@kisak-valve As of July 1st, 2022, the steam webhelper got up to 50GB in a day. Just updating/pinging to keep this fresh.

Seralyne commented 2 years ago

@kisak-valve As of October 31st, this is still an issue.

Additional information: Distribution (e.g. Ubuntu): Arch Opted into Steam client beta?: [Yes/No] No Have you checked for system updates?: [Yes/No] It's fresh.

There is a temporary workaround that I found around the internet, that I can confirm has worked for me:

Disabling GPU Hardware Acceleration for the web components in the Steam settings, as well as enabling Low Power Mode seems to have essentially entirely eliminated the memory leak.

TheISOmorph commented 1 year ago

I seem to be hit by the same issue. However, the problem only started about a month ago for me, which should coincide with the release of the new Steam GUI.

neofetch: ⠀⠀⢀⣤⣴⣶⣶⣶⣦⣤⡀⠀⣀⣠⣤⣴⣶⣶⣶⣶⣶⣶⣶⣶⣤⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ --------------- ⠀⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀ OS: Nobara release 37 (Thirty Seven) x86_64 ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀ Host: B550 AORUS ELITE AX V2 ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀ Kernel: 6.3.10-200.fsync.fc37.x86_64 ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀ Uptime: 16 mins ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠋⠉⠁⠀⠀⠉⠉⠛⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀ Packages: 3159 (rpm), 13 (flatpak) ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠁⠀⠀⠀⢀⣀⣀⡀⠀⠀⠀⠈⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀ Shell: bash 5.2.15 ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⠀⠀⢠⣾⣿⣿⣿⣿⣷⡄⠀⠀⠀⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀ Resolution: 2560x1440, 2560x1440 ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⣀⣀⣬⣽⣿⣿⣿⣿⣿⣿⠀ DE: Plasma 5.27.4 ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠈⠻⢿⣿⣿⡿⠟⠁⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀ WM: KWin ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀ Theme: [Plasma], Breeze [GTK2/3] ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣤⣤⣄⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀ Icons: Papirus [Plasma], Papirus [GTK2/3] ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀ Terminal: konsole ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀ CPU: AMD Ryzen 7 5800X (16) @ 3.800GHz ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟⠛⠉⠉⠛⠛⢿⣿⣿⠀⠀⠀⠀⠀⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠀ GPU: AMD ATI Radeon RX 6800/6800 XT / 6900 XT ⠀⠘⢿⣿⣿⣿⣿⣿⣿⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⠀⠀⠀⠀⠀⠀⠙⢿⣿⣿⣿⣿⣿⣿⣿⠟⠁⠀ Memory: 5539MiB / 31980MiB ⠀⠀⠀⠈⠙⠛⠛⠛⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠛⠛⠛⠉⠁⠀⠀⠀

Steam: Steam client application Built: Jun 21.2023, at 21:18:26 Steam API: v020 Steam package versions: 1687386907 Opted into Steam client beta?: No

Description: Randomly, my system will lock up entirely, forcing me to do a hard shutdown. I have plasmoids for various system data on my desktop, which allowed me to deduce, that my RAM and SWAP was being used up entirely by something. Each crash is being reported by my system as follows: Not-reportable: The backtrace does not contain enough meaningful function frames to be reported. It is annoying but it does not necessarily indicate a problem with your computer. ABRT will not allow you to create a report in a bug tracking system but you can contact kernel maintainers via e-mail. Reason: traps: steamwebhelper[3412] trap invalid opcode ip:7f977cac013b sp:7fff085b7780 error:0 in libcef.so[7f97788ef000+7770000]

Workaround: None that I know of. Support for -no-browser has ended: Ending support for -no-browser Trying out disabling GPU Hardware Acceleration for the web components in the Steam settings, as well as enabling Low Power Mode

pokemonpasta commented 1 year ago

Still an issue for me. This has been a problem for a while but usually it was only 100-300MB, whereas recently it has increased to upwards of 600-800, which is actively hindering my gameplay.

Additional information: Distribution (e.g. Ubuntu): Kubuntu 20.04 Opted into Steam client beta?: [Yes/No] No Have you checked for system updates?: [Yes/No] Yes, no updates

I already have hardware acceleration disabled, I'll see if Low Perfomance Mode helps but I don't have high hopes

bryanspears commented 1 year ago

This occurs very often since the recent major update to the steam client and it's a sudden gobble from 0 to dead in less than a minute. Not sure of the trigger, but it seems like state changes such as leaving a game or getting a steam updte make it crap out quickly.

Using "steam native" (not the built-in runtime) caused it immediately just now as a test. Start to OOM killed in about 10 seconds.

[46169.499610] Out of memory: Killed process 270796 (steamwebhelper) total-vm:5183232kB, anon-rss:406848kB, file-rss:768kB, shmem-rss:38740kB, UID:1000 pgtables:3584kB oom_score_adj:300

Additional information: Distribution (e.g. Ubuntu): Arch Opted into Steam client beta?: [Yes/No] No Have you checked for system updates?: [Yes/No] Yes, it's Arch. Quite fresh.

laurirasanen commented 1 year ago

Lately I've noticed that steamwebhelper builds up to >10GB of memory and ~1-2% cpu usage in the background (steam running but no windows open). However, actually opening the client will immediately drop the usage back down to ~0.4GB and 0% cpu. This seems to happen at least once a day.

Leaky core dump?

I took a core dump with gcore -a $pid while the memory consumption was ~11GB and noticed a lot of repeating sections in it with objdump. The core dump file is ~17GB.

The biggest one I found is this pattern:

 657b7c48000 60c3e88f 57060000 c083e28f 57060000  `...W.......W...
 657b7c48010 9042e08f 57060000 801ae78f 57060000  .B..W.......W...
 657b7c48020 4081e48f 57060000 905f0c90 57060000  @...W...._..W...
 657b7c48030 9080e18f 57060000 9081e48f 57060000  ....W.......W...
 657b7c48040 000101b0 8c151138 00480310 55b0e200  .......8.H..U...
 657b7c48050 00282b1e 01000000 00000000 00000000  .(+............. <-
 657b7c48060 e081e48f 57060000 00000000 00000000  ....W........... <-
---
 657b7c48070 60ab1290 57060000 c083e28f 57060000  `...W.......W...
 657b7c48080 9042e08f 57060000 801ae78f 57060000  .B..W.......W...
 657b7c48090 a0541390 57060000 905f0c90 57060000  .T..W...._..W...
 657b7c480a0 9080e18f 57060000 e058bab7 57060000  ....W....X..W...
 657b7c480b0 00010100 08101138 00480310 55b0e200  .......8.H..U...
 657b7c480c0 00282b1e 01000000 00000000 00000000  .(+............. <-
 657b7c480d0 e081e48f 57060000 00000000 00000000  ....W........... <-

There are slight differences in content but the surrounding bytes seem very similar.

Counting the instances with objdump -s core | grep -o '$pattern' | wc -l returns:

Assuming the pattern is unique and 224 bytes each that's ~9.4GB, which could explain the majority of memory usage.

Some smaller repeating sections:

This 192 byte section shows up quite a bit:

 370372be820 7b14ae47 e17ad43f 00d6e08f 57060000  {..G.z.?....W...
 370372be830 00000000 00000000 00000000 00000000  ................
 370372be840 009b0b90 57060000 00000000 00000000  ....W...........
 370372be850 00000000 00000000 00000000 00000000  ................
 370372be860 00000000 00000000 00000000 00000000  ................
 370372be870 00000000 00000000 00000000 00000000  ................

7b14ae47 e17ad43f returns 6415600 instances, assuming unique 192 byte sections, that's ~1.1GB.

I would guess this is a container type for something. Some of them have data, such as this one which has numbers stored as strings:

 3704250bdc0 7b14ae47 e17ad43f 00000000 00000000  {..G.z.?........
 3704250bdd0 00000000 00000000 00000000 00000000  ................
 3704250bde0 009b0b90 57060000 00000000 00000000  ....W...........
 3704250bdf0 00000000 00000000 00000000 00000000  ................
 3704250be00 00000000 00000000 0000000a 312e3030  ............1.00
 3704250be10 30333100 00020000 00000000 00020000  031.............
 3704250be20 009b0b90 57060000 0000008a 31303030  ....W.......1000
 3704250be30 33310000 00000000 00000000 00000000  31..............
 3704250be40 00000000 00000000 0000000a 312e3030  ............1.00
 3704250be50 30333100 00000000 00000000 00000000  031.............
 3704250be60 00000000 00000000 00000000 00000000  ................
 3704250be70 00000000 00000000 00000000 00000000  ................

In this one the final 128 bytes (....6 ->) repeats a bunch of times.

 3704250bf40 7b14ae47 e17ad43f 00000000 00000000  {..G.z.?........
 3704250bf50 00000000 00000000 00000000 00000000  ................
 3704250bf60 009b0b90 57060000 00000000 00000000  ....W...........
 3704250bf70 00000000 00000000 00000000 00000000  ................
 3704250bf80 00000000 00000000 00000000 00020000  ................
 3704250bf90 00000000 00020000 00000000 00020000  ................
 3704250bfa0 009b0b90 57060000 00d6e08f 57060000  ....W.......W...
 3704250bfb0 00000000 00000000 00000000 00000000  ................
 3704250bfc0 00000000 00000000 00000000 00000000  ................
 3704250bfd0 00000000 00000000 00000000 00000000  ................
 3704250bfe0 00000000 00000000 00000000 00000000  ................
 3704250bff0 00000000 00000000 00000000 00000000  ................
 3704250c000 01000000 36000000 00000000 00000000  ....6........... <-
 3704250c010 00000000 00000000 00000000 00000000  ................
 3704250c020 00000000 00000000 00000000 00000000  ................
 3704250c030 00000000 00000000 00000000 00000000  ................
 3704250c040 01000000 36000000 00000000 00000000  ....6........... <-
 3704250c050 00000000 00000000 00000000 00000000  ................
 3704250c060 00000000 00000000 00000000 00000000  ................
 3704250c070 00000000 00000000 00000000 00000000  ................

Searching for 01000000 36000000 00000000 00000000 returns 6415600 instances. Assuming unique and 128 bytes, that's another ~0.8GB. Curiously the count here is exactly same as for the previous pattern.

Fresh core dump

steamwebhelper uses around 0.4GB of memory after fresh launch and the core dump file is ~4GB.

Searching for the same patterns after a relaunch yields counts:

Going through the matches is a lot easier with so few results.

00282b1e 01000000 00000000 00000000 seems like a list of *something binary*:

 14a208f791d0 00282b1e 01000000 00000000 00000000  .(+............. <-
 14a208f791e0 3074b708 a2140000 00000000 00070000  0t..............
 14a208f791f0 00c36805 a2140000 c0836205 a2140000  ..h.......b.....
 14a208f79200 305e8706 a2140000 801a6705 a2140000  0^........g.....
 14a208f79210 40816405 a2140000 8075bd08 a2140000  @.d......u......
 14a208f79220 104e9906 a2140000 205cb708 a2140000  .N...... \......
 14a208f79230 c0810200 00100138 00480310 55b0e200  .......8.H..U...
 14a208f79240 00282b1e 01000000 00000000 00000000  .(+............. <-
 14a208f79250 6071b708 a2140000 80400000 00000000  `q.......@......
 14a208f79260 00c36805 a2140000 c0836205 a2140000  ..h.......b.....
 14a208f79270 305e8706 a2140000 801a6705 a2140000  0^........g.....
 14a208f79280 40816405 a2140000 8075bd08 a2140000  @.d......u......
 14a208f79290 104e9906 a2140000 0072b708 a2140000  .N.......r......
 14a208f792a0 c0810200 00100138 00480310 55b0e200  .......8.H..U...
 14a208f792b0 00282b1e 01000000 00000000 00000000  .(+............. <-
 14a208f792c0 5072b708 a2140000 00000000 40760000  Pr..........@v..
 14a208f792d0 00c36805 a2140000 c0836205 a2140000  ..h.......b.....
 14a208f792e0 305e8706 a2140000 801a6705 a2140000  0^........g.....
 14a208f792f0 40816405 a2140000 8075bd08 a2140000  @.d......u......
 14a208f79300 104e9906 a2140000 205cb708 a2140000  .N...... \......
 14a208f79310 c0810200 00100138 00480310 55b0e200  .......8.H..U...
 14a208f79320 00282b1e 01000000 00000000 00000000  .(+............. <-
 14a208f79330 4078b708 a2140000 00000000 00000000  @x..............
 14a208f79340 00c36805 a2140000 c0836205 a2140000  ..h.......b.....
 14a208f79350 305e8706 a2140000 801a6705 a2140000  0^........g.....
 14a208f79360 40816405 a2140000 8075bd08 a2140000  @.d......u......
 14a208f79370 104e9906 a2140000 e078b708 a2140000  .N.......x......
 14a208f79380 c0810200 00100138 00480310 55b0e200  .......8.H..U...

7b14ae47 e17ad43f sure looks like some container with strings. Includes game names, urls, etc.

 c2379934ae0 7b14ae47 e17ad43f 0000000a 46312032  {..G.z.?....F1 2 <-
 c2379934af0 30323100 00000000 1b000000 00000000  021.............
 c2379934b00 2c010000 c2010000 cfc88f0a 6e6f2d63  ,...........no-c
 c2379934b10 61636865 65676163 6b2e686f 73740000  acheegack.host..
 c2379934b20 18268005 45100000 68ede302 f91c0000  .&..E...h.......
 c2379934b30 00000000 00000000 00000000 00000000  ................
 c2379934b40 00000c23 79935200 000000ca 526f636b  ...#y.R.....Rock
 c2379934b50 6574204c 65616775 65000000 00000000  et League.......
 c2379934b60 00000c23 79935800 1b876f0c e46d1f06  ...#y.X...o..m..
 c2379934b70 e3509202 230c0000 a8d83078 230c0000  .P..#.....0x#...
 c2379934b80 00000c23 79936be0 0000000a 54726163  ...#y.k.....Trac
 c2379934b90 6b6d616e 69610000 409077c9 203c0000  kmania..@.w. <..
 c2379934ba0 2c010000 c2010000 cfc88f0a 6e6f2d63  ,...........no-c
 c2379934bb0 61636865 65670000 20234863 001d0000  acheeg.. #Hc....
 c2379934bc0 00000c23 79937720 1028de08 a2140000  ...#y.w .(......
 c2379934bd0 7c8d7d0d 00000000 00000000 00000000  |.}.............
 c2379934be0 18268005 45100000 10c4e302 f91c0000  .&..E...........
 c2379934bf0 00000000 00000000 00000000 00000000  ................
 c2379934c00 10c6e302 f91c0000 00000000 00000000  ................
 c2379934c10 00000000 00000000 00000000 00000000  ................
 c2379934c20 18268005 45100000 e0c6e302 f91c0000  .&..E...........
---
 c2379937400 7b14ae47 e17ad43f 508b357a 230c0000  {..G.z.?P.5z#... <-
 c2379937410 508b357a 230c0000 508b357a 230c0000  P.5z#...P.5z#...
 c2379937420 00000c23 79934ca0 9a999999 9999d93f  ...#y.L........?
 c2379937430 9a999999 9999d93f 9a999999 9999c93f  .......?.......?
 c2379937440 04000000 09000000 3342ed0d 23737667  ........3B..#svg
 c2379937450 69645f34 326e626c 75720000 00000000  id_42nblur......
 c2379937460 4070c908 a2140000 5298b643 00020100  @p......R..C....
 c2379937470 645f3432 00000000 00000000 00000000  d_42............
 c2379937480 5298b643 00020100 5298b643 00020100  R..C....R..C....
 c2379937490 645f3432 00000000 00000000 00000000  d_42............
 c23799374a0 33333333 3333d33f 00000000 00000000  333333.?........
 c23799374b0 00000000 00000000 00000000 00000000  ................
 c23799374c0 0ad7a370 3d0ac73f 00000000 00000000  ...p=..?........
 c23799374d0 00000000 00000000 00000000 00000000  ................
 c23799374e0 00000c23 799368e0 1b876f0c e46d1f06  ...#y.h...o..m..
 c23799374f0 e3509202 74726573 73203200 00000000  .P..tress 2.....
 c2379937500 02000000 09000000 941ce10d 23737667  ............#svg
 c2379937510 69645f34 33000000 00000000 00000000  id_43...........
 c2379937520 01010000 01030000 01030000 01030000  ................
 c2379937530 01030000 001d0000 60a0d302 f91c0000  ........`.......
 c2379937540 9a999999 9999d93f 00000000 00000000  .......?........

01000000 36000000 00000000 00000000 looks like more strings, mostly HTML and CSS as far as I can tell:

 c237a3505a0 00000000 00000000 00000000 00000000  ................
 c237a3505b0 00000000 00000000 00000000 00000000  ................
 c237a3505c0 00000c23 7a3501c0 00000000 00000000  ...#z5..........
 c237a3505d0 00000000 00000000 00000000 00000000  ................
 c237a3505e0 00000000 00000000 00000000 00000000  ................
 c237a3505f0 00000000 00000000 00000000 00000000  ................
 c237a350600 05000000 32000000 5a06196e 67616d65  ....2...Z..ngame
 c237a350610 6c697374 64726f70 646f776e 5f436865  listdropdown_Che
 c237a350620 636b626f 78576974 68496d61 67655f33  ckboxWithImage_3
 c237a350630 6d7a4b64 20466f63 75736162 6c650000  mzKd Focusable..
 c237a350640 01000000 36000000 00000000 00000000  ....6...........
 c237a350650 50443dbf 00000000 01000000 000080bf  PD=.............
 c237a350660 00000000 00000000 00000000 50443d40  ............PD=@
 c237a350670 00000000 01000000 00000000 00000000  ................
 c237a350680 01000000 36000000 00000000 00000000  ....6........... <-
 c237a350690 01000000 d0010000 00000000 00000000  ................
 c237a3506a0 6f6c6c54 6f546f70 5f754537 506a2046  ollToTop_uE7Pj F
 c237a3506b0 6f637573 61626c65 00000000 00000000  ocusable........
 c237a3506c0 02000000 25000000 627e6a6e 3132382c  ....%...b~jn128,
 c237a3506d0 3234372e 36383820 3132382c 382e3331  247.688 128,8.31
 c237a3506e0 33203138 312e3036 312c3631 2e363734  3 181.061,61.674
 c237a3506f0 20a62278 230c0000 00000000 00000000   ."x#...........
 c237a350700 02000000 2d000000 103b130e 39312e37  ....-....;..91.7
 c237a350710 33352c39 302e3833 33203931 2e373335  35,90.833 91.735
 c237a350720 2c313238 2e303134 20313136 2e35382c  ,128.014 116.58,
---
 c237a3509e0 76616e63 65645365 61726368 50616e65  vancedSearchPane
 c237a3509f0 5f576f68 306b0000 60399578 230c0000  _Woh0k..`9.x#...
 c237a350a00 01000000 33000000 242ca80a 67616d65  ....3...$,..game
 c237a350a10 6c697374 73656172 63686261 725f4164  listsearchbar_Ad
 c237a350a20 76616e63 65645365 61726368 50616e65  vancedSearchPane
 c237a350a30 436f6e74 61696e65 725f3164 67414d00  Container_1dgAM.
 c237a350a40 01000000 2f000000 39926c0a 67616d65  ..../...9.l.game
 c237a350a50 6c697374 73656172 63686261 725f4164  listsearchbar_Ad
 c237a350a60 76616e63 65645365 61726368 436f6e74  vancedSearchCont
 c237a350a70 61696e65 725f7643 436d5900 00000000  ainer_vCCmY.....
 c237a350a80 01000000 36000000 00000000 00000000  ....6........... <-
 c237a350a90 00000000 00000000 00000000 00000000  ................
 c237a350aa0 00000000 00000000 00000000 00000000  ................
 c237a350ab0 00000000 00000000 00000000 00000000  ................
 c237a350ac0 07000000 25000000 a8478b0e 53564749  ....%....G..SVGI
 c237a350ad0 636f6e5f 42757474 6f6e2053 56474963  con_Button SVGIc
 c237a350ae0 6f6e5f50 726f6772 65737343 6972636c  on_ProgressCircl
 c237a350af0 65000000 00000000 00000000 00000000  e...............
 c237a350b00 04000000 2a000000 0000000a 44524147  ....*.......DRAG
 c237a350b10 20616e64 20484f4c 44204845 52452074   and HOLD HERE t
 c237a350b20 6f207669 65772041 6c6c2043 6f6c6c65  o view All Colle
---
 c237a350b60 616e7369 74696f6e 47726f75 705f3244  ansitionGroup_2D
 c237a350b70 64345400 00000000 00000000 00000000  d4T.............
 c237a350b80 01000000 2e000000 e8b1ac0a 6c696272  ............libr
 c237a350b90 6172795f 41707044 65746169 6c734f76  ary_AppDetailsOv
 c237a350ba0 65726c61 79547261 6e736974 696f6e47  erlayTransitionG
 c237a350bb0 726f7570 5f33374d 41590000 00000000  roup_37MAY......
 c237a350bc0 01000000 2c000000 9c352a6a 736d6172  ....,....5*jsmar
 c237a350bd0 74736372 6f6c6c63 6f6e7461 696e6572  tscrollcontainer
 c237a350be0 5f536372 6f6c6c54 6f546f70 42757474  _ScrollToTopButt
 c237a350bf0 6f6e5f31 6243484e 00000000 00000000  on_1bCHN........
 c237a350c00 01000000 36000000 00000000 00000000  ....6........... <-
 c237a350c10 00000000 00000000 00000000 00000000  ................
 c237a350c20 f03c9578 230c0000 90609578 230c0000  .<.x#....`.x#...
 c237a350c30 00000000 00000000 00000000 00000000  ................
 c237a350c40 01000000 26000000 b5ed6b0a 6c696272  ....&.....k.libr
 c237a350c50 6172795f 4c656674 4c697374 53697a61  ary_LeftListSiza
 c237a350c60 626c6543 6f6e7461 696e6572 5f397350  bleContainer_9sP
 c237a350c70 6f560000 00000000 00000000 00000000  oV..............
 c237a350c80 03000000 2d000000 af4ec10e 52656163  ....-....N..Reac
 c237a350c90 74566972 7475616c 697a6564 5f5f4772  tVirtualized__Gr
 c237a350ca0 69642052 65616374 56697274 75616c69  id ReactVirtuali
 c237a350cb0 7a65645f 5f4c6973 74000000 00000000  zed__List.......
 c237a350cc0 01000000 0f000000 00000000 00000000  ................
 c237a350cd0 01000000 36000000 00000000 00000000  ....6........... <-

System info

Steam > Help > About Steam:

Steam Version:  1698777785
Steam Client Build Date:  Tue, Oct 31 04:09 UTC -08:00
Steam Web Build Date:  Sat, Oct 28 02:29 UTC -08:00
Steam API Version:  SteamClient020

Steam > Help > System Information

Computer Information:
Manufacturer: Gigabyte Technology Co., Ltd.
Model: B550 AORUS PRO
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 9 5950X 16-Core Processor
CPU Family: 0x19
CPU Model: 0x21
CPU Stepping: 0x0
CPU Type: 0x0
Speed: 5083 MHz
32 logical processors
16 physical processors
Hyper-threading: Supported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
SSE4a: Supported
SSE41: Supported
SSE42: Supported
AES: Supported
AVX: Supported
AVX2: Supported
AVX512F: Unsupported
AVX512PF: Unsupported
AVX512ER: Unsupported
AVX512CD: Unsupported
AVX512VNNI: Unsupported
SHA: Supported
CMPXCHG16B: Supported
LAHF/SAHF: Supported
PrefetchW: Unsupported
Operating System Version:
"Arch Linux" (64 bit)
Kernel Name: Linux
Kernel Version: 6.6.1-arch1-1
X Server Vendor: The X.Org Foundation
X Server Release: 12302002
X Window Manager: wlroots wm
Steam Runtime Version: steam-runtime_0.20231024.64411
Video Card:
Driver: AMD AMD Radeon RX 6800 XT (navi21, LLVM 16.0.6, DRM 3.54, 6.6.1-arch1-1)
Driver Version: 4.6 (Compatibility Profile) Mesa 23.2.1-arch1.2
OpenGL Version: 4.6
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 239 Hz
VendorID: 0x1002
DeviceID: 0x73bf
Revision Not Detected
Number of Monitors: 2
Number of Logical Video Cards: 1
Primary Display Resolution: 1920 x 1080
Desktop Resolution: 3840 x 1080
Primary Display Size: 21.26" x 11.81" (24.29" diag), 54.0cm x 30.0cm (61.7cm diag)
Primary VRAM: 16384 MB
Sound card:
Audio device: ATI R6xx HDMI
Memory:
RAM: 32035 Mb
VR Hardware:
VR Headset: None detected
Miscellaneous:
UI Language: English
LANG: en_US.UTF-8
Total Hard Disk Space Available: 1876166 MB
Largest Free Hard Disk Block: 1414042 MB
Storage:
Number of SSDs: 0
Number of HDDs: 0
Number of removable drives: 0
laurirasanen commented 1 year ago

Running the leaking coredump through strings core | uniq -cd | sort -nr results in these duplicated strings that are not present on fresh launch:

(count, string) top 30 lines

597 J{"event":"kSeek","seek_target":0.0}
455 {"event":"kBufferingStateChanged","pipeline_buffering_state":{"for_suspended_start":false,"state":"BUFFERING_HAVE_ENOUGH"}}
455 {"event":"kBufferingStateChanged","pipeline_buffering_state":{"for_suspended_start":false,"state":"BUFFERING_HAVE_ENOUGH"}}
455 {"event":"kBufferingStateChanged","pipeline_buffering_state":{"for_suspended_start":false,"state":"BUFFERING_HAVE_ENOUGH"}}
455 {"event":"kBufferingStateChanged","pipeline_buffering_state":{"for_suspended_start":false,"state":"BUFFERING_HAVE_ENOUGH"}}
455 {"event":"kBufferingStateChanged","pipeline_buffering_state":{"for_suspended_start":false,"state":"BUFFERING_HAVE_ENOUGH"}}
455 {"event":"kBufferingStateChanged","pipeline_buffering_state":{"for_suspended_start":false,"state":"BUFFERING_HAVE_ENOUGH"}}
455 {"event":"kBufferingStateChanged","pipeline_buffering_state":{"for_suspended_start":false,"state":"BUFFERING_HAVE_ENOUGH"}}
455 {"event":"kBufferingStateChanged","pipeline_buffering_state":{"for_suspended_start":false,"state":"BUFFERING_HAVE_ENOUGH"}}
455 {"event":"kBufferingStateChanged","pipeline_buffering_state":{"for_suspended_start":false,"state":"BUFFERING_HAVE_ENOUGH"}}
455 {"event":"kBufferingStateChanged","pipeline_buffering_state":{"for_suspended_start":false,"state":"BUFFERING_HAVE_ENOUGH"}}
455 {"event":"kBufferingStateChanged","pipeline_buffering_state":{"for_suspended_start":false,"state":"BUFFERING_HAVE_ENOUGH"}}
408 {"event":"kBufferingStateChanged","pipeline_buffering_state":{"for_suspended_start":false,"state":"BUFFERING_HAVE_ENOUGH"}}
332 {"event":"kBufferingStateChanged","pipeline_buffering_state":{"for_suspended_start":false,"state":"BUFFERING_HAVE_ENOUGH"}}
286 j{"event":"kSeek","seek_target":0.0}
253 J{"event":"kSeek","seek_target":0.0}
236 *{"event":"kSeek","seek_target":0.0}
205 *{"event":"kSeek","seek_target":0.0}
200  )Y!
194 J{"event":"kSeek","seek_target":0.0}
186 j{"event":"kSeek","seek_target":0.0}
130 D)]n
130
123 ;-an
104 J{"event":"kSeek","seek_target":0.0}
104 J{"event":"kSeek","seek_target":0.0}
 94 Il\n
 91  )Y!
 91  )Y!
 78 oMan
HUEMOB commented 8 months ago

I’m also having this issue. I’m on Debian 12 stable with nvidia. When I run a game it works for 20-30 mins and then my whole system freezes due to running out of memory. I have 16 gb which should be plenty for the games I’m running but the steamwebhelper just duplicates like 10-15 times and eats up my ram until it dies. I don’t use steam as a browser I have no tabs open in steam or anything like that. I tried turning off gpu acceleration and turning on low performance mode and this only helped the games run for a little longer before freezing but it still happens every time. It’s really disappointing how they don’t seem to care about fixing this issue.

8dcc commented 8 months ago

I am having this issue on arch after updating. 5 minutes after launching, it eats 16GiB of RAM.

sleep-walker commented 3 months ago

I experience it on openSUSE Tumbleweed.

[29362.388821] Out of memory: Killed process 144041 (steamwebhelper) total-vm:51187620kB, anon-rss:580688kB, file-rss:268kB, shmem-rss:228356kB, UID:1000 pgtables:3004kB oom_score_adj:300

it seems to me to be linked with notification

Neubulae commented 2 months ago

How would I diagnose this issue? I think I'm experiencing similar problem but I am not quite sure why and what is happening

blisskidd commented 2 months ago

Replying to https://github.com/ValveSoftware/steam-for-linux/issues/7266#issuecomment-1813044878

Dude this might actually be a hint of sorts. What media could it be trying to seek to 0.0 of (0m.0s) - I think this looks like browser guts, in which case -something- is making it think it's being told to go to the beginning of some media or other... maybe it's doing so multiple times, resulting in the embedded browser loading said media object (not sure why it's doing it repeatedly like that though - or rather, what's generating what it thinks is input to do so - scripted probably - but while preloading one media object to play back shouldn't murder a typical machine's memory pool - now... multiply that memory usage by thirteen times and NOW you have a problem!).

Can I get an opinion out of @kisak-valve ? ...do you think I'm barking up the right proverbial tree, here?

I'm still game to try to help you guys figure out what the cause is... even though I haven't seen it do this in quite some time (disclaimer: Gentoo with a moderate mix of ~amd64 packages... I can bet you my userspace bits are newer than yours, and MOST of the time I'll win that bet...).

laurirasanen commented 2 months ago

Those strings are from chromium logging and only amount to a couple MB. Could be a red herring unless it also holds on to some larger media related data when spamming those logs.

I no longer experience the leaking issue but I still have the coredumps from november last year if those are of any use. It's 7 dumps total from 2 days, ranging from 0.4GB to 11GB memory usage.

micheyll commented 1 month ago

Still an issue on 6.10.10-arch1-1.

Sep 24 19:30:16 astarea kernel: Out of memory: Killed process 2097 (steamwebhelper) total-vm:50519044kB, anon-rss:251252kB, file-rss:7224kB, shmem-rss:124kB, UID:1000 pgtables:1808kB oom_score_adj:300
Sep 24 19:31:11 astarea kernel: Out of memory: Killed process 22614 (steamwebhelper) total-vm:49075964kB, anon-rss:4880kB, file-rss:2704kB, shmem-rss:0kB, UID:1000 pgtables:720kB oom_score_adj:300
Sep 24 19:32:19 astarea kernel: Out of memory: Killed process 22647 (steamwebhelper) total-vm:42791312kB, anon-rss:1756kB, file-rss:1872kB, shmem-rss:0kB, UID:1000 pgtables:504kB oom_score_adj:300
Sep 24 19:32:19 astarea kernel: Out of memory: Killed process 22607 (steamwebhelper) total-vm:847908kB, anon-rss:1684kB, file-rss:768kB, shmem-rss:0kB, UID:1000 pgtables:440kB oom_score_adj:200
Sep 24 19:32:19 astarea kernel: Out of memory: Killed process 22612 (steamwebhelper) total-vm:552700kB, anon-rss:1464kB, file-rss:984kB, shmem-rss:0kB, UID:1000 pgtables:388kB oom_score_adj:200

Sep 24 19:32:19 astarea kernel: steamwebhelper invoked oom-killer: gfp_mask=0x440dc0(GFP_KERNEL_ACCOUNT|__GFP_COMP|__GFP_ZERO), order=0, oom_score_adj=0