ValveSoftware / gamescope

SteamOS session compositing window manager
Other
2.93k stars 196 forks source link

3.14.23 breaks #1412

Closed fritz-fritz closed 2 weeks ago

fritz-fritz commented 1 month ago

Not sure exactly whats going wrong, but building 3.14.23 breaks gamescope such that the window never appears:

$ gamescope -- mangohud glxgears
[gamescope] [Info]  console: gamescope version 3.14.23
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  vulkan: selecting physical device 'AMD Radeon Graphics (RADV RENOIR)': queue family 1 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
[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]  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] [Info]  wlserver: [xwayland/server.c:107] Starting Xwayland on :1
[gamescope] [Debug] wlserver: [types/wlr_compositor.c:771] New wlr_surface 0x561241ad2c60 (res 0x561241ac9a30)
[gamescope] [Debug] wlserver: [xwayland/server.c:272] Xserver is ready
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 125
[gamescope] [Info]  vblank: Using timerfd.
[gamescope] [Info]  vulkan: Creating Gamescope nested swapchain with format 44 and colorspace 0
[gamescope] [Debug] pipewire: renegotiating stream params (size: 1280x720)
^C[gamescope] [Error] xwm: X11 I/O error
terminate called without an active exception
zsh: IOT instruction  gamescope -- mangohud glxgears

Cannot connect to XCB.
Exiting ...
Build Log

