steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

Steam freezes after running for a while

Open Seralyne opened this issue 3 years ago • 4 comments

This is a duplicate of #8717, but I do not think user's solution actually tends to the underlying problem, as my hardware situation is slightly different, but I encounter pretty much identical problems.

Your system information

  • Steam client version (build number or date): 1660960119
  • Distribution (e.g. Ubuntu): Arch Linux
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes

Specs for good measure: OS: Arch Linux x86_64 Kernel: 5.19.4-arch1-1 DE: Plasma 5.25.4 WM: kwin CPU: AMD Ryzen 5 3600X (12) @ 3.800GHz GPU: NVIDIA GeForce RTX 3070 Ti Memory: 16 Gigs of DDR4 at 2400 MHz

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large code pastes as a Github Gist

Quoting the origininal user's problem: The Steam client freezes after running for a period of time. The main performance is that all windows of Steam cannot be dragged, and this problem cannot be solved by ending the Steam process. After entering killall steam in Konsole, the Steam window still exists and It's stuck and can't start a second Steam process. A killall -9 steam will kill it just fine, unlike original user's problem. Steam will freeze together with the running game, which makes my game experience very bad.

Steps for reproducing this issue:

  1. Open Steam (no matter if native or runtime), and let it run. Game independent, and no discernable pattern to the behaviour.

Seralyne avatar Sep 02 '22 17:09 Seralyne

I also have this issue, like the poster of the original issue had, it started several months ago. (Exactly like shown in that video) Any game running at the time of the freeze also freezes. It freezes for a time, maybe 10 seconds (both steam window and any game window).

I figured it was a hardware issue causing the bug but after checking my drives, they seem healthy. Dmesg doesn't output anything during the freeze(s), but I started strace before the freeze on all steam processes and it seems to hang on a futex?

After a while steam crashes for me, after 10 or so rounds of Steam freezing;

This is some of the output of " for pid in $(pgrep steam); do { strace -p $pid; } done "

https://gist.github.com/apelsin21/72abe7dbe5a3cddebcf17924fd0963a9

During the freeze, the latest strace output is futex(0x59098930, FUTEX_WAIT_BITSET_PRIVATE, 0, {tv_sec=5973, tv_nsec=956885752}, FUTEX_BITSET_MATCH_ANY) = 0

System info: https://gist.github.com/apelsin21/cbc07e4b7260b90f6f1b3a9d8b2b036e

apelsin21 avatar Sep 03 '22 10:09 apelsin21

Do you use wayland? Steam, KDE, Nvidia and wayland doesn't work properly. Could maybe be related to #7245 or #8693.

Rosentti avatar Sep 04 '22 12:09 Rosentti

Yes. I do. I use Wayland. Primarily because X doesn't tend to play nice with multi-monitor setups with different refresh rates, and this seems to be the only decent solution to that out there.

Seralyne avatar Sep 04 '22 13:09 Seralyne

I don't use Wayland, I use Xfce 4.16

apelsin21 avatar Sep 05 '22 18:09 apelsin21

I also have the similar issue. It freezes right after opening. I am running OS : Ubuntu 22 Processor : AMD® Ryzen 5 3550h with radeon vega mobile gfx × 8 Graphics : NVIDIA Corporation TU117M / AMD® Radeon vega 8 graphics Arch: 64-bit

amit-github-personal avatar Nov 03 '22 12:11 amit-github-personal

Same for me. Recently it has been hanging a lot and the UI has become extremely unresponsive.

OS : Ubuntu 22.04 Kernel: 6.0.9 CPU : AMD Ryzen 5800X3D GPU : AMD RX 6700XT Driver: Mesa 23.0.0-devel (git-3440e89 2022-12-15 jammy-oibaf-ppa)

vilnius-leopold avatar Dec 16 '22 21:12 vilnius-leopold

Another +1. Started happening recently, haven't had issues before.

OS : Fedora 37 Kernel: 6.0.12 CPU : AMD Ryzen 3800X GPU : AMD RX 6900XT Driver: Mesa 22.2.3

RobotRoss avatar Dec 18 '22 19:12 RobotRoss

This also started happening to me within the last couple weeks

OS: Arch Linux Kernel: 6.0.12 CPU: AMD Ryzen 5950X GPU: AMD RX 580 Driver: Mesa 22.3.1

foxyllakora avatar Dec 19 '22 08:12 foxyllakora

started happening to me too. no terminal message about it haoppen it just freezes and need to be killed and restarted to work. freezes can take anywhere from 30 secondes to 15 minutes to happen. i tried running steam with zink instead and the same happen's. i also tried updating to lastest mesa-git and aside from slightly better game performences when i can start one it's the same

