SDL_Vulkan_CreateSurface failed: VK_KHR_wayland_surface extension is not enabled
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
- Open terminal
- Install from Package Manager or from git (I'm using AUR)
- Type command:
gamescope -e -- steamor for non-steam gamesgamescope -W 1920 -H 1080 -- %command% - 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)
Duplicate of https://github.com/ValveSoftware/gamescope/issues/1825
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.
Short answer, use gamescope flag --backend sdl for now I think.
Short answer, use gamescope flag
--backend sdlfor now I think.
Thanks it works!
Short answer, use gamescope flag
--backend sdlfor 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.
Short answer, use gamescope flag
--backend sdlfor now I think.简短的回答,我认为现在使用 gamescope 标志--backend sdl。
On my nvidia gpu it can run but the color is inverted.
Short answer, use gamescope flag
--backend sdlfor now I think.
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 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