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

Cannot open any games with Gamescope #1706

Open
2 of 6 tasks
bonkie25 opened this issue Jan 14, 2025 · 9 comments
Open
2 of 6 tasks

Cannot open any games with Gamescope #1706

bonkie25 opened this issue Jan 14, 2025 · 9 comments

Comments

@bonkie25
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

When I run any steam game with gamescope in the launch options, the game does not open. It goes as far as checking the cloud saves but once it goes to load the game after whatever processing it needs to do (e.g. the vulkan drivers on persona 5), the game does not run and the play button switches back to "Play". My friend tried to replicate this but didn't have the same issue as me.

Please tell me commands I need to run etc., I'm new to linux.

Steps To Reproduce

  1. Be on my computer
  2. Install steam and gamescope through the package manager
  3. Run anygame with gamescope in the launch options

Hardware information

- Distro: EndeavourOS (happened when I used LinuxMint too)
- CPU: AMD Ryzen 5 7600 (12) @ 5.170GH
- GPU: AMD ATI Radeon RX 6700XT
- Driver Version: [I couldn't run this command]

Software information

- Desktop environment: EndeavourOS Cinnamon
- Session type: x11
- Gamescope version: 3.16.1-1
- Gamescope launch command(s): gamescope -- %command%

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

$ gamescope
[gamescope] [Info]  console: gamescope version 3.16.1 (gcc 14.2.1)
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope/common'
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/inspect.lua' (id: 0)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/modegen.lua' (id: 1)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/util.lua' (id: 2)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope/displays'
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/asus.rogally.lcd.lua' (id: 3)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua' (id: 4)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 5)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 6)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/etc/gamescope/scripts' does not exist
[gamescope] [Info]  scriptmgr: Loading scripts from: '/home/bo/.config/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/home/bo/.config/gamescope/scripts' does not exist
[gamescope] [Info]  vulkan: selecting physical device 'AMD Radeon RX 6700 XT': queue family 1 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Error] vulkan: vkCreateDevice failed (VkResult: -7)
terminate called without an active exception
Aborted (core dumped)
@matte-schwartz
Copy link

if you're on X11 you likely need #1548 which will be in 3.16.2 as the SDL backend does not launch properly on 3.16.1.

@bonkie25
Copy link
Author

if you're on X11 you likely need #1548 which will be in 3.16.2 as the SDL backend does not launch properly on 3.16.1.

@matte-schwartz
What do I need to do or is it just waiting for the next update?
The post just seems to be referencing stuff and I don't really understand it

@matte-schwartz
Copy link

Wait for the next update or compile Gamescope yourself. Using Gamescope-git from the AUR is probably the easiest way to do that on Arch.

@bonkie25
Copy link
Author

@matte-schwartz
So if I were to do that, what do I actually need to do? I think in the post it said they had to edit 2 lines of code but I don't know where I'm looking.
I'm assuming you mean running like yay gamescope-git but that seems to not give me a chance to look at it to find what I'm looking for.
Also how long would you expect it to take to update? I'm not in dire dire need but I'd like to use it since I use an ocr to learn languages and some games don't continue running when alt tabbed which is why I needed to use it before. (Probably irrelevant information)

@matte-schwartz
Copy link

The comment you're referring to about changing anything was incorrect so ignore that. yay gamescope-git is fine without modifying anything manually. If Gamescope is still not working after that, then your issue is something else entirely and just appeared to have the same conditions to trigger it.

I have no say on when new releases get tagged so I can't really provide any sort of estimate.

@bonkie25
Copy link
Author

bonkie25 commented Jan 15, 2025

@matte-schwartz gamescope-git also doesn't work for me. I tried it again just now and it's the same result. Is there any more commands to run or information I can give you?
This is a fresh install of Endeavour OS which I've only updated all the packages and then installed steam and gamescope and after that the only other things on here are timeshift and bluez + blueman. I've had the same issues on Linux Mint and it only got resolved when I used the flatpaks and then when they had to update everything broke again.

@matte-schwartz
Copy link

Hmm, can you check coredumpctl list and see if any Gamescope coredumps are there? If it's the most recent one, you can use coredumpctl info to get a readout of it. If it's an older one, you can use coredumpctl info <gamescope coredump's number>. I'm not able to reproduce your crash with Persona 5 yet but I don't have the same GPU as you.

@bonkie25
Copy link
Author

coredumpctl list

