ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.06k stars 201 forks source link

Xwayland startup failed, not setting up xwm [X11-Manjaro-Nvidia] #1238

Closed Milor123 closed 6 months ago

Milor123 commented 6 months ago

Hi guys I am trying of use gamescope, with gamescope -e vkcube, i use propietary drivers in nvidia NVIDIA-SMI 550.67 Driver Version: 550.67 CUDA Version: 12.4

My pc

██████████████████  ████████   OS: Manjaro Linux x86_64 
██████████████████  ████████   Kernel: 6.6.25-1-MANJARO 
████████  ████████  ████████   Resolution: 1920x1200 
████████  ████████  ████████   DE: Plasma 5.27.11 
████████  ████████  ████████   WM: KWin 
████████  ████████  ████████   Theme: [Plasma], Breeze [GTK2/3] 
████████  ████████  ████████   Icons: [Plasma], breeze-dark [GTK2/3] 
████████  ████████  ████████   Terminal: tilix 
████████  ████████  ████████   CPU: Intel i5-14500 (20) @ 5.000GHz 
                               GPU: NVIDIA GeForce RTX 4070 

Console Log error:

No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
vulkan: selecting physical device 'NVIDIA GeForce RTX 4070': 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: Running compositor on wayland display 'gamescope-0'
wlserver: [backend/headless/backend.c:17] Starting headless backend
wlserver: [xwayland/sockets.c:63] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
wlserver: [xwayland/server.c:108] Starting Xwayland on :1
No provider of eglGetCurrentContext found.  Requires one of:
    EGL 14
(EE) 
(EE) Backtrace:
(EE) 0: Xwayland (0x55cc85fb5000+0x168d23) [0x55cc8611dd23]
(EE) 1: Xwayland (0x55cc85fb5000+0x16cb04) [0x55cc86121b04]
(EE) 2: /usr/lib/libc.so.6 (0x7fbfd9c84000+0x40770) [0x7fbfd9cc4770]
(EE) 3: /usr/lib/libc.so.6 (0x7fbfd9c84000+0x9132c) [0x7fbfd9d1532c]
(EE) 4: /usr/lib/libc.so.6 (gsignal+0x18) [0x7fbfd9cc46c8]
(EE) 5: /usr/lib/libc.so.6 (abort+0xd7) [0x7fbfd9cac4b8]
(EE) 6: /usr/lib/libepoxy.so.0 (0x7fbfda080000+0xbbfee) [0x7fbfda13bfee]
(EE) 7: /usr/lib/libepoxy.so.0 (0x7fbfda080000+0xbc02e) [0x7fbfda13c02e]
(EE) 8: /usr/lib/libepoxy.so.0 (0x7fbfda080000+0xbd46f) [0x7fbfda13d46f]
(EE) 9: /usr/lib/libepoxy.so.0 (0x7fbfda080000+0xbfee7) [0x7fbfda13fee7]
(EE) 10: /usr/lib/libepoxy.so.0 (0x7fbfda080000+0xc08a8) [0x7fbfda1408a8]
(EE) 11: /usr/lib/libepoxy.so.0 (0x7fbfda080000+0x656a5) [0x7fbfda0e56a5]
(EE) 12: /usr/lib/libepoxy.so.0 (0x7fbfda080000+0x88b2f) [0x7fbfda108b2f]
(EE) 13: /usr/lib/libepoxy.so.0 (0x7fbfda080000+0xc00d8) [0x7fbfda1400d8]
(EE) 14: Xwayland (0x55cc85fb5000+0x4b2a4) [0x55cc860002a4]
(EE) 15: Xwayland (0x55cc85fb5000+0x47b21) [0x55cc85ffcb21]
(EE) 16: Xwayland (0x55cc85fb5000+0x3f8de) [0x55cc85ff48de]
(EE) 17: Xwayland (0x55cc85fb5000+0x302fb) [0x55cc85fe52fb]
(EE) 18: /usr/lib/libc.so.6 (0x7fbfd9c84000+0x29cd0) [0x7fbfd9cadcd0]
(EE) 19: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x7fbfd9cadd8a]
(EE) 20: Xwayland (0x55cc85fb5000+0x32d85) [0x55cc85fe7d85]
(EE) 
(EE) 
Fatal server error:
(EE) Caught signal 6 (Aborted). Server aborting
(EE) 
wlserver: [xwayland/server.c:270] Xwayland startup failed, not setting up xwm

Other command fail is

MANGOHUD=0 ENABLE_VKBASALT=0 SDL_VIDEODRIVER=x11 gamescope -f -e vkcube

could help me please? I've tried compile the gamescope-nvidia but it always show error while try compile :/

brain-anti-freeze commented 6 months ago

Try disabling threaded optimizations in the Nvidia driver to get rid of the EGL 14 error

Milor123 commented 6 months ago

Try disabling threaded optimizations in the Nvidia driver to get rid of the EGL 14 error

Ohhh amazing!!! Thank u very much, it works disabling the threaded optimizations

__GL_THREADED_OPTIMIZATIONS=0 gamescope vkcube
brain-anti-freeze commented 5 months ago

Found where I saw this - https://github.com/ValveSoftware/gamescope/issues/526 - haven't tried the app profile but it sounds interesting