gamescope icon indicating copy to clipboard operation
gamescope copied to clipboard

SDL_Vulkan_CreateSurface failed: VK_KHR_wayland_surface extension is not enabled

Open Nanito111 opened this issue 1 year ago • 9 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

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

  • [x] The issue occurs on upstream gamescope without any modifications

Current Behavior

I had this issue after a kernel update, I don't know why this occur or what the VK_KHR_wayland_surface is. This also happens even when I run gamescope without any argument or command.

Steps To Reproduce

  1. Open terminal
  2. Install from Package Manager or from git (I'm using AUR)
  3. Type command: gamescope -e -- steam or for non-steam games gamescope -W 1920 -H 1080 -- %command%
  4. Run command

Hardware information

- Distro: Arch Linux 6.14.6-arch1-1
- CPU: AMD Ryzen 5 5600G (12) @ 4.46 GHz
- GPU: AMD Radeon Vega Series / Radeon Vega Mobile Series [Integrated]
- Driver Version: Mesa 25.0.5-arch1.1

Software information

- Desktop environment: Hyprland 0.49.0
- Session type: wayland
- Gamescope version: 3.16.5+ (gcc 15.1.1)
- Gamescope launch command(s): gamescope -W 1920 -H 1080 -- %command%; gamescope -e -- steam

Which gamescope backends have the issue you are reporting?

  • [x] Wayland (default for nested gamescope)
  • [ ] DRM (default for embedded gamescope, i.e. gamescope-session)
  • [ ] SDL
  • [ ] OpenVR

Logging, screenshots, or anything else

stdout from command: gamescope -e -- steam

[gamescope] [Info]  console: gamescope version 3.16.5+ (gcc 15.1.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/gpd.win4.lcd.lua' (id: 5)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongo.lcd.lua' (id: 6)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongos.lcd.lua' (id: 7)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 8)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 9)
[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/francisco/.config/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/home/francisco/.config/gamescope/scripts' does not exist
wp_color_manager_v1#17: error 0: Windows scRGB profiles are not supported
libdecor-gtk-WARNING: Could not get required globals
Failed to load plugin 'libdecor-gtk.so': failed to init
libdecor-cairo-WARNING: Could not get required globals
Failed to load plugin 'libdecor-cairo.so': failed to init
No plugins found, falling back on no decorations
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
[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] [Error] xdg_backend: Couldn't create Wayland input objects.
[gamescope] [Error] xdg_backend: Failed to initialize input thread
SDL_Vulkan_CreateSurface failed: VK_KHR_wayland_surface extension is not enabled in the Vulkan instance.terminate called without an active exception
fish: Job 1, 'gamescope -e -- steam' terminated by signal SIGABRT (Abort)

Nanito111 avatar May 15 '25 00:05 Nanito111

Duplicate of https://github.com/ValveSoftware/gamescope/issues/1825

effects3d avatar May 15 '25 09:05 effects3d

Hello @Nanito111, as @effectsbot noted, wp_color_manager_v1#17: error 0: Windows scRGB profiles are not supported points towards #1825.

Closing as a duplicate.

kisak-valve avatar May 15 '25 12:05 kisak-valve

Short answer, use gamescope flag --backend sdl for now I think.

tzcrawford avatar Jun 21 '25 21:06 tzcrawford

Short answer, use gamescope flag --backend sdl for now I think.

Thanks it works!

karolsamsel avatar Jul 23 '25 14:07 karolsamsel

Short answer, use gamescope flag --backend sdl for now I think.

I did this and the error changes to 'vkCreateDevice failed (VkResult: -7) terminate called without an active exception'. I am on NixOS if that changes anything.

acshettle avatar Aug 13 '25 06:08 acshettle

Short answer, use gamescope flag --backend sdl for now I think.简短的回答,我认为现在使用 gamescope 标志 --backend sdl。

On my nvidia gpu it can run but the color is inverted.

zerodegress avatar Aug 29 '25 15:08 zerodegress

Short answer, use gamescope flag --backend sdl for now I think.

Image but colors are broken

Beengoo avatar Sep 04 '25 10:09 Beengoo

I encountered the same thing and fixed it by installing vulkan-intel package. I only had vulkan driver installed for nvidia and intel has a specific thing

cone-forest avatar Mar 23 '26 16:03 cone-forest

I encountered the same thing and fixed it by installing vulkan-intel package. I only had vulkan driver installed for nvidia and intel has a specific thing

I'll tty it tomorrow, the only thing that I'm on NixOS now

Beengoo avatar Mar 23 '26 23:03 Beengoo