current setup: OS: Manjaro Linux Kernel: 6.1.0-zen2-xanmod1-1 CPU: AMD Ryzen 7 3700X (16) GPU: AMD ATI Radeon RX 5500 XT Driver: Mesa 23.0.0-devel (git-ac9af0dcee) (also tried with mesa 22.3.1)

laclcia avatar Dec 19 '22 23:12 laclcia

Also happening to me since a few days ago.

OS: Arch Linux Kernel: 6.0.12-arch1-1 CPU: Intel i5 6600K GPU: AMD RX 480 Driver: Mesa 22.3.1-1 DE: KDE Plasma 5 (X11)

Visne avatar Dec 20 '22 15:12 Visne

Also started experiencing this issue.

OS: Garuda Linux Kernel: 6.0.12-zen1-1-zen CPU: Ryzen 3400G GPU: ditto Driver: Mesa 22.3.1-1 DE: KDE Plasma 5 (X11)

dowttie avatar Dec 21 '22 10:12 dowttie

Just adding another report to the pile... also experiencing this.

OS: Arch Linux Kernel: 6.1.1-arch1-1-custom CPU: AMD Ryzen 5 5600X GPU: AMD RX 580 Driver: Mesa Git master DE: KDE Plasma 5 (Wayland)

Valmar33 avatar Dec 27 '22 16:12 Valmar33

Same issue here, Steam is freezing after start most of the time:

OS: OpenSuse TW Kernel: 6.1.0-tkg CPU: AMD Ryzen 5 5950X GPU: AMD RX 6900XT Mesa: 22.2.4-334.1 DE: KDE Plasma 5 (X11)

pingubot avatar Dec 27 '22 17:12 pingubot

Anyone tried the flatpak version of steam?

regulator-g avatar Dec 27 '22 18:12 regulator-g

I was having this issue until I disabled "Enable GPU accelerated rendering in web views" in settings->interface. Can anybody else confirm this fixes it?

OS: Pop!_OS 22.04 Kernel: 6.0.6 generic CPU: AMD Ryzen 7 5800X3D GPU: Nvidia GTX 1660ti - driver ver: 515.65.01 DE: Gnome (X11)

sosodev avatar Dec 27 '22 18:12 sosodev

I was having this issue until I disabled "Enable GPU accelerated rendering in web views" in settings->interface. Can anybody else confirm this fixes it?

OS: Pop!_OS 22.04 Kernel: 6.0.6 generic CPU: AMD Ryzen 7 5800X3D GPU: Nvidia GTX 1660ti - driver ver: 515.65.01 DE: Gnome (X11)

no, freeze happend with that setting disabled.

pingubot avatar Dec 27 '22 18:12 pingubot

no, freeze happend with that setting disabled.

