ValveSoftware / steam-for-linux

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

Enabling GPU acceleration in web views causes issues with window manager #10583

Open MartenKahr opened 8 months ago

MartenKahr commented 8 months ago

Your system information

Please describe your issue in as much detail as possible:

While GPU acceleration in web views is enabled, I observed the following issues:

All issues also stopped when disabling the GPU acceleration setting and restarting Steam.

Steps for reproducing this issue:

  1. Enable GPU accelerated rendering in web views.
  2. Observe issues described above.
  3. Disable GPU accelerated rendering in web views.
  4. Observe all issues described above no longer taking place.
MartenKahr commented 8 months ago

I was mistaken that disabling GPU acceleration causes issues to stop: restarting Steam after the settings change is what caused the issue to stop. Launching the Steam client again this morning, the issues were back despite having disabled GPU acceleration. Turning the setting back on and restarting through the prompt of the settings menu fixed the issue again, with GPU acceleration enabled.

After restarting through that prompt, the client window is resized to not take up the full screen, and I can press the maximise button in the top right corner to have it take up the full screen. This changes the icon, making it obvious I can take the window off from maximised mode, and issues do not reappear even when the client is maximised.

However, when I completely exit the Steam client (but not when I minimise it, or "close" it and reopen from the tray menu) and launch it again, regardless of whether the main client window is maximised or a smaller window, it restarts in a maximised state and the issues reappear regardless of the state of the GPU acceleration setting. Despite the window being maximised, the middle icon in the top right corner is the maximise icon, not the reduce icon.

MartenKahr commented 8 months ago

After repeatedly closing and launching the Steam client to nail down exact behavior and determine a consistent fix/workaround for the time being, restarting the Steam client via the settings prompt to restart after a restart-requiring change has stopped fixing the issue.

EDIT: A full system reboot restores previous behavior, where the the main client launches with issues at first, but restarting via a settings prompt fixes the issues.

DariusWolfe commented 8 months ago

[Uploading steam-logs.tar.gz…]() I'm experiencing the exact same issue, except that literally nothing I've tried has fixed it. It's minor, but at the same time completely maddening.

