Closed JoshuaFern closed 11 months ago
I have the same problem on Pop!_OS.
One easy reproduction for me is to just resize the steam client (dragging the mouse in circles). After just a few second of resizing all 6GB of vram is eaten up by xorg and the desktop environment crashes, dropping me to the login screen.
I use the debian package of the steam-client (from the pop shop) and am not subscribed to the steam client beta
Running on Arch Linux, having the same problem.
Changing workspace and resizing the steam client increases the xorg
vram usage by a crazy amount.
I use the steam
package from the aur and am not subscribed to the steam client beta.
I am also on Arch with i3wm
and use the steam
package from Multilib.
I started seeing it late in the beta but wasn't able to narrow down when / why it happened.
Currently not using the Beta client.
System info gist: https://gist.github.com/husjon/97c4cebf276b66038aaea621034b3981 Quick video showing how quickly it balloons: https://youtu.be/FCXA31aTlRw Keep an eye on the Xorg Memory usage in the bottom right window.
get the same issue on arch + my usual i3wm or even gnome(just for testing) when resizing the window/swapping workspaces or going from the library->store page , also got as much hw accelleration turned off as possible to save vram nvidia Driver Version: 530.41.03
Same issue here, after a few seconds of resizing the window, Steam fills up all of my 12GB of VRAM.
As a workaround, Steam can be started with the -vgui flag to revert back to the old UI until there is a proper fix.
I've had the same issue for some time now. I'm running latest Debian with i3wm and Nvidia GPU.
Switching windows in i3wm to and from a steam window also seems to produce this increase in VRAM usage by Steam.
For some games I really feel the need to kill steam while playing to avoid lag, which has not been the case before.
The -vgui
workaround means I can't log in to 'Friends'
Could add more information but I think most of it has already been said by others.
This is also happening for me. I'm on arch linux using awesome as my window manager and an Nvidia GPU.
-vgui stopped working in the latest beta, making me very unhappy, my game stutters like crazy when I hit VRAM limit, and, you know, it's Steam-only now, it absolutely has to be launched by Steam.
But check this out, I'm in game, can't restart Steam:
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1895 G /usr/libexec/Xorg 1597MiB |
| 0 N/A N/A 75851 G ...ling,SpareRendererForSitePerProcess 31MiB |
| 0 N/A N/A 300059 G /usr/lib64/seamonkey/seamonkey 5MiB |
| 0 N/A N/A 711116 G ...local/share/Steam/ubuntu12_32/steam 18MiB |
| 0 N/A N/A 711178 G ...re/Steam/ubuntu12_64/steamwebhelper 16MiB |
| 0 N/A N/A 723173 G /usr/lib64/firefox/firefox 23MiB |
| 0 N/A N/A 841566 C+G ...ns\client\bin\pc\QuakeChampions.exe 3907MiB |
+---------------------------------------------------------------------------------------+
# kill -9 711178
# nvidia-smi
(...)
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1895 G /usr/libexec/Xorg 384MiB |
| 0 N/A N/A 75851 G ...ling,SpareRendererForSitePerProcess 24MiB |
| 0 N/A N/A 300059 G /usr/lib64/seamonkey/seamonkey 5MiB |
| 0 N/A N/A 711116 G ...local/share/Steam/ubuntu12_32/steam 18MiB |
| 0 N/A N/A 723173 G /usr/lib64/firefox/firefox 23MiB |
| 0 N/A N/A 841566 C+G ...ns\client\bin\pc\QuakeChampions.exe 3907MiB |
| 0 N/A N/A 845410 G ...re/Steam/ubuntu12_64/steamwebhelper 7MiB |
+---------------------------------------------------------------------------------------+
I can kill steamwebhelper while the game is on. The Steam window closes, new one loads on the current desktop, but the game continues running.
Oh, and of course I have DISABLED "Enable GPU accelerated rendering in web views" as well as "Enable hardware video decoding" (just in case) whenever this started, which never helped, but -vgui did. RIP -vgui [*]
Nvidia 535.54.03, MATE (marco is the WM), Xorg 1.20.14
So I've noticed nvidia driver 535.86.05 is out, promising fixes for memory leaks. It only mentioned leaks during VT switching and Wayland, so neither is our case, but it was worth a try. I'm sad to report, 535.86.05 does NOT help the Steam VRAM leak.
Steam also updated to newer beta (from yesterday), no change in this behavior (now Store goes full black when you look at it the wrong way, but even in the black state, it still leaks :))
I've tested replacing the WM (marco --replace &) - no change to VRAM usage. It's just between the embedded Chromium and Xorg, the WM doesn't matter.
I've also noticed the leak in normal usage happens when I switch desktops (specifically, when going to/from the desktop with Steam). That's why it takes me a day or so to actually achieve the 1,5 GB that breaks my game (already set to medium textures as a partial work-around).
So I tested other means of making it leak VRAM very fast:
With Alt-F6/F5 smashing, I can eat up full 10 GB of VRAM in less than 40 seconds :) Compare that to 55 seconds by dragging the mouse - who would think I'll be speedrunning VRAM exhaustion of Steam client today! :))
Again: the workaround is killing steamwebhelper. PS. Steam will restart hundreds of those after a while, ~15 more each time, doesn't matter if you kill -9 the main one, or killall steamwebhelper, they will multiply :)
I have another workaround, you can run Steam in software rendering mode with the following environment variables:
__GLX_VENDOR_LIBRARY_NAME=mesa
GALLIUM_DRIVER=softpipe
MESA_LOADER_DRIVER_OVERRIDE=softpipe
LIBGL_ALWAYS_SOFTWARE=1
Then just unset those variables in the launch option for the game, so that the game doesn't run in software mode.
There's some other options for software drivers, swr and llvmpipe. See what works best for you.
As a quick test I installed Gnome to try out a more traditional desktop environment (which is shipped with f.ex Ubuntu). It seem to run on Wayland as default and I was not able to replicate this issue there at all, no matter how much I was resizing the window or switching desktop / workspaces. Switching Gnome to run on Xorg however the issue is there once again and it does not take long for Steam to gobble up the available VRAM.
I am experiencing this issue on Debian 11.7, kernel 5.10.0-23-amd64. The impact is that, if I don't restart Steam, a launched game will lag horribly due to a lack of VRAM.
Steam About info:
Steam Version: 1689034492
Steam Client Build Date: Mon, Jul 10 4:59 PM UTC -08:00
Steam Web Build Date: Mon, Jul 10 10:48 AM UTC -08:00
Steam API Version: SteamClient020
I use the i3 window manager (Airblader gaps fork built from source). After a few hours usage I routinely see Xorg VRAM usage (as reported by nvidia-smi
) at ~5GB+. This memory usage seems to trend upwards whether I'm interacting with Steam or not. Quitting Steam sends Xorg VRAM usage down to ~313MB on my system.
I have a GeForce GTX 1070, nvidia-smi
version info:
NVIDIA-SMI 470.182.03 Driver Version: 470.182.03 CUDA Version: 11.4
Happy to add any info if useful.
Update: it appears interacting with Steam (circling my mouse around the screen so that it hovers over lots of different elements) makes the usage increase rapidly. Like ~200MB in 10 seconds of interaction rapid.
Same issue. I can get to INSANE 7 GB + xorg VRAM allocation in less than 2 minutes, just switching between workplace with steam and any other. env: Steam client version (build number or date): 1689034492 Distribution (e.g. Ubuntu): Arch (steam from multilib, official repo, FYI) Opted into Steam client beta?: No Have you checked for system updates?: Yes Short system info: arch linux, zen kernel, nvidia + nvidia closed source driver, i3wm
A new version of Steam has just been released and now neither beta or stable can be used with -vgui
and we need to restart Steam a few times a day :frowning_face:
Stable:
Steam Version: 1690583737
Steam Client Build Date: Fri, Jul 28 8:44 PM UTC -08:00
Steam Web Build Date: Sat, Jul 29 12:21 AM UTC -08:00
Steam API Version: SteamClient020
Also having this issue as well.
It's possible to downgrade back to the old build and continue using -vgui with this guide: https://steamcommunity.com/discussions/forum/0/6516193260168294059/
Basically it uses an archive.org link to force Steam to downgrade, and then disables updates. Of course this is a very ugly workaround, but at least it's usable, unlike the current version.
It's possible to downgrade back to the old build and continue using -vgui with this guide
I've followed that 30 times (archive.org throttled me to 20 Mbps after a few tries), disabling beta participation, entering either "false" or "disabled" (because the guide has 3 different versions!) into ~/.local/share/Steam/steam.cfg - nothing helped.
What I was missing was: rm -rf ~/.local/share/Steam/package/*
It finally worked. Thanks for pointing me in that direction. I have steam -vgui working again. But it's ummm... not so good.
Of course current Steam is bonkers, yesterday I had a black screen (100% reproducible if you're in the Store and switch desktops) while trying to buy a game. But I managed to buy it (you can go Store->Library->Store, refresh, it doesn't forget your order), then took screenshots of a game and the new GUI can't even display them (actually any screenshots at all). This old version with -vgui has no VRAM leak, no black screens (but a white screen when going to the Store for the first time, OBVIOUSLY :D)... but of course you can't do anything with it because of issue #9237.
I don't know what's worse, having to killall -9 steamwebhelper every hour, or having to ctrl-click everything, otherwise no menus work... I'll think about it.
With Alt-F6/F5 smashing, I can eat up full 10 GB of VRAM in less than 40 seconds :) Compare that to 55 seconds by dragging the mouse - who would think I'll be speedrunning VRAM exhaustion of Steam client today! :))
I got inspired by this post, so here's my first PB :)
@grrbhen AHAHAHAHHA, you're genius!
With the current Beta and Nvidia drivers I see no issues with VRAM leak, more testing needed. :crossed_fingers: https://youtu.be/wE9gmSnlr-0
Steam Version: 1692318383
Steam Client Build Date: Fri, Aug 18 2:07 AM UTC -08:00
Steam Web Build Date: Thu, Aug 17 11:01 PM UTC -08:00
Steam API Version: SteamClient020
❯ pacman -Q nvidia
nvidia 535.98-1
I'm on the beta and it looks like the issue is still there.
Steam Version: 1692390949
Steam Client Build Date: Fri, Aug 18 12:39 PM UTC -08:00
Steam Web Build Date: Fri, Aug 18 1:21 PM UTC -08:00
Steam API Version: SteamClient020
So it looks like it was fixed for a bit and then regressed.
@J-Pai I've just updated but do not see any regression like how it was.
Now it at most increases by a few MiBs for a few seconds of rapid window resizing then corrects itself.
Have you updated your nvidia drivers?
My driver isn't exactly the same as yours, but I don't think minor versions will make that much of an impact on this issue.
| NVIDIA-SMI 535.86.05 Driver Version: 535.86.05 CUDA Version: 12.2 |
It also seems unlikely Nvidia drivers are the cause for this issue considering the old UI did not have this issue.
I can confirm, it seems to be fixed for me on the latest beta (build date 18th August) with driver version 535.98.
It also seems unlikely Nvidia drivers are the cause for this issue considering the old UI did not have this issue.
I don't see why, it's totally possible that the error is in the Nvidia driver but the old UI simply didn't trigger it (like most other programs), especially considering the size of the changes.
fixed for me on the latest beta (build date 18th August) with driver version 535.98.
I'm too scared to go back to the new UI, but checking https://forums.developer.nvidia.com/t/topic/262477 - 535.86.05 → 535.98 changes tl;dr: "fixing some corner cases". [1]
I'm on 535.98 already, but it was kind of hard to revert to an objectively nicer (better looking on 1080p and way more responsive!) Steam version to try to confirm whether the new driver really fixed it. My fault. I'm only explaining why I'm sceptical.
[1] Yes, it's a bad, BAD change log, it has a highlight of "Fixed a bug which could cause the screen to flicker." - as if they don't know what conditions/hardware/software could ever cause that if no one complained and no one noticed improvement after installing it ;) But they have mentioned VRAM leaks in the previous one, so I fully expect them to mention fixing a Steam VRAM leak if it was their fault.
Actually it doesn't seem to be fixed after all. I have no idea why, earlier when I tested I resized the window a lot and the VRAM usage didn't change at all, now I checked again and it spiked in seconds again. Really weird and disappointing.
I also wonder why this isn't a higher priority to fix, since it seems to be fairly common (especially if you consider that many people probably have it without knowing, since you actively have to check the VRAM usage to notice it).
Upgrading my nvidia drivers AND using the Steam Beta appears to resolve the issue. I tried just the Beta and just the new drivers and experienced the problem; the combination appears to solve the issue.
Driver Version: 525.125.06
Steam Version: 1692390949
Steam Client Build Date: Fri, Aug 18 12:39 PM UTC -08:00
Steam Web Build Date: Fri, Aug 18 1:21 PM UTC -08:00
Steam API Version: SteamClient020
Driver Version: 525.125.06
We're all on 535 series for 3 months (and they got the "production" release on June 14th). Are you sure 525.125.06 (also from June, aka before this issue was opened) are the "new drivers" that fix the issue? Or are you saying rolling back to older branch fixes it? Yes, most people here, naturally, reported from nvidia 530. and 535. (as those were the official versions when the new Steam UI hit us), but scroll up a bit and there's a report from 470.* on a 1070, so...
[And to add to my previous rant about nvidia changelogs: 535.104.05 has the exact same "changes" (as in: actually no changes, judging by those notes) as "current production branch release" 535.98 - I understand combining beta changelogs into a production release, but these are two official production releases with the same changelog... this is why AMD crowd calls them "novideo", clearly everything at nvidia is run by interns]
Are you sure 525.125.06 (also from June, aka before this issue was opened) are the "new drivers" that fix the issue?
I was on 470.182.03
until last night. Before upgrading I had tested using Steam Beta but observed same high VRAM usage. Last night I upgraded my Debian install from 11.7 to 12, which includes the new NVIDIA drivers (525.125.06). With just new drivers I continued to experience the issue (though I didn't test very extensively), so I tried switching to Beta. Thus far the issue seems to have been resolved.
It's still happening for me. Turning off "Enable GPU accelerated rendering in web views" solves the issue but makes some things laggy (Youtube videos in announcements, achievement screen). I'm using the beta with Nvidia driver version 535.104.05.
@Stoneblackdog that seem to be the reason why I didn't see the issue since https://github.com/ValveSoftware/steam-for-linux/issues/9638#issuecomment-1684486284 (2023.08.19). I had turned off GPU acceleration and Hardware video encoding quite a while ago.
Re-enabing GPU acceleration does indeed reintroduce the extreme memory usage again.
It's still happening for me. Turning off "Enable GPU accelerated rendering in web views" solves the issue but makes some things laggy (Youtube videos in announcements, achievement screen). I'm using the beta with Nvidia driver version 535.104.05.
Looks like this fixed it for me.
Turned off a GPU accelerated related settings and steam no longer leaks.
Seems to be fixed using driver 535.104.05 and the beta client with GPU acceleration turned off.
I am also having this problem. I am using nvidia 535.104.05 on Garuda (Arch based distro) with Mate desktop, and up to what I have seen, the problem is not consistent, when I just open steam, the memory leak does not appear to be there, however if I keep it open, at some point the memory starts leaking again forcing me to restart.
@fcolecumberri for me I started noticing it as I switched workspaces. You could try to disable hardware acceleration in Steam, this has at least worked for most here.
Steam eats 70% of my laptop's GPU VRAM (RTX3600, 6GB). Running 535.104.05 on EndeavourOS+Cinnamon. I'm starting to think we will never see the light of a fix, like #6811 #3783 and many others, as it wasn't even fixed with their new client. In the meanwhile, there is a FOSS steam client, https://github.com/Rosentti/opensteamclient, that's being rewritten in C#. You can download, install and run games with the C++ client.
wow the bug still exists
wow the bug still exists
it will forever as long as a valve employee doesn't have a look. the absolute state of proprietary software
This has been fixed for a long time for me. I'm willing to close this issue. If you're still experiencing the problem it might be different from mine, try opening a new issue.
Glad it's fixed for OP, but I'm still having the same issue. Can anyone else also still repro or is it just me?
Glad it's fixed for OP, but I'm still having the same issue. Can anyone else also still repro or is it just me?
It's not just you, still happening for me aswell
not fixed....
Still have this issue as well. Resizing the steam window with gpu acceleration enabled will make this issue appear super fast. Can consume all my GPU VRAM quite fast.
Steam Beta Branch: Steam Beta Update
Steam Version: 1703100617
Steam Client Build Date: Wed, Dec 20 21:06 UTC -08:00
Steam Web Build Date: Wed, Dec 20 20:14 UTC -08:00
Steam API Version: SteamClient021
nvidia drivers 535.43.20
everything is fine with gpu acceleration disabled, except the client is laggy and capped to 60 on scrolling.
This issue is indeed not fixed and it can still occur, just open steam maximize it a few times or resize it and the vram spikes a lot without ever freeing any vram, can reproduce on both MESA and Nvidia proprietary. Additionally it also puts everything under Xorg.
This issue needs to be re-opened.
Hello, I am having the exact same problem! (resizing the Steam window causes Xorg's VRAM usage to skyrocket), please re-open the issue @xpander69!
Hello, I am having the exact same problem! (resizing the Steam window causes Xorg's VRAM usage to skyrocket), please re-open the issue @xpander69!
Sorry but i can't open it :) im not the Original poster. But the other issue with same symptoms is open if you check above.
Sorry but i can't open it :) im not the Original poster. But the other issue with same symptoms is open if you check above.
Oops, I meant to @JoshuaFern! I have also added my concerns to #6715.
I feel bad closing the issue because so many people are having a similar problem, but as I said before my original issue is resolved on my end. I was able to use Steam without any noticeable VRAM leaks, and I've since switched away from i3wm with an Nvidia GTX 1060 3GB to hyprland with an AMD RX 6800 XT with no further VRAM issues to report.
Hope Valve figures this out for everyone.
@JoshuaFern You just turned off GPU acceleration (saw in your previous messages). But the original issue isn't solved at all. Try to use Big Picture and you will fell what it is to live without GPU acceleration.
Logic is strange. You have changed conditions to avoid issue - so the issue is solved. But it's not. At all.
my system up-to-date issue 100% isn't solved Steam eats out all vram
Your system information
Please describe your issue in as much detail as possible:
I've been getting errors in my games because I'm running out of VRAM. On further examination, I discovered via
nvtop
that xorg was using most of my VRAM, which was only freed again after closing Steam. Note that I have GPU Accelerated Rendering turned off.May be related to https://github.com/ValveSoftware/steam-for-linux/issues/9516
Reproducing this issue:
I'm running the window manager i3 and I found repeatedly switching between the workspace with Steam and the workspace with the terminal running
nvtop
resulted in ever increasing VRAM on my machine. Starting a game also increases VRAM usage by approximately 50MB.