ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.18k stars 213 forks source link

-S option crashes cs2 #1616

Closed Robloxiadot closed 1 week ago

Robloxiadot commented 2 weeks ago

Is there an existing issue for this?

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

Current Behavior

So ever since the todays game update that was 775.4MB big i wanted to start the game. Then i notice it crashes without any further information other than it being the fault of gamescope with vulkan, it only crashes including the -s launch option within it.

Steps To Reproduce

  1. Launch CS2 and use these launch options: gamescope -w 1280 -h 960 -r 180 -f -s -- %command%
  2. Launch CS2
  3. Look if it crashes

Hardware information

- Distro: Arch Linux 64 bit
- CPU: AMD Ryzen 5 4500 (12) @ 4.208GHz
- GPU: NVIDIA GeForce RTX 2060
- Driver Version: 565.57.01

Software information

- Desktop environment: Kde plasma 6
- Session type: X11
- Gamescope version: 3.15.14
- Gamescope launch command(s): gamescope -w 1280 -h 960 -r 180 -f -s -- %command%

Which gamescope backends have the issue you are reporting?

Logging, screenshots, or anything else

Desktop state changed: desktop: { pos: 0, 0 size: 1920,1080 } primary: { pos: 0, 0 size: 1920,1080 } Caching cursor image for xterm, size 32x32, serial 501, cache size = 0 BuildCompleteAppOverviewChange: 157 apps chdir "/home/damien/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive" Game Recording - would start recording game 730, but recording for this game is disabled Adding process 20144 for gameID 730 ERROR: ld.so: object '/home/damien/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/damien/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. [gamescope] [Info] console: gamescope version 3.15.14 (gcc 14.2.1) No CAP_SYS_NICE, falling back to regular-priority compute and threads. Performance will be affected. [gamescope] [Info] vulkan: selecting physical device 'NVIDIA GeForce RTX 2060': queue family 2 (general queue family 0) [gamescope] [Info] vulkan: physical device supports DRM format modifiers Fossilize INFO: Overriding serialization path: "/home/damien/.local/share/Steam/steamapps/shadercache/730/fozpipelinesv6/steamapprun_pipeline_cache". [gamescope] [Info] wlserver: [backend/headless/backend.c:67] Creating headless backend [gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0) [gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0) [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: AB30 (0x30334241) [gamescope] [Info] vulkan: XB30 (0x30334258) [gamescope] [Info] vulkan: AR30 (0x30335241) [gamescope] [Info] vulkan: XR30 (0x30335258) [gamescope] [Info] vulkan: Creating Gamescope nested swapchain with format 44 and colorspace 0 [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] [Error] wlserver: [xwayland/sockets.c:64] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use [gamescope] [Info] wlserver: [xwayland/server.c:107] Starting Xwayland on :1 ERROR: ld.so: object '/home/damien/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. Adding process 20163 for gameID 730 ERROR: ld.so: object '/home/damien/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/damien/.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: 90 [gamescope] [Info] vblank: Using timerfd. steam-launch-wrapper: Unrecognised option /home/damien/.local/share/Steam/ubuntu12_32/reaper [gamescope] [Info] launch: Primary child shut down! Adding process 20165 for gameID 730 [gamescope] [Info] vulkan: Creating Gamescope nested swapchain with format 44 and colorspace 0 terminate called without an active exception (EE) failed to read Wayland events: Broken pipe Game Recording - game stopped [gameid=730] Removing process 20165 for gameID 730 Removing process 20163 for gameID 730 Removing process 20144 for gameID 730

Robloxiadot commented 2 weeks ago

Hello, sorry for being annoying but im really wondering if this issue is gonna be fixed, turns out -s in every game does not work anymore for some reason.

Makario1337 commented 2 weeks ago

Same issue here...

Also running arch and x11

-S stretch --scale 0 and --scale-method all do not work. The game instantly closes

Update --expose-wayland makes it work somehow...

Robloxiadot commented 2 weeks ago

Wait so do you mean: gamescope -w 1280 -h 960 -S stretch -f -e -r 180.0 --expose-wayland %command% ? if you mean it like that it wont work either, did i type the comamnd wrong?

Makario1337 commented 2 weeks ago

gamescope -w 1280 -h 1024 -W 2560 -H 1440 -r 155 -f -S stretch --force-grab-cursor --expose-wayland --immediate-flips --mangoapp -- %command%

Robloxiadot commented 2 weeks ago

let me try that out

Robloxiadot commented 2 weeks ago

IT WORKS

Robloxiadot commented 2 weeks ago

dude thank you so much!

Makario1337 commented 2 weeks ago

But anyway, it should work without it, here is a bug. Valve plz fix.

Robloxiadot commented 2 weeks ago

Yes valve!

Robloxiadot commented 2 weeks ago

Im a competitive linux player for cs2 anyways

matte-schwartz commented 2 weeks ago

someone will take a look when they have time, spamming this issue with comments does not make it getting fixed any more likely

Robloxiadot commented 2 weeks ago

someone will take a look when they have time, spamming this issue with comments does not make it getting fixed any more likely

I just tried getting some help Makario helped me luckily on how to fix it for now

matte-schwartz commented 1 week ago

gamescope -w 1280 -h 960 -r 180 -f -s -- %command% is incorrect. -s requires a number argument as well, per gamescope --help output:

-s, --mouse-sensitivity        multiply mouse movement by given decimal number

the game launches fine here with gamescope -w 1280 -h 960 -r 180 -f -s 0.5 -- %command%

also -S, with a capital S like the title of the issue, is something entirely different from what you put in the body of your issue:

-S, --scaler                   upscaler type (auto, integer, fit, fill, stretch)