``` $ ninja -C build/ ninja: Entering directory `build/' [0/1] Regenerating build files. The Meson build system Version: 1.4.1 Source dir: /home/user/git/gamescope Build dir: /home/user/git/gamescope/build Build type: native build Project name: gamescope Project version: undefined C compiler for the host machine: ccache cc (gcc 13.2.0 "cc (Debian 13.2.0-24) 13.2.0") C linker for the host machine: cc ld.bfd 2.42 C++ compiler for the host machine: ccache c++ (gcc 13.2.0 "c++ (Debian 13.2.0-24) 13.2.0") C++ linker for the host machine: c++ ld.bfd 2.42 Host machine cpu family: x86_64 Host machine cpu: x86_64 Compiler for C++ supports arguments -Wno-unused-parameter: YES (cached) Compiler for C++ supports arguments -Wno-missing-field-initializers: YES (cached) Compiler for C++ supports arguments -Wno-c99-designator: NO (cached) Compiler for C++ supports arguments -Wno-invalid-offsetof: YES (cached) Compiler for C++ supports arguments -Wno-unused-const-variable: YES (cached) Compiler for C++ supports arguments -Wno-volatile: YES (cached) Compiler for C++ supports arguments -Wno-deprecated-volatile: NO (cached) Compiler for C++ supports arguments -Wno-ignored-qualifiers: YES (cached) Compiler for C++ supports arguments -Wno-missing-braces: YES (cached) Compiler for C++ supports arguments -ffast-math: YES (cached) Dependency libpipewire-0.3 found: YES 1.0.6 (cached) Library rt found: YES Dependency hwdata found: YES 0.380 (cached) Dependency x11 found: YES 1.8.7 (cached) Dependency wayland-client found: YES 1.22.0 (cached) Dependency vulkan found: YES 1.3.283 (cached) Found pkg-config: YES (/usr/bin/pkg-config) 1.8.1 Found CMake: /home/user/.local/bin/cmake (3.27.7) Run-time dependency openvr found: NO (tried pkgconfig and cmake) Executing subproject openvr method cmake openvr| Found CMake: /home/user/.local/bin/cmake (3.27.7) | Configuring the build directory with CMake version 3.27.7 | Running CMake with: -G Ninja -DCMAKE_INSTALL_PREFIX=/usr/local -DUSE_LIBCXX=False | - build directory: /home/user/git/gamescope/build/subprojects/openvr/__CMake_build | - source directory: /home/user/git/gamescope/subprojects/openvr | - toolchain file: /home/user/git/gamescope/build/subprojects/openvr/__CMake_build/CMakeMesonToolchainFile.cmake | - preload file: /usr/lib/python3/dist-packages/mesonbuild/cmake/data/preload.cmake | - trace args: --trace-expand --trace-format=json-v1 --no-warn-unused-cli --trace-redirect=cmake_trace.txt | - disabled policy warnings: [CMP0025, CMP0047, CMP0056, CMP0060, CMP0065, CMP0066, CMP0067, CMP0082, CMP0089, CMP0102] | CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required): | Compatibility with CMake < 3.5 will be removed from a future version of | CMake. | Update the VERSION argument value or use a ... suffix to tell | CMake that the project does not need compatibility with older versions. | Put cmake in trace mode, but with variables expanded. | Put cmake in trace mode and sets the trace output format. | Not searching for unused variables given on the command line. | Put cmake in trace mode and redirect trace output to a file instead of stderr. | Trace will be written to cmake_trace.txt | -- The C compiler identification is GNU 13.2.0 | -- The CXX compiler identification is GNU 13.2.0 | CMake Warning (dev) at /home/user/.local/lib/python3.11/site-packages/cmake/data/share/cmake-3.27/Modules/CMakeFindBinUtils.cmake:224 (find_program): | Policy CMP0126 is not set: set(CACHE) does not remove a normal variable of | the same name. Run "cmake --help-policy CMP0126" for policy details. Use | the cmake_policy command to set the policy and suppress this warning. | For compatibility with older versions of CMake, normal variable | "CMAKE_TAPI" will be removed from the current scope. | Call Stack (most recent call first): | /home/user/.local/lib/python3.11/site-packages/cmake/data/share/cmake-3.27/Modules/CMakeDetermineCXXCompiler.cmake:202 (include) | CMakeLists.txt:5 (project) | This warning is for project developers. Use -Wno-dev to suppress it. | -- Detecting C compiler ABI info | -- Detecting C compiler ABI info - done | -- Check for working C compiler: /usr/bin/cc - skipped | -- Detecting C compile features | -- Detecting C compile features - done | -- Detecting CXX compiler ABI info | -- Detecting CXX compiler ABI info - done | -- Check for working CXX compiler: /usr/bin/c++ - skipped | -- Detecting CXX compile features | -- Detecting CXX compile features - done | -- Configuring done (0.4s) | -- Generating done (0.0s) | -- Build files have been written to: /home/user/git/gamescope/build/subprojects/openvr/__CMake_build openvr| CMake configuration: SUCCEEDED openvr| CMake project OpenVRSDK has 1 build targets. openvr| Generated Meson AST: /home/user/git/gamescope/build/subprojects/openvr/meson.build openvr| Project name: OpenVRSDK openvr| Project version: undefined openvr| C++ compiler for the host machine: ccache c++ (gcc 13.2.0 "c++ (Debian 13.2.0-24) 13.2.0") openvr| C++ linker for the host machine: c++ ld.bfd 2.42 openvr| Build targets in project: 1 openvr| Subproject openvr finished. Check usable header "vulkan/vulkan.h" with dependency vulkan: YES (cached) Dependency wayland-scanner found: YES 1.22.0 (cached) Program /usr/bin/wayland-scanner found: YES (/usr/bin/wayland-scanner) Dependency wayland-protocols found: YES 1.35 (cached) Looking for a fallback subproject for the dependency vkroots because: Use of fallback dependencies is forced. Executing subproject vkroots vkroots| Project name: vkroots vkroots| Project version: undefined vkroots| C++ compiler for the host machine: ccache c++ (gcc 13.2.0 "c++ (Debian 13.2.0-24) 13.2.0") vkroots| C++ linker for the host machine: c++ ld.bfd 2.42 vkroots| Build targets in project: 52 vkroots| Subproject vkroots finished. Dependency vkroots found: YES undefined (overridden) Dependency xcb found: YES 1.17.0 (cached) Dependency x11-xcb found: YES 1.8.7 (cached) Dependency glm found: YES 0.9.9.8 (cached) Dependency wayland-client found: YES 1.22.0 (cached) Configuring VkLayer_FROG_gamescope_wsi.x86_64.json using configuration Dependency xdamage found: YES 1.1.6 (cached) Dependency xcomposite found: YES 0.4.5 (cached) Dependency xcursor found: YES 1.2.1 (cached) Dependency xrender found: YES 0.9.10 (cached) Dependency xext found: YES 1.3.4 (cached) Dependency xfixes found: YES 6.0.0 (cached) Dependency xxf86vm found: YES 1.1.4 (cached) Dependency xtst found: YES 1.2.3 (cached) Dependency xres found: YES 1.2.1 (cached) Dependency xmu found: YES 1.1.3 (cached) Dependency xi found: YES 1.8.1 (cached) Dependency libdrm found: YES 2.4.120 (cached) Dependency libeis-1.0 found: YES 1.2.1 (cached) Dependency wayland-server found: YES 1.22.0 (cached) Dependency wayland-protocols found: YES 1.35 (cached) Dependency xkbcommon found: YES 1.6.0 (cached) Dependency threads found: YES unknown (cached) Dependency libcap found: YES 2.66 (cached) Run-time dependency epoll-shim found: NO (tried pkgconfig and cmake) Dependency glm found: YES 0.9.9.8 (cached) Dependency SDL2 found: YES 2.30.2 (cached) Dependency stb found: YES 0.0 (cached) Dependency libavif found: YES 1.0.4 (cached) Looking for a fallback subproject for the dependency wlroots because: Use of fallback dependencies is forced. Executing subproject wlroots wlroots| Project name: wlroots wlroots| Project version: 0.18.0-dev wlroots| C compiler for the host machine: ccache cc (gcc 13.2.0 "cc (Debian 13.2.0-24) 13.2.0") wlroots| C linker for the host machine: cc ld.bfd 2.42 wlroots| Compiler for C supports arguments -Wundef: YES (cached) wlroots| Compiler for C supports arguments -Wlogical-op: YES (cached) wlroots| Compiler for C supports arguments -Wmissing-include-dirs: YES (cached) wlroots| Compiler for C supports arguments -Wold-style-definition: YES (cached) wlroots| Compiler for C supports arguments -Wpointer-arith: YES (cached) wlroots| Compiler for C supports arguments -Winit-self: YES (cached) wlroots| Compiler for C supports arguments -Wstrict-prototypes: YES (cached) wlroots| Compiler for C supports arguments -Wimplicit-fallthrough=2: YES (cached) wlroots| Compiler for C supports arguments -Wendif-labels: YES (cached) wlroots| Compiler for C supports arguments -Wstrict-aliasing=2: YES (cached) wlroots| Compiler for C supports arguments -Woverflow: YES (cached) wlroots| Compiler for C supports arguments -Wmissing-prototypes: YES (cached) wlroots| Compiler for C supports arguments -Walloca: YES (cached) wlroots| Compiler for C supports arguments -Wno-missing-braces: YES (cached) wlroots| Compiler for C supports arguments -Wno-missing-field-initializers: YES (cached) wlroots| Compiler for C supports arguments -Wno-unused-parameter: YES (cached) wlroots| Compiler for C supports arguments -fmacro-prefix-map=/prefix/to/hide=: YES (cached) wlroots| Dependency wayland-server found: YES 1.22.0 (cached) wlroots| Dependency libdrm found: YES 2.4.120 (cached) wlroots| Dependency xkbcommon found: YES 1.6.0 (cached) wlroots| Dependency pixman-1 found: YES 0.42.2 (cached) wlroots| Library m found: YES wlroots| Library rt found: YES wlroots| Dependency wayland-protocols found: YES 1.35 (cached) wlroots| Dependency wayland-scanner found: YES 1.22.0 (cached) wlroots| Program /usr/bin/wayland-scanner found: YES (/usr/bin/wayland-scanner) wlroots| Has header "linux/dma-buf.h" : YES (cached) wlroots| Has header "sys/eventfd.h" : YES (cached) wlroots| Dependency pixman-1 found: YES 0.42.2 (cached) wlroots| Dependency libudev found: YES 255 (cached) wlroots| Dependency libseat found: YES 0.8.0 (cached) wlroots| Dependency libinput found: YES 1.25.0 (cached) wlroots| Dependency wayland-client found: YES 1.22.0 (cached) wlroots| Dependency xwayland found: YES 24.1.0 (cached) wlroots| Dependency xcb found: YES 1.17.0 (cached) wlroots| Dependency xcb-composite found: YES 1.17.0 (cached) wlroots| Dependency xcb-ewmh found: YES 0.4.1 (cached) wlroots| Dependency xcb-icccm found: YES 0.4.1 (cached) wlroots| Dependency xcb-render found: YES 1.17.0 (cached) wlroots| Dependency xcb-res found: YES 1.17.0 (cached) wlroots| Dependency xcb-xfixes found: YES 1.17.0 (cached) wlroots| Run-time dependency xcb-errors found: NO (tried pkgconfig and cmake) wlroots| Message: Required for printing X11 errors. wlroots| Checking for function "xcb_xfixes_set_client_disconnect_mode" with dependencies xcb, xcb-composite, xcb-ewmh, xcb-icccm, xcb-render, xcb-res, xcb-xfixes, xcb-errors: YES (cached) wlroots| Configuring config.h using configuration wlroots| Configuring version.h using configuration wlroots| Configuring config.h using configuration wlroots| Build targets in project: 186 wlroots| Subproject wlroots finished. Dependency wlroots found: YES 0.18.0-dev (overridden) Dependency libdisplay-info found: YES 0.1.1 (cached) Dependency libdecor-0 found: YES 0.2.2 (cached) Program glslang found: YES (/usr/bin/glslang) Looking for a fallback subproject for the dependency libliftoff because: Use of fallback dependencies is forced. Executing subproject libliftoff libliftoff| Project name: libliftoff libliftoff| Project version: 0.5.0 libliftoff| C compiler for the host machine: ccache cc (gcc 13.2.0 "cc (Debian 13.2.0-24) 13.2.0") libliftoff| C linker for the host machine: cc ld.bfd 2.42 libliftoff| Compiler for C supports arguments -Wundef: YES (cached) libliftoff| Compiler for C supports arguments -Wmissing-prototypes: YES (cached) libliftoff| Compiler for C supports arguments -Walloca: YES (cached) libliftoff| Compiler for C supports arguments -Wdeclaration-after-statement: YES (cached) libliftoff| Compiler for C supports arguments -Wfloat-conversion: YES (cached) libliftoff| Compiler for C supports arguments -Wsign-conversion: YES (cached) libliftoff| Compiler for C supports arguments -Wno-missing-braces: YES (cached) libliftoff| Compiler for C supports arguments -Wno-unused-parameter: YES (cached) libliftoff| Dependency libdrm found: YES 2.4.120 (cached) libliftoff| Build targets in project: 199 libliftoff| Subproject libliftoff finished. Dependency libliftoff found: YES 0.5.0 (overridden) Dependency benchmark found: YES 1.8.3 (cached) Build targets in project: 206 wlroots 0.18.0-dev drm-backend : NO x11-backend : NO libinput-backend: YES xwayland : YES gles2-renderer : NO vulkan-renderer : NO gbm-allocator : NO session : YES xcb-errors : NO egl : NO gamescope undefined Subprojects libliftoff: YES openvr : YES vkroots : YES wlroots : YES Found ninja-1.12.1 at /usr/bin/ninja Cleaning... 2 files. [40/41] Linking target src/gamescope ```