Click to expand ``` Steam Beta Branch: Stable Client Steam Version: 1709846872 Steam Client Build Date: Wed, Mar 6 12:28 UTC -08:00 Steam Web Build Date: Thu, Mar 7 13:17 UTC -08:00 Steam API Version: SteamClient021 System: Kernel: 5.15.0-101-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy Machine: Type: Desktop System: Gigabyte product: Z390 AORUS PRO WIFI v: N/A serial: Mobo: Gigabyte model: Z390 AORUS PRO WIFI-CF serial: UEFI: American Megatrends v: F12 date: 11/05/2021 CPU: Info: 6-core model: Intel Core i7-8700K bits: 64 type: MT MCP smt: enabled arch: Coffee Lake rev: A cache: L1: 384 KiB L2: 1.5 MiB L3: 12 MiB Speed (MHz): avg: 1799 high: 3985 min/max: 800/4700 cores: 1: 894 2: 875 3: 3966 4: 2506 5: 1521 6: 1637 7: 800 8: 1168 9: 800 10: 910 11: 2532 12: 3985 bogomips: 88796 Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx Graphics: Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] vendor: ASUSTeK driver: nvidia v: 535.161.07 pcie: speed: 8 GT/s lanes: 8 ports: active: none off: DVI-D-1,HDMI-A-1 empty: DP-1 bus-ID: 02:00.0 chip-ID: 10de:1c82 class-ID: 0300 Device-2: Logitech HD Pro Webcam C920 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-13.3:8 chip-ID: 046d:082d class-ID: 0102 serial: Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: nvidia unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia display-ID: :0 screens: 1 Screen-1: 0 s-res: 3840x1080 s-dpi: 101 s-size: 966x272mm (38.0x10.7") s-diag: 1004mm (39.5") Monitor-1: DVI-D-0 pos: right res: 1920x1080 hz: 60 dpi: 102 size: 477x268mm (18.8x10.6") diag: 547mm (21.5") Monitor-2: HDMI-0 pos: primary,left res: 1920x1080 hz: 60 dpi: 102 size: 477x268mm (18.8x10.6") diag: 547mm (21.5") OpenGL: renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 535.161.07 direct render: Yes Audio: Device-1: Intel Cannon Lake PCH cAVS vendor: Gigabyte driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403 Device-2: NVIDIA GP107GL High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 8 bus-ID: 02:00.1 chip-ID: 10de:0fb9 class-ID: 0403 Device-3: Logitech HD Pro Webcam C920 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-13.3:8 chip-ID: 046d:082d class-ID: 0102 serial: Sound Server-1: ALSA v: k5.15.0-101-generic running: yes Sound Server-2: PulseAudio v: 15.99.1 running: yes Sound Server-3: PipeWire v: 0.3.48 running: yes Network: Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel bus-ID: 00:14.3 chip-ID: 8086:a370 class-ID: 0280 IF: wlo1 state: down mac: Device-2: Intel Ethernet I219-V vendor: Gigabyte driver: e1000e v: kernel port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15bc class-ID: 0200 IF: eno2 state: up speed: 1000 Mbps duplex: full mac: Bluetooth: Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB driver: btusb v: 0.8 bus-ID: 1-14:6 chip-ID: 8087:0aaa class-ID: e001 Report: hciconfig ID: hci0 rfk-id: 0 state: up address: bt-v: 3.0 lmp-v: 5.1 sub-v: 100 hci-v: 5.1 rev: 100 Drives: Local Storage: total: 5.46 TiB used: 1.08 TiB (19.7%) ID-1: /dev/sda vendor: Seagate model: ST2000DX002-2DV164 size: 1.82 TiB speed: 6.0 Gb/s type: HDD rpm: 5900 serial: rev: SC12 scheme: GPT ID-2: /dev/sdb type: USB vendor: Seagate model: BUP BK size: 3.64 TiB type: N/A serial: rev: 0108 scheme: GPT Partition: ID-1: / size: 1.79 TiB used: 91.93 GiB (5.0%) fs: ext4 dev: /dev/sda2 ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/sda1 Swap: ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile USB: Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 Device-1: 1-9:2 info: Seagate RSS LLC BUP BK type: Mass Storage driver: uas interfaces: 1 rev: 2.1 speed: 480 Mb/s power: 500mA chip-ID: 0bc2:ab30 class-ID: 0806 serial: Hub-2: 1-11:3 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s power: 100mA chip-ID: 05e3:0608 class-ID: 0900 Device-1: 1-12:4 info: Integrated Express IT8297 RGB LED Controller type: Keyboard driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 048d:8297 class-ID: 0301 Hub-3: 1-13:5 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s power: 100mA chip-ID: 05e3:0608 class-ID: 0900 Device-1: 1-13.1:7 info: Razer USA RZ01-0321 Gaming Mouse [DeathAdder V2] type: Mouse,Keyboard driver: hid-generic,usbhid interfaces: 4 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 1532:0084 class-ID: 0300 Device-2: 1-13.3:8 info: Logitech HD Pro Webcam C920 type: Video,Audio driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 046d:082d class-ID: 0102 serial: Device-3: 1-13.4:9 info: Holtek Mechanical Keyboard type: Keyboard,HID driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s power: 100mA chip-ID: 04d9:1836 class-ID: 0300 Device-4: 1-14:6 info: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: Bluetooth driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0aaa class-ID: e001 Hub-4: 2-0:1 info: Super-speed hub ports: 10 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003 class-ID: 0900 Sensors: System Temperatures: cpu: 27.8 C pch: 29.0 C mobo: N/A gpu: nvidia temp: 35 C Fan Speeds (RPM): N/A gpu: nvidia fan: 30% Repos: Packages: apt: 2541 No active apt repos in: /etc/apt/sources.list Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 1: deb [arch=amd64] https: //dl.google.com/linux/chrome/deb/ stable main Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 1: deb http: //packages.linuxmint.com virginia main upstream import backport 2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse 3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse 4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse 5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse Active apt repos in: /etc/apt/sources.list.d/slgobinath-gcalendar-jammy.list 1: deb http: //ppa.launchpad.net/slgobinath/gcalendar/ubuntu jammy main No active apt repos in: /etc/apt/sources.list.d/steam-beta.list Active apt repos in: /etc/apt/sources.list.d/steam-stable.list 1: deb [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] https: //repo.steampowered.com/steam/ stable steam 2: deb-src [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] https: //repo.steampowered.com/steam/ stable steam Active apt repos in: /etc/apt/sources.list.d/winehq-jammy.sources 1: deb [arch=amd64 i386] https: //dl.winehq.org/wine-builds/ubuntu jammy main Info: Processes: 351 Uptime: 4m wakeups: 0 Memory: 31.26 GiB used: 2.54 GiB (8.1%) Init: systemd v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12/9 Client: Cinnamon v: 6.0.4 inxi: 3.3.13 ```
Ugric commented 8 months ago