TIME                          PID  UID  GID SIG     COREFILE EXE               >
Mon 2025-01-13 18:15:16 GMT  6119 1000 1000 SIGABRT present  /usr/bin/gamescope>
Mon 2025-01-13 18:15:22 GMT  6307 1000 1000 SIGABRT present  /usr/bin/gamescope>
Tue 2025-01-14 16:01:25 GMT  4010 1000 1000 SIGABRT present  /usr/bin/gamescope>
Tue 2025-01-14 16:32:30 GMT  7380 1000 1000 SIGABRT present  /usr/bin/gamescope>
Tue 2025-01-14 16:33:00 GMT  7592 1000 1000 SIGABRT present  /usr/bin/gamescope>
Tue 2025-01-14 16:41:33 GMT  8399 1000 1000 SIGABRT present  /usr/bin/gamescope>
Tue 2025-01-14 16:48:46 GMT  8668 1000 1000 SIGABRT present  /usr/bin/gamescope>
Tue 2025-01-14 17:43:52 GMT 10855 1000 1000 SIGABRT present  /usr/bin/gamescope>
Tue 2025-01-14 18:50:36 GMT 13760 1000 1000 SIGABRT present  /usr/bin/gamescope>
Wed 2025-01-15 11:51:09 GMT  4582 1000 1000 SIGABRT present  /usr/bin/gamescope>
Wed 2025-01-15 11:52:18 GMT  5374 1000 1000 SIGABRT present  /usr/bin/gamescope>
Wed 2025-01-15 11:52:40 GMT  5586 1000 1000 SIGABRT present  /usr/bin/gamescope>
Wed 2025-01-15 14:46:21 GMT 25816 1000 1000 SIGABRT present  /usr/bin/gamescope>
Wed 2025-01-15 19:45:22 GMT 38780 1000 1000 SIGABRT present  /opt/discord/Disco>
Thu 2025-01-16 10:38:34 GMT  3429 1000 1000 SIGABRT present  /usr/bin/gamescope>
lines 1-16/16 (END)

coredumpctl info

         PID: 3429 (gamescope)
          UID: 1000 (bo)
          GID: 1000 (bo)
       Signal: 6 (ABRT)
    Timestamp: Thu 2025-01-16 10:38:34 GMT (59s ago)
 Command Line: gamescope -- /home/bo/.local/share/Steam/ubuntu12_32/steam-laun>
   Executable: /usr/bin/gamescope
Control Group: /user.slice/user-1000.slice/session-2.scope
         Unit: session-2.scope
        Slice: user-1000.slice
      Session: 2
    Owner UID: 1000 (bo)
      Boot ID: de31bdbeb46d482dba3d296692101750
   Machine ID: 9c99dbc0418d4be09ea5cab134ca71c5
     Hostname: naiwongbao
      Storage: /var/lib/systemd/coredump/core.gamescope.1000.de31bdbeb46d482db>
 Size on Disk: 981.8K
      Message: Process 3429 (gamescope) of user 1000 dumped core.
               
               Stack trace of thread 3429:
               #0  0x000070ebdb2a53f4 n/a (libc.so.6 + 0x963f4)
               #1  0x000070ebdb24c120 raise (libc.so.6 + 0x3d120)
               #2  0x000070ebdb2334c3 abort (libc.so.6 + 0x244c3)
lines 1-23

@darshanCommits
Copy link

having similar issue on wayland(hyprland)
running the game from HGL(same error in lutris, albeit different logs and bottles too but i dont have its logs)

os: nixos 24.11
gamescope: tried both git and stable 3.15.14
gpu: optmus intel+nvidia(4060)

HGL logs