version 3.14.22 works:

$ gamescope -- mangohud glxgears
console: gamescope version 3.14.22
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
vulkan: selecting physical device 'AMD Radeon Graphics (RADV RENOIR)': queue family 1 (general queue family 0)
vulkan: physical device supports DRM format modifiers
wlserver: [backend/headless/backend.c:67] Creating headless backend
vulkan: supported DRM formats for sampling usage:
vulkan:   AR24 (0x34325241)
vulkan:   XR24 (0x34325258)
vulkan:   AB24 (0x34324241)
vulkan:   XB24 (0x34324258)
vulkan:   RG16 (0x36314752)
vulkan:   NV12 (0x3231564E)
vulkan:   AB4H (0x48344241)
vulkan:   XB4H (0x48344258)
vulkan:   AB48 (0x38344241)
vulkan:   XB48 (0x38344258)
vulkan:   AB30 (0x30334241)
vulkan:   XB30 (0x30334258)
vulkan:   AR30 (0x30335241)
vulkan:   XR30 (0x30335258)
vulkan: Creating Gamescope nested swapchain with format 44 and colorspace 0
wlserver: Using explicit sync when available
wlserver: Running compositor on wayland display 'gamescope-0'
wlserver: [backend/headless/backend.c:17] Starting headless backend
wlserver: Successfully initialized libei for input emulation!
wlserver: [xwayland/server.c:107] Starting Xwayland on :1
wlserver: [types/wlr_compositor.c:771] New wlr_surface 0x5562e60378f0 (res 0x5562e602e6c0)
wlserver: [xwayland/server.c:272] Xserver is ready
pipewire: stream state changed: connecting
pipewire: stream state changed: paused
pipewire: stream available on node ID: 125
vblank: Using timerfd.
vulkan: Creating Gamescope nested swapchain with format 44 and colorspace 0
pipewire: renegotiating stream params (size: 1280x720)
wlserver: [types/wlr_compositor.c:771] New wlr_surface 0x5562e6004970 (res 0x5562e6030d10)
xwm: got the same buffer committed twice, ignoring.
[2024-07-07 09:14:07.833] [MANGOHUD] [error] [overlay_params.cpp:1003] Failed to read presets file: '/home/user/.config/MangoHud/presets.conf'
[2024-07-07 09:14:07.834] [MANGOHUD] [error] [overlay_params.cpp:840] Unknown option 'io_stats'
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 708, clipping.
>                   X11 cannot support keycodes above 255.
Errors from xkbcomp are not fatal to the X server
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
503 frames in 5.0 seconds = 100.470 FPS
^Cgamescope: Received Interrupt signal, forwarding to child!
xwm: X11 I/O error
gamescope: Received Interrupt signal, attempting shutdown!
terminate called without an active exception
zsh: IOT instruction  gamescope -- mangohud glxgears