Im using manjaro and am also getting.

Kernel: 6.7.7-1-MANJARO CPU: AMD Ryzen 5 3600 (12) @ 4.200GHz GPU: AMD Radeon 7800 XT

MoistHoagie commented 7 months ago

I'm experiencing this as well on Mint.

Kernel: 5.15.0-101-generic CPU: Intel Core i5-13600K GPU: GeForce RTX 3080

I did find some tips in issue #10587. For me, the only thing that fixed it was setting my taskbar panel to Always show panel. It's not ideal, but at least a workaround for me.

DariusWolfe commented 7 months ago

My taskbar is already set to Always Show, so this definitely hasn't fixed it for me. The issue also happens on my other monitor, that does not have a taskbar, which is where it defaults to. I can move it from this monitor (as it's also where I do almost everything else) only by right-clicking the tab on the taskbar and using the 'Move to the other monitor' option.

james9001 commented 7 months ago

I'm also having this issue (first posted about it here https://github.com/flathub/com.valvesoftware.Steam/issues/1276 but it doesn't seem to be flatpak related - sorry, was the first thing I found related to the problem), copying my original comment:

I've also been having this issue for the last few weeks, with Linux Mint 21.2 and Cinnamon DE, except I'm using the steam:i386 apt package. (Apologies if this isn't the right place to comment this)

Specifically - when I launch Steam, such as by running steam in a terminal, the Steam library/store/etc application acts like its in fullscreen mode, the Maximise button doesn't do anything (the icon shows the single large box, though, so I guess the stuck state isn't "maximised"). I also have 3 monitors and from what I recall over the last few weeks it seems to start on Monitor 3. I can move the fullscreen window to another monitor with the context menu option from the Cinnamon taskbar panel thing. If I move it to Monitor 2, it obscures the taskbar panel which isn't great.

I have found a workaround though: if I toggle "Scale text and icons to match monitor settings (requires restart)" from Steam Settings > Interface, when Steam restarts itself, it acts normally for some reason! I'm not actually using any scaling on my 3x 1440p at 155Hz monitors. Maybe this will help someone else temporarily.

PC info OS: Linux Mint 21.2 DE: Cinnamon 5.8.4 Kernel: 6.1.0-1036-oem CPU: AMD 7800X3D GPU: nVidia GTX 1080 Ti

Steam info Steam Beta Branch: Stable Client Steam Version: 1709846872 Steam Client Build Date: Thu, Mar 7 7:28 AM UTC +10:00 Steam Web Build Date: Fri, Mar 8 8:17 AM UTC +10:00 Steam API Version: SteamClient021

jaxwilko commented 7 months ago

+1 same issue on Debian Sid.

PC info OS: Debian GNU/Linux trixie/sid x86_64 Kernel: 6.6.15-amd64 CPU: Intel i9-9900K GPU: NVIDIA GeForce RTX 2080 Ti Rev. A DE: GNOME 44.9 WM: Mutter

