protonscr

Steam causes Xorg to leak memory

steamopen Steam client
ValveSoftware/steam-for-linux#5764 · opened 2018-09-15 by kiroma · updated 2023-01-12 · 12 comments · github
Kkiroma 2018-09-15 github

Your system information

  • Steam client version (build number or date): Sep 8 2018
  • Distribution (e.g. Ubuntu): Kubuntu 18.04
  • Opted into Steam client beta?: Yes
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

When Steam is running for a prolonged amount of time it causes Xorg to leak memory.
This issue was primarily the root cause of #5279.

Steps for reproducing this issue:

  1. Open steam
  2. Wait
  3. Check Xorg memory usage
Kkiroma 2019-01-25 github

I've just noticed that after a long session of gameplay the memory usage of Xorg doesn't raise above the normal. I'm not exactly sure if it's an odd occurrence though. 21 January 2019 beta build.

Kkiroma 2019-11-22 github

So I'm bumping this again since after a short session the X server managed to reach over 1GB of RAM usage, shortly before my computer froze

AA-UNDERSCORE-D 2020-01-02 github

re-Bumping this, issue persists

AA-UNDERSCORE-D 2020-03-28 github

Continues to be an issue.

PPeter0x44 2020-10-03 github

Bumping.
I have no idea why such a serious problem is being mostly ignored here.

AA-UNDERSCORE-D 2020-10-03 github

Yeah I'll say "still an issue" here as well. Ive taken to keeping steam closed most of the time which really sucks for random game invites and such

Jjilv220 2020-11-30 github

Same here. Still a issue. Leaving steam client open cause my xorg eating more and more memory.

RRistovski 2020-12-01 github

Can confirm on Gentoo with XMonad - Steam just caused Xorg to accumulate almost a gigabyte of RAM after having Steam open for ~1 day. Closing Steam made Xorgs ram usage drop to a measly 132MB.

Having multiple Steam sub-windows open (like friends list, chat etc) makes it even worse.

TTheBeardOfTruth 2021-04-29 github

Steam still bloats xorg with gigabytes of unused pixmaps or windows over two and a half years later, often within the span of hours.

In this case steam has been running for 8 hours:
image

And here is the exact same process list after restarting steam and waiting for it to load
image

Not ice the drastically lower Xorg memory use (a delta memory of 791 MiB, that's ~100MiB/ hour, a rather excessive leak, if you ask me)

Ddakrk 2021-11-02 github

Happy late 3rd birthday to this issue 🎉

FForteDexe 2021-12-16 github

the problem still exist, manjaro gnome 40

Nnonchip 2023-01-12 github

aaaaaaand now it's leaking so many sockets i can't actually start anything anymore (not even e.g. glxgears or xlsclients from outside of steam) after 5ish minutes of steam starting, due to Maximum number of clients reached...

Nothing extracted yet.