Vulkan on Wayland does not work until logging into a Xorg session first

Vulkan applications on Wayland do not work until logging into a Xorg session first. After logging and logging out out of an Xorg session back into the Wayland session, vulkan applications now function.

Test case:

  • Reboot
  • Login into GNOME Wayland session from GDM (wayland)
  • Run vulkaninfo --summary and vkcube-wayland
    ? vkcube-wayland segfaults open launch
  • Logout and login to the GNOME Xorg session from GDM
  • Logout from Xorg session back into Wayland Session
  • Run vkcube-wayland, now runs successfully

nvidia-bug-report.log.gz (527.9 KB)
nv-vulkan-wayland-segfault.txt (9.0 KB)

System:
Solus 4.5 (rolling)
Kernel 6.9.10
DE: GNOME 46.3

The issue was missing setuid bit on the nvidia-modprobe binary, packaging issue.