Steam info Steam Beta Branch: Steam Beta Update Steam Version: 1711734008 Steam Client Build Date: Fri, Mar 29 17:09 UTC -08:00 Steam Web Build Date: Fri, Mar 29 16:33 UTC -08:00 Steam API Version: SteamClient021

I tried @james9001's suggestion with Scale text and icons... and it crashed my whole DE so I've now had to write this twice :)

jaxwilko commented 7 months ago

After Steam Beta update the problem seems to be solved.

Steam info Steam Beta Branch: Steam Beta Update Steam Version: 1712795774 Steam Client Build Date: Thu, Apr 11 01:17 UTC -08:00 Steam Web Build Date: Wed, Apr 10 21:20 UTC -08:00 Steam API Version: SteamClient021

DariusWolfe commented 7 months ago

Thanks for the suggestion, but it definitely did NOT fix it for me. Even toggling the various settings that others have suggested has no effect, even with the Beta opt-in.

sockeye76 commented 4 months ago

Would just like to add that I am also experiencing this issue. Have had Steam installed for quite a while and used it regularly every day without this happening, but today I did something I never usually do which is open a video of a game trailer from a game on the Steam Store in fullscreen mode and doing this is what caused the issue to start for me. It was super annoying and persisted between reboots.

I am running Pop!_OS 22.04 (GNOME-based desktop environment on this version) and was able to resolve this issue by pressing Alt+Enter which put Steam back into windowed mode and made it behave as it did before this issue occured, basically back to behaving as expected, so long as I don't want to watch any trailers/videos in full screen I suppose.

RendCycle commented 4 months ago

The Steam client window resize issue happened to me in the past. I think I was able to resolve it by making sure "Change Desktop Resolution to Match Streaming Client" under Settings -> Remote Play is unchecked. Then I drag the lower-right corner of the Steam app window (with the inverted triangles icon) to resize it to a much smaller size.

The actual problem that I cannot seem to find a fix though for a long while now is the Screen Flickering when I try to watch selected video trailers in the Steam store app while the "Enable GPU accelerated Rendering in Web Views" is turned on. When turned off, it fixes the flickering but my animated Steam Background Profile becomes very choppy/slow instead. I noticed the screen flickering DOES NOT happen to some trailer videos in the store. Like for the "Elden Ring" title, my screen does not flicker even if I play it's video trailers. But watching most videos in the Steam store app, causes my whole Monitor Screen to flicker. It's really strange and I am beginning to suspect maybe it's the Video Codec used. I have also just reset my Windows 11 OS about 2 weeks ago so it should still be nearly fresh. I have done almost all test and have factory reset my Steam Link hardware device several times already. But this issue persists on the Standard and current Beta release of the Steam app for Windows. I am using firmware version 555.99 for my Nvidia RTX GPU driver.

Please note I am streaming my Desktop Windows PC through a Steam Link hardware device and all of these issues DOES NOT happen when I am directly using the Steam app on my Desktop PC. The problem only happens when I am streaming to a Steam Link hardware device connected through wired Gigabit Ethernet.

DanMan commented 1 month ago

I'm having the issue that with "hw-accel in web views" enabled, the videos on store pages become slow and choppy, like way below 30fps. That's on Fedora 40 with NV driver 560.35.03 and Steam Beta 1728690629 installed via RPMFusion and running in desktop mode. Actually, basically all animations, like banners scaling up on hover, aren't smooth.

But here's the kicker: as long as I interact with the "STORE LIBRARY COMMUNITY …" navigation via mouse (moving it across the navigation), the videos play smoothly. As soon as I stop that, video becomes choppy again. Now riddle me this!

But without hw-accel, Big Picture becomes slow instead…

P.S.: The beta currently isn't stable for me at all btw. After a while, it freezes my whole Gnome session and Gnome forces me to log off. Error: "steamwebhelper killed by SIGTRAP"