Re-reading the thread I guess my issue was a bit different. The Steam window was responsive for me but the client would just stop rendering or it would render but not respond to input at all. :( Weird that Steam is behaving so poorly on Linux lately.

sosodev avatar Dec 27 '22 18:12 sosodev

OS: Pop!_OS 22.04 LTS Kernel: 6.0.12 CPU: Ryzen 5 5600X RAM: 16GB GPU: RX 6600 XT Mesa: 22.3.1 Kisak DE: GNOME 42

I'm having an issue where Steam runs fine for about 3-7 hours until it stops opening and no games from Steam open either. I also see unusual disk read and write occur during this time. I have to manually kill Steam and it works fine until 3-7 hours later...

I think it might have happened when I had Steam open once. I tried to play The Sims 4, but it got stuck at compiling Vulkan shaders. I killed Steam and it worked fine afterwards.

UPDATE: I had another freeze while Steam was open. The client became unresponsive and closing Steam did nothing. I had to manually kill it to work again. I was playing Crysis 2 at the time and it ran fine without problems.

robotman40 avatar Dec 27 '22 23:12 robotman40

I was having this issue until I disabled "Enable GPU accelerated rendering in web views" in settings->interface. Can anybody else confirm this fixes it?

OS: Pop!_OS 22.04 Kernel: 6.0.6 generic CPU: AMD Ryzen 7 5800X3D GPU: Nvidia GTX 1660ti - driver ver: 515.65.01 DE: Gnome (X11)

can confirm it did not fix the issue for me as it was allready disabled.

laclcia avatar Dec 28 '22 03:12 laclcia

Could this be related to this bug(please note that this bug is only for wayland and nvidia gpu so far from what I noticed, but if you guys have it on xorg it could be something else completely, it's just again KDE Plasma DE):

https://forums.developer.nvidia.com/t/steam-notification-causes-the-client-to-freeze-hang-completely-kde-wayland/236138

https://bugs.kde.org/show_bug.cgi?id=462027

kodatarule avatar Dec 28 '22 08:12 kodatarule

Could this be related to this bug(please note that this bug is only for wayland and nvidia gpu so far from what I noticed, but if you guys have it on xorg it could be something else completely, it's just again KDE Plasma DE):

https://forums.developer.nvidia.com/t/steam-notification-causes-the-client-to-freeze-hang-completely-kde-wayland/236138

https://bugs.kde.org/show_bug.cgi?id=462027

My issue happens on an Amd GPU running XFCE (Xorg).

Also, disabling GPU accelerated rendering in web views does not fix my problem

apelsin21 avatar Dec 28 '22 08:12 apelsin21

I am able to reproduce the random hang after some time on steam deck as well, it seems like notification triggers it.

EDIT: That is when you are using the desktop session ofc

kodatarule avatar Dec 28 '22 16:12 kodatarule

I am able to reproduce the random hang after some time on steam deck as well, it seems like notification triggers it.

EDIT: That is when you are using the desktop session ofc

If you are saying notifications trigger the freeze, can you try doing it where Steam is just running and after like 3-7 hours, it becomes unresponsive. (Running games will continue to run, but you cannot either open Steam or any games from it. If a Steam window is open, it won't be responsive)

robotman40 avatar Dec 28 '22 23:12 robotman40

I am also getting this on Steam Deck (in desktop mode).

100% stock Steam Deck, locks up after a few seconds after getting a notification. This makes the trackpads and keyboards unusable as well. The notification gets stuck onscreen and will not go away.

I can see the process in top and kill it. Reopening Steam will cause the freeze again once I get a notification. If I right-click on the Steam icon in the system tray when Steam is in this "frozen" state, nothing happens for approximately 1 minute - and then the menu opens (usually after I forgot I right clicked). Selecting an option from the menu does nothing.

If Steam is in the background when it freezes, it will not render on the desktop. I can bring the window to the foreground, but it is invisible. If Steam is in the foreground when it freezes, it is stuck in whatever state it was rendering last (so if I was looking at my library, it stays on the library view).

This only happens in desktop mode Steam. Gaming mode seems to be unaffected. Currently on the latest Preview channel, whatever build was active on 2022-28-12. Just checked for updates and everything is up-to-date.

Jay2645 avatar Dec 29 '22 02:12 Jay2645

I am able to reproduce the random hang after some time on steam deck as well, it seems like notification triggers it. EDIT: That is when you are using the desktop session ofc

If you are saying notifications trigger the freeze, can you try doing it where Steam is just running and after like 3-7 hours, it becomes unresponsive. (Running games will continue to run, but you cannot either open Steam or any games from it. If a Steam window is open, it won't be responsive)

That issue I am unable to reproduce however I do have the issue which Jay2645 is explaining under Steam Deck(in desktop mode) and on my nvidia PC under KDE Wayland(xorg is fine). Any notification - a friend entering a game, or your new game is installed or you receive a message - automatically results in the client being frozen, exactly how Jay2645 explains it(both under Stable and Beta, haven't tried Preview). Right clicking on the tray icon = nothing, if you had the client in the background clicking on it and then trying to click on anything on it = no response.

kodatarule avatar Dec 29 '22 09:12 kodatarule

To work around this issue for now, you can use the new big picture. For me, the new big picture does not freeze upon receiving a notification.

Rosentti avatar Dec 29 '22 10:12 Rosentti

Please try disabling background shader processing to see if this has an impact on the freezes? (Steam -> Settings -> Shader Pre-Caching -> Allow background processing of Vulkan shaders)

TTimo avatar Dec 29 '22 18:12 TTimo

@TTimo Mine was already disabled and I was still having issues.

Jay2645 avatar Dec 29 '22 19:12 Jay2645

+1 Just started happening about two weeks ago for me, too.

OS: Gentoo Linux x86_64 Kernel: 5.10.52-gentoo #2 SMP PREEMPT DE: Plasma 5.25.5, with X, not Wayland WM: KWin CPU: AMD Ryzen 7 3700X GPU: Radeon RX 580 Driver Version: 4.6 (Compatibility Profile) Mesa 22.1.7 OpenGL Version: 4 Memory: 32 GB DDR4 3200 Steam Runtime Version: steam-runtime_0.20221019.0 Steam client updated no earlier than December 2022

It doesn't seem to affect any games I'm playing. It only happens when I exit a game and do other stuff for a while. When I try to go back to the Steam window, it has stopped rendering. I can move the window around, but it does not redraw. I can only force terminate by way of a mixture of SIGTERM and SIGKILL.

Pistos avatar Dec 30 '22 04:12 Pistos

Same thing happening to me on Fedora + wayland + amdgpu right now.

This happened before on fedora + Xorg + nvidia before I changed my gpu and reinstalled. :S

tomich avatar Dec 30 '22 14:12 tomich