I was told by the owner of this github project to report that there seems to be an issue in the latest version of the nvidia drivers for linux. issue: obs-vkcapture GetMemoryFdKHR failed VK_ERROR_INITIALIZATION_FAILED · Issue #71 · nowrep/obs-vkcapture · GitHub

my specs:
OS: Manjaro Linux x86_64
Kernel: 5.10.136-1-MANJARO
DE: GNOME 42.4
WM: Mutter
Driver Version : 515.65.01
CUDA Version : 11.7

Could you be so kind and take a look at the issue?

the exact error:
$> obs-gamecapture vkcube
[obs-vkcapture] Init Vulkan 1.2.0
Selected GPU 0: NVIDIA GeForce GTX 960, type: DiscreteGpu
[obs-vkcapture] Injecting VK_KHR_bind_memory2 extension
[obs-vkcapture] Injecting VK_KHR_get_memory_requirements2 extension
[obs-vkcapture] Injecting VK_KHR_external_memory_fd extension
[obs-vkcapture] Injecting VK_EXT_image_drm_format_modifier extension
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 500x500
[obs-vkcapture] GetMemoryFdKHR failed VK_ERROR_INITIALIZATION_FAILED
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] vk_shtex_init faile[obs-vkcapture] GetMemoryFdKHR failed VK_ERROR_INITIALIZATION_FAILED

i can see vkcube in my obs, but selecting it does nothing.

I can use obs-vkcapture on wayland session even without any problems.
Does it happen on any other apps or just vkcube ?

yes, this error shows up on any app i try to record. i forgot to add to my original post that i am running X11. do you think switching to wayland might fix this? is wayland any good right now with the nvidia cards?

Tried on X11(x.org) and the option for obs-vkcapture doesn’t even show up in OBS itself. As for wayland it will probably work, wayland on nvidia gpus have gone a long way, still need some stuff to be ironed out however with KDE mostly having a huge showstopper imho.
450914 – Wayland, games on Nvidia are force vsynced
This bug also causes 2 more which screw up the performance of the game, hopefully the new driver or some other driver will resolve this issue as it’s the only showstopper of that DE as far as I can experience.

EDIT: I can see you use GNOME, which is really good on nvidia gpus for wayland as far as I’ve heard.