Just thought I'd file the bug. This is on a debian based OS with X11.

sharkautarch commented 1 month ago

@fritz-fritz Try running without mangohud

fritz-fritz commented 1 month ago

@sharkautarch it's the same

$ gamescope -- glxgears      
[gamescope] [Info]  console: gamescope version 3.14.23
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  vulkan: selecting physical device 'AMD Radeon Graphics (RADV RENOIR)': queue family 1 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
[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]  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] [Info]  wlserver: [xwayland/server.c:107] Starting Xwayland on :1
[gamescope] [Debug] wlserver: [types/wlr_compositor.c:771] New wlr_surface 0x56404e706c60 (res 0x56404e6fda30)
[gamescope] [Debug] wlserver: [xwayland/server.c:272] Xserver is ready
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 125
[gamescope] [Info]  vblank: Using timerfd.
[gamescope] [Info]  vulkan: Creating Gamescope nested swapchain with format 44 and colorspace 0
[gamescope] [Debug] pipewire: renegotiating stream params (size: 1280x720)
^C[gamescope] [Error] xwm: X11 I/O error
terminate called without an active exception
zsh: IOT instruction  gamescope -- glxgears

I don't know if it's related but probably isn't... but i seem to be having issues with running on my nvidia card where its running at a much high FPS than expected. Here is on 3.14.21 but is consistent on others:

