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

Gamescope Crashes for some games when using --force-grab-cursor #1659

Open
3 of 6 tasks
MNarath1 opened this issue Dec 7, 2024 · 7 comments
Open
3 of 6 tasks

Gamescope Crashes for some games when using --force-grab-cursor #1659

MNarath1 opened this issue Dec 7, 2024 · 7 comments

Comments

@MNarath1
Copy link

MNarath1 commented Dec 7, 2024

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 use --force-grab-cursor with gamescope in nested mode and move the mouse cursor to the right screenborder the whole game will just crash out

Steps To Reproduce

1 Launch Darkest Dungeon 2 (Or some other games but tested with this one) with supplied launch parameters
2 Wait for game to load and cursor to appear
3 Move cursor to the right corner of the screen and watch as the window suddenly closes

Hardware information

- Distro: Fedora 41
- CPU: AMD Ryzen 9 7940HS
- GPU: AMD Radeon RX 7700S (RADV NAVI33)
- Driver Version: Mesa 24.2.8

Software information

- Desktop environment: KDE 6.2.4
- Session type: Wayland
- Gamescope version: 14.2.1
- Gamescope launch command(s): gamescope -W 2560 -H 1600 --fullscreen --force-grab-cursor --adaptive-sync -- gamemoderun %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

Click to expand
XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xe9f56ec0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xe9f55620
steamwebhelper.sh[228878]: Using supervisor /home/userfolder/.steam/root/ubuntu12_32/steam-runtime/amd64/usr/bin/steam-runtime-supervisor
steamwebhelper.sh[228878]: Starting steamwebhelper under bootstrap sniper steam runtime via /home/userfolder/.local/share/Steam/ubuntu12_64/steam-runtime-sniper.sh
steamwebhelper.sh[228878]: Using CEF sandbox \(try with -no-cef-sandbox if this fails\)
steamwebhelper.sh[228878]: Starting steamwebhelper with Sniper steam runtime at /home/userfolder/.local/share/Steam/ubuntu12_64/steam-runtime-sniper/_v2-entry-point
Steam Runtime Launch Service: starting steam-runtime-launcher-service
Steam Runtime Launch Service: steam-runtime-launcher-service is running pid 229039
bus_name=com.steampowered.PressureVessel.LaunchAlongsideSteam
exec ./steamwebhelper -lang=de_DE -cachedir=/home/userfolder/.local/share/Steam/config/htmlcache -steampid=228829 -buildid=1733265492 -steamid=0 -logdir=/home/userfolder/.local/share/Steam/logs -uimode=7 -startcount=0 -steamuniverse=Public -realm=Global -clientui=/home/userfolder/.local/share/Steam/clientui -steampath=/home/userfolder/.local/share/Steam/ubuntu12_32/steam -launcher=0 -no-restart-on-ui-mode-change --valve-initial-threadpool-size=4 --valve-enable-site-isolation --enable-smooth-scrolling --password-store=basic --log-file=/home/userfolder/.local/share/Steam/logs/cef_log.txt --disable-quick-menu --enable-features=PlatformHEVCDecoderSupport --disable-features=SpareRendererForSitePerProcess,DcheckIsFatal,ValveFFmpegAllowLowDelayHEVC
/usr/share/themes/Adwaita/gtk-2.0/main.rc:733: error: unexpected identifier 'direction', expected character '}'
/usr/share/themes/Adwaita/gtk-2.0/hacks.rc:28: error: invalid string constant "normal_entry", expected valid string constant
/usr/share/themes/Breeze-Dark/gtk-2.0/widgets/entry:70: error: unexpected identifier 'direction', expected character '}'
/usr/share/themes/Breeze-Dark/gtk-2.0/widgets/styles:36: error: invalid string constant "combobox_entry", expected valid string constant
Desktop state changed: desktop: { pos:    0,   0 size: 2560,1600 } primary: { pos:    0,   0 size: 2560,1600 }
Caching cursor image for , size 16x16, serial 1, cache size = 0
BuildCompleteAppOverviewChange: 556 apps
chdir "/home/userfolder/.local/share/Steam/steamapps/common/Darkest Dungeon® II"
ERROR: ld.so: object '/home/userfolder/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/userfolder/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
[gamescope] [Info]  console: gamescope version  (gcc 14.2.1)
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
Game Recording - would start recording game 1940340, but recording for this game is disabled
Adding process 229695 for gameID 1940340
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.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
[gamescope] [Info]  vulkan: selecting physical device 'AMD Radeon 780M (RADV GFX1103_R1)': queue family 1 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
Fossilize INFO: Overriding serialization path: "/home/userfolder/.local/share/Steam/steamapps/shadercache/1940340/fozpipelinesv6/steamapprun_pipeline_cache".
[gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
[gamescope] [Info]  xdg_backend: Seat name: seat0
[gamescope] [Info]  vulkan: supported DRM formats for sampling usage:
[gamescope] [Info]  vulkan:   AR24 (0x34325241)
[gamescope] [Info]  vulkan:   XR24 (0x34325258)
[gamescope] [Info]  vulkan:   AB24 (0x34324241)
[gamescope] [Info]  vulkan:   XB24 (0x34324258)
[gamescope] [Info]  vulkan:   RG16 (0x36314752)
[gamescope] [Info]  vulkan:   NV12 (0x3231564E)
[gamescope] [Info]  vulkan:   AB4H (0x48344241)
[gamescope] [Info]  vulkan:   XB4H (0x48344258)
[gamescope] [Info]  vulkan:   AB48 (0x38344241)
[gamescope] [Info]  vulkan:   XB48 (0x38344258)
[gamescope] [Info]  vulkan:   AB30 (0x30334241)
[gamescope] [Info]  vulkan:   XB30 (0x30334258)
[gamescope] [Info]  vulkan:   AR30 (0x30335241)
[gamescope] [Info]  vulkan:   XR30 (0x30335258)
[gamescope] [Info]  wlserver: Using explicit sync when available
[gamescope] [Info]  wlserver: Running compositor on wayland display 'gamescope-0'
[gamescope] [Info]  wlserver: [backend/headless/backend.c:17] Starting headless backend
[gamescope] [Info]  wlserver: Successfully initialized libei for input emulation!
[gamescope] [Info]  wlserver: [xwayland/server.c:107] Starting Xwayland on :1
ERROR: ld.so: object '/home/userfolder/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/userfolder/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/userfolder/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 67
Adding process 229709 for gameID 1940340
[gamescope] [Info]  xwm: Embedded, no cursor set. Using left_ptr by default.
[gamescope] [Info]  vblank: Using timerfd.
[gamescope] [Info]  xdg_backend: PreferredMetadata: Red: 0.64 0.33, Green: 0.3 0.6, Blue: 0.15 0.06, White: 0.3127 0.329, Max Luminance: 200 nits, Min Luminance: 0.05 nits, Max Full Frame Luminance: 200 nits
[gamescope] [Info]  edid: Patching res 800x1280 -> 2560x1600
ERROR: ld.so: object '/home/userfolder/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/userfolder/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Adding process 229719 for gameID 1940340
ERROR: ld.so: object '/home/userfolder/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/userfolder/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Adding process 229722 for gameID 1940340
Adding process 229724 for gameID 1940340
gamemodeauto: 
ERROR: ld.so: object '/home/userfolder/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
gamemodeauto: 
ERROR: ld.so: object '/home/userfolder/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/userfolder/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Adding process 229741 for gameID 1940340
Adding process 229742 for gameID 1940340
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Adding process 229877 for gameID 1940340
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
wine: using kernel write watches, use_kernel_writewatch 1.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Adding process 229878 for gameID 1940340
fsync: up and running.
Adding process 229880 for gameID 1940340
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
wine: using kernel write watches, use_kernel_writewatch 1.
Adding process 229886 for gameID 1940340
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
wine: using kernel write watches, use_kernel_writewatch 1.
Adding process 229889 for gameID 1940340
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
wine: using kernel write watches, use_kernel_writewatch 1.
Adding process 229892 for gameID 1940340
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
wine: using kernel write watches, use_kernel_writewatch 1.
Adding process 229895 for gameID 1940340
Adding process 229904 for gameID 1940340
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
wine: using kernel write watches, use_kernel_writewatch 1.
Adding process 229916 for gameID 1940340
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
wine: using kernel write watches, use_kernel_writewatch 1.
Adding process 229922 for gameID 1940340
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
wine: using kernel write watches, use_kernel_writewatch 1.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
[Gamescope WSI] No application info given.
[Gamescope WSI] Executable name: explorer.exe
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_wsi_force_swapchain_to_current_extent overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_wsi_force_swapchain_to_current_extent overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_wsi_force_swapchain_to_current_extent overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_wsi_force_swapchain_to_current_extent overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_wsi_force_swapchain_to_current_extent overridden by environment.
[Gamescope WSI] No application info given.
[Gamescope WSI] Executable name: explorer.exe
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
wine: using kernel write watches, use_kernel_writewatch 1.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Adding process 229945 for gameID 1940340
wine: using kernel write watches, use_kernel_writewatch 1.
Setting breakpad minidump AppID = 1940340
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198033526047 [API loaded no]
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
wine: using kernel write watches, use_kernel_writewatch 1.
Adding process 229962 for gameID 1940340
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
wine: using kernel write watches, use_kernel_writewatch 1.
Adding process 229965 for gameID 1940340
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
[Gamescope WSI] Application info:
  pApplicationName: Darkest Dungeon II.exe
  applicationVersion: 0
  pEngineName: DXVK
  engineVersion: 8404993
  apiVersion: 4206592
[Gamescope WSI] Executable name: Darkest Dungeon II.exe
[Gamescope WSI] Forcing on VK_EXT_swapchain_maintenance1.
Fossilize INFO: Overriding serialization path: "/home/userfolder/.local/share/Steam/steamapps/shadercache/1940340/fozpipelinesv6/steamapprun_pipeline_cache".
[Gamescope WSI] Forcing on VK_EXT_swapchain_maintenance1.
[Gamescope WSI] Creating Gamescope surface: xid: 0x1200034
[Gamescope WSI] Atom of T was wrong type. Expected XCB_ATOM_CARDINAL.
[Gamescope WSI] Made gamescope surface for xid: 0x1200034
[Gamescope WSI] Surface state:
  steam app id:                  1940340
  window xid:                    0x1200034
  wayland surface res id:        5
  layer client flags:            0x4
  server hdr output enabled:     false
  hdr formats exposed to client: false
[gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
@matte-schwartz
Copy link

this sounds like it was likely fixed by #1597 or #1630 which hasn't made it into a version release yet

@MNarath1
Copy link
Author

MNarath1 commented Dec 7, 2024

this sounds like it was likely fixed by #1597 or #1630 which hasn't made it into a version release yet

any idea when the next version comes out or can i only compile from source?

@sharkautarch
Copy link

any idea when the next version comes out or can i only compile from source?

Don’t take this as an official statement, I’m just some dude that contributes to gamescope
But there are multiple bug-fix PRs that the dev (misyl)may want to get merged, plus I think misyl is also working on improving gamescope’s frame limiter
Unfortunately, there’s currently only one actual dev (misyl) for gamescope right now, and gamescope isn’t the only thing misyl has to work on as a valve contractor.
But don’t worry, misyl will address these things in time
In the meantime, if you’re on archlinux, you can install the gamescope-git aur pkg to build & install gamescope from the latest commits

@matte-schwartz
Copy link

the cursor fixes I mentioned are now in the tagged release of 3.16.1, when your distro picks up the new version might be worth re-checking

@matte-schwartz
Copy link

matte-schwartz commented Dec 22, 2024

@jarrard please update your own issue you created if it's still crashing, since afaik (and what your issue title states) Stalker 2 should be fixed now

@jarrard
Copy link

jarrard commented Dec 23, 2024

@jarrard please update your own issue you created if it's still crashing, since afaik (and what your issue title states) Stalker 2 should be fixed now

As it turns out. It may have been just a particular area of the game I was in at the time which has become completely broken with the new patches. LOL

@gavtroy
Copy link

gavtroy commented Dec 23, 2024

At least for HZD:remastered it's fixed in 3.16.1. No crash anymore when moving the cursor to the right edge or onto a second monitor.

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

6 participants