protonscr

Possible memory leak

steamopen Steam client
ValveSoftware/steam-for-linux#6274 · opened 2019-05-16 by XakepSDK · updated 2021-11-30 · 12 comments · github
XXakepSDK 2019-05-16 github

Your system information

  • Steam client version (build number or date): May 15 2019, at 21:17:00
  • Distribution (e.g. Ubuntu): Arch Linux
  • Opted into Steam client beta?: [Yes/No] Yes
  • Have you checked for system updates?: [Yes/No] Yes

Root process steam uses more than 500MiB RAM. This number doesn't go down.
After restart steam uses ~70MiB for root process, ~41MiB for child steam process and ~100MiB for all steamwebhelper.

I think this is somehow related to downloading system. Numbers going up and down after every download, but looks like it doesn't clear everything properly.

Pptkato 2019-06-25 github

It happens here too, sometimes steam uses over 750MiB and becomes very unresponsive while doing so, restarting the client fixes the problem.

Eevilynux 2019-06-29 github

Something is CLEARLY pointing that direction, at least with the current beta version of the client.
From this morning:

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
14085 evilynux  20   0 2588552   1,6g  55952 R   3,0  20,3   2:28.16 steam                                                                                   
14249 evilynux  20   0 1479560 824548  89356 S  41,5  10,2   2:12.46 Borderlands2

So the steam client consumes little under 1.6 GB of RAM (RES-SHR) whereas Borderlands2 consumes about half of that. Looks weird to me.

Ssysrq-reisub 2019-07-08 github

For me it's even worse, it's taking 1.5GB right now.
image

Not using the beta.

SStephenLynx 2019-08-06 github

Can confirm, using ubuntu 18. Just caught it using 1.4gb.

Ssydneybrokeit 2019-08-12 github

Can also confirm this issue - within a few hours, it's up to 1GB of RAM utilized.

Jjnines 2019-08-31 github

Can also confirm. Using Arch with beta client (although the standard client had the same issue). Sometimes it's only using ~65MB, sometimes well over 500MB.

AAmathadius 2019-09-29 github

I just force kill steamwebhelper process because it eats 10BG of ram.

Archlinux
(New) Beta Steam Client

XXakepSDK 2019-09-29 github

@Amathadius looks like it's another bug, disable GPU accel in settings so it won't leak.

Kkisak-valve maintainer 2019-09-29 github

Hello @Amathadius, sounds like you've encountered the memory leak being tracked at #6502, not the leak being tracked here.

AAmathadius 2019-09-29 github

I see, thanks

Jjnines 2019-10-01 github

Yes it looks like they fixed the other bug, whatever this is is different and still exists.
steam

Ttelans 2021-11-30 github

I'm having the same issue with steamwebhelper. I don't assume valgrind will help show anything useful (proprietary, no debug symbols I assume)?

Screenshot_20211130_234449

The leak disappears when opening the main steam window (as apposed to the friends window)

Nothing extracted yet.