flathub / com.valvesoftware.Steam.Utility.gamescope

https://flathub.org/apps/details/com.valvesoftware.Steam.Utility.gamescope
20 stars 5 forks source link

General crash with steam games and other applications when using gamescope #106

Open svin24 opened 1 year ago

svin24 commented 1 year ago

I can't test if this also applies to upstream as i am currently using a daily build of my OS that does not ship the correct versions of dependencies to build it

My hardware is an HP ENVY x360 eu0009nv which has AMD integrated graphics (in case this info is needed)

These are the following crashes i experienced: Running a steam game with gamescope -f -- %command%

 -- /home/john/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/john/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/john/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Proton - Experimental'/proton waitforexitandrun  '/home/john/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Record of Lodoss War-Deedlit in Wonder Labyrinth-/Deedlit in Wonder Labyrinth.exe'", ProcID 2425 
ThreadGetProcessExitCode: no such process 2453
ThreadGetProcessExitCode: no such process 2432
Uploaded AppInterfaceStats to Steam
Could not connect to X session manager: None of the authentication protocols specified are supported
Could not connect to X session manager: None of the authentication protocols specified are supported
GameAction [AppID 1203630, ActionID 5] : LaunchApp changed task to ProcessingInstallScript with ""
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
                                                                    X connection to :0 broken (explicit kill or server shutdown).

Running an-anime-game

Running command: bash -c "gamescope -f -- '/home/john/.var/app/moe.launcher.an-anime-game-launcher-gtk/data/anime-game-launcher/runners/lutris-GE-Proton7-26-x86_64/bin/wine64' launcher.bat "
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
wlserver: [backend/headless/backend.c:82] Creating headless backend
vulkan: selecting physical device 'AMD RADV RENOIR': queue family 1
vulkan: physical device supports DRM format modifiers
vulkan: supported DRM formats for sampling usage:
vulkan:   0x34325241
vulkan:   0x34325258
vulkan:   0x3231564E
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  146 ()
  Minor opcode of failed request:  4
  Resource id in failed request:  0x800009
  Serial number of failed request:  166
  Current serial number in output stream:  173

Gamescope package at the time of writing this

          ID: com.valvesoftware.Steam.Utility.gamescope
         Ref: runtime/com.valvesoftware.Steam.Utility.gamescope/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 3.11.49
     License: BSD-2-Clause
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 17,9 MB

      Commit: 25ea339ee860e57ba909f99e7bd693831d70511e4a6510d753f0939274c3458b
      Parent: b63f8c78e59424a557cbd971ae2eef4af402fcba104edb9cdf6bef3568e9f669
     Subject: Update gamescope.git to 3.11.49 (#104) (3e54fd33)
        Date: 2022-11-18 03:31:01 +0000

The distro package works just fine even if slightly old, i just can't build a newer version for now due to some dependencies being broken on ubuntu lunar.

EDIT(workaround): found this works flatpak update --commit=2cbf5c63128df23829e69abf93b2c5ca1c4af4e25f7fddbdbe29e902e0599e49 com.valvesoftware.Steam.Utility.gamescope/x86_64/stable

mphojele commented 1 year ago

I use gamescope with flatpak bottles and can reproduce this issue only in a Wayland session and with the release version of the mesa drivers. So if I set the mesa drivers to the git version using FLATPAK_GL_DRIVERS=mesa-git or just switch to an x11 session I can't reproduce the issue. I also have AMD integrated graphics

mphojele commented 1 year ago

flatpak commit 2e1aab5cf2666f4a13b8b9a79303c9a207270f1a3eaedb09f69b4c923f4e6065 works too and is ahead of @SViN24's commit so I've narrowed it down to flatpak commit b63f8c78e59424a557cbd971ae2eef4af402fcba104edb9cdf6bef3568e9f669(being the issue commit) which is from pull request #99