$ __NV_PRIME_RENDER_OFFLOAD=1 PROTON_ENABLE_NVAPI=1 DXVK_ASYNC=1  DXVK_FILTER_DEVICE_NAME='NVIDIA' DRI_PRIME=1 PROTON_HIDE_NVIDIA_GPU=0 __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only  gamescope -w 2560 -h 1080 -W 3440 -H 1440 -f -F fsr -r 120 -o 120 --adaptive-sync -- glxgears
console: gamescope version 3.14.21
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
vulkan: selecting physical device 'NVIDIA GeForce GTX 1650': queue family 2 (general queue family 0)
vulkan: physical device supports DRM format modifiers
wlserver: [backend/headless/backend.c:67] Creating headless backend
vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
vulkan: supported DRM formats for sampling usage:
vulkan:   AR24 (0x34325241)
vulkan:   XR24 (0x34325258)
vulkan:   AB24 (0x34324241)
vulkan:   XB24 (0x34324258)
vulkan:   RG16 (0x36314752)
vulkan:   NV12 (0x3231564E)
vulkan:   AB4H (0x48344241)
vulkan:   XB4H (0x48344258)
vulkan:   AB30 (0x30334241)
vulkan:   XB30 (0x30334258)
vulkan:   AR30 (0x30335241)
vulkan:   XR30 (0x30335258)
vulkan: Creating Gamescope nested swapchain with format 44 and colorspace 0
wlserver: Using explicit sync when available
wlserver: Running compositor on wayland display 'gamescope-0'
wlserver: [backend/headless/backend.c:17] Starting headless backend
wlserver: Successfully initialized libei for input emulation!
wlserver: [xwayland/server.c:107] Starting Xwayland on :1
Refusing to try glamor on llvmpipe
EGL setup failed, disabling glamor
Failed to initialize glamor, falling back to sw
wlserver: [types/wlr_compositor.c:771] New wlr_surface 0x55f7114830f0 (res 0x55f71147a120)
wlserver: [xwayland/server.c:272] Xserver is ready
pipewire: stream state changed: connecting
pipewire: stream state changed: paused
pipewire: stream available on node ID: 125
vblank: Using timerfd.
wlserver: [types/wlr_compositor.c:771] New wlr_surface 0x55f7114fa920 (res 0x55f71147b490)
xwm: got the same buffer committed twice, ignoring.
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 708, clipping.
>                   X11 cannot support keycodes above 255.
Errors from xkbcomp are not fatal to the X server
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
1698 frames in 5.0 seconds = 339.473 FPS
^Cgamescope: Received Interrupt signal, forwarding to child!
gamescope: Received Interrupt signal, attempting shutdown!
xwm: X11 I/O error
terminate called without an active exception
zsh: IOT instruction  __NV_PRIME_RENDER_OFFLOAD=1 PROTON_ENABLE_NVAPI=1 DXVK_ASYNC=1 ='NVIDIA' =1 =
fritz-fritz commented 1 month ago

I have run NVIDIA Nsight profiler to try and get a better idea of what's going on and can send the reports to a dev if helpful.

I won't pretend to understand how to really use this tool... but I see a standout difference between 22 and 23.

image image

Nvidia driver version as tested is 555.42.06. I will be downgrading though as I think that framerate issue is somehow openGL related and is probably due to the driver.

sharkautarch commented 1 month ago

@fritz-fritz Can you try switching to a tty (alt+fn or something) and running gamescope 3.14.23 from there?

note: use gamescope -- glxgears |& tee gamescope.log So that you can save the log output

fritz-fritz commented 1 month ago

@sharkautarch it's the same

$ gamescope -- glxgears      
[gamescope] [Info]  console: gamescope version 3.14.23
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  vulkan: selecting physical device 'AMD Radeon Graphics (RADV RENOIR)': queue family 1 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
[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]  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] [Info]  wlserver: [xwayland/server.c:107] Starting Xwayland on :1
[gamescope] [Debug] wlserver: [types/wlr_compositor.c:771] New wlr_surface 0x56404e706c60 (res 0x56404e6fda30)
[gamescope] [Debug] wlserver: [xwayland/server.c:272] Xserver is ready
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 125
[gamescope] [Info]  vblank: Using timerfd.
[gamescope] [Info]  vulkan: Creating Gamescope nested swapchain with format 44 and colorspace 0
[gamescope] [Debug] pipewire: renegotiating stream params (size: 1280x720)
^C[gamescope] [Error] xwm: X11 I/O error
terminate called without an active exception
zsh: IOT instruction  gamescope -- glxgears

That is essentially what this output is. Also, the NVIDIA nSight profiler captures the log as well and I have those saved.

I have rolled back to 3.14.22 and nvidia driver 525.147.05 and launch gamescope with ENABLE_GAMESCOPE_WSI=0 this puts me back at a stable place.

fritz-fritz commented 2 weeks ago

Just to update.

OpenGL version string: 4.6.0 NVIDIA 535.183.01 OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.1.3-2

3.14.23 remains broken with no window 3.14.24 works when passing ENABLE_GAMESCOPE_WSI=0 (otherwise vulkan fails) 3.14.25 fails to compile

I believe from the commit history that whatever change was rolled back was likely what caused the issue with 3.14.23.

Closing due to working newer version.