[gamescope] [�[0;34mInfo�[0m]  �[0;37mscriptmgr:�[0m Loading scripts from: '/usr/share/gamescope/scripts'

[gamescope] [�[0;33mWarn�[0m]  �[0;37mscriptmgr:�[0m Directory '/usr/share/gamescope/scripts' does not exist

[gamescope] [�[0;34mInfo�[0m]  �[0;37mscriptmgr:�[0m Loading scripts from: '/etc/gamescope/scripts'

[gamescope] [�[0;33mWarn�[0m]  �[0;37mscriptmgr:�[0m Directory '/etc/gamescope/scripts' does not exist

[gamescope] [�[0;34mInfo�[0m]  �[0;37mscriptmgr:�[0m Loading scripts from: '/home/greeed/.config/gamescope/scripts'

[gamescope] [�[0;33mWarn�[0m]  �[0;37mscriptmgr:�[0m Directory '/home/greeed/.config/gamescope/scripts' does not exist

ATTENTION: default value of option vk_khr_present_wait overridden by environment.

ATTENTION: default value of option vk_khr_present_wait overridden by environment.

ATTENTION: default value of option vk_khr_present_wait overridden by environment.

[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m selecting physical device 'NVIDIA GeForce RTX 4060 Laptop GPU': queue family 2 (general queue family 0)

[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m physical device supports DRM format modifiers

[gamescope] [�[0;34mInfo�[0m]  �[0;37mwlserver:�[0m [backend/headless/backend.c:67] Creating headless backend

[gamescope] [�[0;34mInfo�[0m]  �[0;37mxdg_backend:�[0m Seat name: Hyprland

[gamescope] [�[0;31mError�[0m] �[0;37mvulkan:�[0m vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)

[gamescope] [�[0;31mError�[0m] �[0;37mvulkan:�[0m vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)

[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m supported DRM formats for sampling usage:

[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   AR24 (0x34325241)

[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   XR24 (0x34325258)

[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   AB24 (0x34324241)

[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   XB24 (0x34324258)

[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   RG16 (0x36314752)

[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   AB4H (0x48344241)

[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   XB4H (0x48344258)

[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   AB30 (0x30334241)

[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   AR30 (0x30335241)

[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   XR30 (0x30335258)

gamescope: ../src/rendervulkan.cpp:2139: bool CVulkanTexture::BInit(uint32_t, uint32_t, uint32_t, uint32_t, createFlags, wlr_dmabuf_attributes*, uint32_t, uint32_t, CVulkanTexture*, gamescope::OwningRc<gamescope::IBackendFb>): Assertion `modifiers.size() > 0' failed.

============= End of log =============```

lutris logs
```[gamescope] [�[0;34mInfo�[0m]  �[0;37mconsole:�[0m gamescope version f873ec7868fe84d2850e91148bcbd6d6b19a7443 (gcc 14.2.1)
[gamescope] [�[0;34mInfo�[0m]  �[0;37mscriptmgr:�[0m Loading scripts from: '/usr/share/gamescope/scripts'
[gamescope] [�[0;33mWarn�[0m]  �[0;37mscriptmgr:�[0m Directory '/usr/share/gamescope/scripts' does not exist
[gamescope] [�[0;34mInfo�[0m]  �[0;37mscriptmgr:�[0m Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [�[0;33mWarn�[0m]  �[0;37mscriptmgr:�[0m Directory '/etc/gamescope/scripts' does not exist
[gamescope] [�[0;34mInfo�[0m]  �[0;37mscriptmgr:�[0m Loading scripts from: '/home/greeed/.config/gamescope/scripts'
[gamescope] [�[0;33mWarn�[0m]  �[0;37mscriptmgr:�[0m Directory '/home/greeed/.config/gamescope/scripts' does not exist
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m selecting physical device 'Intel(R) UHD Graphics (ADL-S GT0.5)': queue family 0 (general queue family 0)
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m physical device supports DRM format modifiers
[gamescope] [�[0;34mInfo�[0m]  �[0;37mwlserver:�[0m [backend/headless/backend.c:67] Creating headless backend
[gamescope] [�[0;34mInfo�[0m]  �[0;37mxdg_backend:�[0m Seat name: Hyprland
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m supported DRM formats for sampling usage:
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   AR24 (0x34325241)
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   XR24 (0x34325258)
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   AB24 (0x34324241)
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   XB24 (0x34324258)
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   RG16 (0x36314752)
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   AB4H (0x48344241)
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   XB4H (0x48344258)
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   AB48 (0x38344241)
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   XB48 (0x38344258)
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   AB30 (0x30334241)
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   AR30 (0x30335241)
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvulkan:�[0m   XR30 (0x30335258)
[gamescope] [�[0;34mInfo�[0m]  �[0;37mwlserver:�[0m Using explicit sync when available
[gamescope] [�[0;34mInfo�[0m]  �[0;37mwlserver:�[0m Running compositor on wayland display 'gamescope-0'
[gamescope] [�[0;34mInfo�[0m]  �[0;37mwlserver:�[0m [backend/headless/backend.c:17] Starting headless backend
[gamescope] [�[0;34mInfo�[0m]  �[0;37mwlserver:�[0m Successfully initialized libei for input emulation!
[gamescope] [�[0;34mInfo�[0m]  �[0;37mwlserver:�[0m [xwayland/server.c:107] Starting Xwayland on :1
MESA-LOADER: failed to open dri: /nix/store/ak5hicfnzhd1kwk7dzlyy4w8sg8zq8hn-mesa-24.3.3/lib/gbm/dri_gbm.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/gbm:/nix/store/ak5hicfnzhd1kwk7dzlyy4w8sg8zq8hn-mesa-24.3.3/lib/gbm, suffix _gbm)
couldn't create gbm device
EGL setup failed, disabling glamor
Failed to initialize glamor, falling back to sw
[gamescope] [�[0;34mInfo�[0m]  �[0;37mpipewire:�[0m stream state changed: connecting
[gamescope] [�[0;34mInfo�[0m]  �[0;37mpipewire:�[0m stream state changed: paused
[gamescope] [�[0;34mInfo�[0m]  �[0;37mpipewire:�[0m stream available on node ID: 105
[gamescope] [�[0;34mInfo�[0m]  �[0;37mxwm:�[0m Embedded, no cursor set. Using left_ptr by default.
[gamescope] [�[0;34mInfo�[0m]  �[0;37mvblank:�[0m Using timerfd.
[gamescope] [�[0;34mInfo�[0m]  �[0;37medid:�[0m Patching res 800x1280 -> 1920x1080
gamemodeauto: 
gamemodeauto: 
bwrap: Unexpected capabilities but not setuid, old file caps config?
[gamescope] [�[0;34mInfo�[0m]  �[0;37mlaunch:�[0m Primary child shut down!
(EE) failed to read Wayland events: Broken pipe
Monitored process exited.
No return code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants