Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

steamwebhelper crashes when invoking steam -shutdown when running Steam in Gamescope (SteamOS mode) #11658

Open
4 of 6 tasks
shahnawazshahin opened this issue Jan 12, 2025 · 0 comments

Comments

@shahnawazshahin
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Are you using any gamescope patches or a forked version of gamescope?

  • The issue occurs on upstream gamescope without any modifications

Current Behavior

The issue here is that, when running Steam with Gamescope in SteamOS mode, steamwebhelper crashes after invoking steam -shutdown.

I've created a script called steamos-session-select, a simple bash script that invokes steam -shutdown, and placed it in /usr/bin. I then launch Steam using Gamescope to launch in SteamOS mode using the following.

gamescope -e -- steam -steamdeck -steamos3

When I then select Switch to Desktop, this calls /usr/bin/steamos-session-select (which invokes steam -shutdown). Steam appears to shutdown gracefully, but then a crash report is generated with the reason steamwebhelper killed by SIGTRAP.

This is tested on Fedora 41. This brings up a pop up on the desktop from the Automatic Bug Reporting Tool (ABRT). This issue also occurs on Arch Linux.

This is also tested in embedded mode with a custom gamescope-session bash script that invokes gamescope --mangoapp -e -- steam -steamdeck -steamos3.

Steps To Reproduce

  1. Open a terminal window and launch Steam with Gamescope with gamescope -e -- steam -steamdeck -steamos3.
  2. Open another terminal window and run steam -shutdown
  3. A crash report is generated.
  4. Use journalctl -f to refer to the points when the crash has happened.

Hardware information

- Distro: Fedora 41
- CPU: AMD Ryzen 9 6900HX
- GPU: AMD Radeon 680M
- Driver Version: Mesa 24.3.2 (LLVM 19.1.5)

Software information

- Desktop environment: KDE 6.2.5
- Session type: wayland
- Gamescope version: gamescope version  (gcc 14.2.1)
- Gamescope launch command(s): gamescope -e -- steam -steamdeck -steamos3

Which gamescope backends have the issue you are reporting?

  • Wayland (default for nested gamescope)
  • DRM (default for embedded gamescope, i.e. gamescope-session)
  • SDL
  • OpenVR

Logging, screenshots, or anything else

systemd-coredump[10829]: [🡕] Process 10555 (steamwebhelper) of user 1000 dumped >

                                                  Module libpciaccess.so.0 from rpm libpciaccess-0.16-13.>
                                                  Module libxml2.so.2 from rpm libxml2-2.12.9-1.fc41.x86_>
                                                  Module [dso] from rpm libpciaccess-0.16-13.fc41.x86_64
                                                  Module libdrm_amdgpu.so.1 without build-id.
                                                  Module libdrm_amdgpu.so.1
                                                  Module libelf.so.1 without build-id.
                                                  Module libelf.so.1
                                                  Module libdrm_radeon.so.1 without build-id.
                                                  Module libdrm_radeon.so.1
                                                  Module libxcb-sync.so.1 without build-id.
                                                  Module libxcb-sync.so.1
                                                  Module libxcb-randr.so.0 without build-id.
                                                  Module libxcb-randr.so.0
                                                  Module libsensors.so.4 from rpm lm_sensors-3.6.0-20.fc4>
                                                  Module libxshmfence.so.1 without build-id.
                                                  Module libxshmfence.so.1
                                                  Module libunistring.so.5 from rpm libunistring-1.1-8.fc>
                                                  Stack trace of thread 10555:
                                                  #0  0x00007f83b4ecabcf n/a (n/a + 0x0)
                                                  ValveSoftware/gamescope#1  0x00007f83b4eca69b n/a (n/a + 0x0)
                                                  ValveSoftware/gamescope#2  0x00007f83b4ecac49 n/a (n/a + 0x0)
                                                  ValveSoftware/gamescope#3  0x00007f83b379e1f7 n/a (n/a + 0x0)
                                                  ValveSoftware/gamescope#4  0x00007f83b379b646 n/a (n/a + 0x0)
                                                  ValveSoftware/gamescope#5  0x00007f83b379a29b n/a (n/a + 0x0)
                                                  ValveSoftware/gamescope#6  0x00007f83b37a5d68 n/a (n/a + 0x0)
                                                  ValveSoftware/gamescope#7  0x00007f83b37a7167 n/a (n/a + 0x0)
                                                  ValveSoftware/gamescope#8  0x00007f83b35c1b51 n/a (n/a + 0x0)
                                                  ValveSoftware/gamescope#9  0x00007f83b3625f7b n/a (n/a + 0x0)
                                                  ValveSoftware/gamescope#10 0x00007f83b3626191 n/a (n/a + 0x0)
                                                  ValveSoftware/gamescope#11 0x00007f83b4f1ac7f n/a (n/a + 0x0)
                                                  ValveSoftware/gamescope#12 0x00007f83b4f3bb96 n/a (n/a + 0x0)
                                                  ValveSoftware/gamescope#13 0x00007f83b4fa19de n/a (n/a + 0x0)
                                                  ValveSoftware/gamescope#14 0x00007f83ae720e6b n/a (n/a + 0x0)
                                                  ELF object binary architecture: AMD x86-64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants