You are not logged in.

#1 2023-12-18 18:16:50

text70
Member
Registered: 2021-12-12
Posts: 5

Vulkan Nvidia segfaults after recent updates

I have been having trouble running any vulkan applications after the most recent update today. I am not sure if it is the Nvidia driver or vulkan or amd-ucode or Xorg?

I was previously using nvidia-dkms drivers, with the lts kernel, and everything was working fine.
I have tried reinstalling nvidia-lts, and nvidia drivers, and nothing seems to work.

I have also tried setting the environment variable,

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json

which doesn't work either.

Output from:

vulkaninfo
Segmentation fault (core dumped)

and

dmesg | grep nvidia

[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=75dbd973-7f9f-4d79-bac1-0b3f2bfdf307 rw loglevel=3 quiet splash nvidia-drm.modeset=1
[    0.021877] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=75dbd973-7f9f-4d79-bac1-0b3f2bfdf307 rw loglevel=3 quiet splash nvidia-drm.modeset=1
[    3.594026] nvidia: loading out-of-tree module taints kernel.
[    3.594035] nvidia: module license 'NVIDIA' taints kernel.
[    3.602566] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    3.843182] nvidia-nvlink: Nvlink Core is being initialized, major device number 238
[    3.844041] nvidia 0000:05:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[    5.518109] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[    5.601367] nvidia-uvm: Loaded the UVM driver, major device number 234.
[    6.374527] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  545.29.06  Thu Nov 16 01:47:29 UTC 2023
[    6.379631] [drm] [nvidia-drm] [GPU ID 0x00000500] Loading driver
[    7.401214] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:05:00.0 on minor 0
[   35.344312] vulkaninfo[1967]: segfault at 50 ip 00007f979bd35f40 sp 00007fff6690de10 error 4 in libnvidia-glcore.so.545.29.06[7f979b25f000+1a34000] likely on CPU 6 (core 6, socket 
$ sudo pacman -Qs nvidia
local/egl-wayland 2:1.1.13-1
    EGLStream-based Wayland external platform
local/lib32-libvdpau 1.5-2
    Nvidia VDPAU library
local/lib32-nvidia-utils 545.29.06-1
    NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia 545.29.06-1
    OpenCL implemention for NVIDIA (32-bit)
local/libvdpau 1.5-2
    Nvidia VDPAU library
local/libxnvctrl 545.29.06-1
    NVIDIA NV-CONTROL X extension
local/nvidia-lts 1:545.29.06-6
    NVIDIA drivers for linux-lts
local/nvidia-settings 545.29.06-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 545.29.06-1
    NVIDIA drivers utilities
local/opencl-nvidia 545.29.06-1
    OpenCL implemention for NVIDIA
lspci -k |grep nvidia
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia
sudo pacman -Qs vulkan
local/lib32-nvidia-utils 545.29.06-1
    NVIDIA drivers utilities (32-bit)
local/lib32-vkd3d 1.9-1
    Direct3D 12 to Vulkan translation library By WineHQ
local/lib32-vulkan-icd-loader 1.3.273-1
    Vulkan Installable Client Driver (ICD) Loader (32-bit)
local/lib32-vulkan-radeon 1:23.3.1-1
    Radeon's Vulkan mesa driver (32-bit)
local/mangohud 0.7.0-2
    A Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load and more.
local/nvidia-utils 545.29.06-1
    NVIDIA drivers utilities
local/spirv-tools 2023.5-1 (vulkan-devel)
    API and commands for processing SPIR-V modules
local/vkd3d 1.9-1
    Direct3D 12 to Vulkan translation library By WineHQ
local/vulkan-extra-layers 1.3.250.0-1 (vulkan-devel)
    Extra layers for Vulkan development
local/vulkan-extra-tools 1.3.250.0-1 (vulkan-devel)
    Vulkan lunarg tools
local/vulkan-headers 1:1.3.273-1 (vulkan-devel)
    Vulkan header files
local/vulkan-html-docs 1:1.3.273-1 (vulkan-devel)
    Vulkan html documentation
local/vulkan-icd-loader 1.3.273-1
    Vulkan Installable Client Driver (ICD) Loader
local/vulkan-radeon 1:23.3.1-1
    Radeon's Vulkan mesa driver
local/vulkan-tools 1.3.269-1 (vulkan-devel)
    Vulkan Utilities and Tools
local/vulkan-utility-libraries 1.3.273-1 (vulkan-devel)
    Vulkan Utility Libraries
local/vulkan-validation-layers 1.3.268.0-1 (vulkan-devel)
    Vulkan Validation Layers
neofetch --ascii_distro windos
        #####           text70@archibald 
       #######          ---------------- 
       ##O#O##          OS: Arch Linux x86_64 
       #######          Kernel: 6.1.68-1-lts 
     ###########        Uptime: 23 mins 
    #############       Packages: 1896 (pacman) 
   ###############      Shell: bash 5.2.21 
   ################     Resolution: 1920x1080 
  #################     DE: Plasma 5.27.10 
#####################   WM: KWin 
#####################   Theme: Breeze Light [Plasma], Breeze [GTK2/3] 
  #################     Icons: [Plasma], breeze-dark [GTK2/3] 
                        Terminal: konsole 
                        Terminal Font: Hack 12 
                        CPU: AMD Ryzen 7 5800X (16) @ 4.100GHz 
                        GPU: NVIDIA GeForce RTX 3070 
                        Memory: 1878MiB / 15916MiB 

Offline

#2 2023-12-18 20:37:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,394

Re: Vulkan Nvidia segfaults after recent updates

Online

#3 2023-12-18 22:31:25

text70
Member
Registered: 2021-12-12
Posts: 5

Re: Vulkan Nvidia segfaults after recent updates

seth wrote:

gdb reports statement(program exited with code 0377)

core dumps look normal except for :

'core.rundll32\x2eexe.1000{longhash_function_here}.zst

Which seems to correspond to "core.fossilize_repla.1000" hash (Steam's shader layer), from core dumps.

Is this normal or something nasty?

Offline

#4 2023-12-18 23:54:35

text70
Member
Registered: 2021-12-12
Posts: 5

Re: Vulkan Nvidia segfaults after recent updates

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json <your program here>

This seems to work just fine. Almost solved. I just need to set this as an environment variable.

Offline

#5 2023-12-19 03:08:06

tamtamatar
Member
Registered: 2023-10-01
Posts: 3

Re: Vulkan Nvidia segfaults after recent updates

+1 the VK_ICD_FILENAMES workaround works!!

Offline

#6 2023-12-19 08:43:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,394

Re: Vulkan Nvidia segfaults after recent updates

I have also tried setting the environment variable,

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json

which doesn't work either.

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json <your program here>

This seems to work just fine.

1. https://wiki.archlinux.org/title/Environment_variables
2. So this is a hybrid graphics system?
"lspci"?
Why is vulkan-radeon installed?

https://wiki.archlinux.org/title/Vulkan … initialize

Online

#7 2023-12-19 10:20:52

luiscastro193
Member
Registered: 2023-12-11
Posts: 4

Re: Vulkan Nvidia segfaults after recent updates

I had the same issue. The problem was indeed having installed another vulkan driver. Thanks!

Offline

#8 2023-12-19 15:55:32

text70
Member
Registered: 2021-12-12
Posts: 5

Re: Vulkan Nvidia segfaults after recent updates

seth wrote:

I have also tried setting the environment variable,

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json

which doesn't work either.

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json <your program here>

This seems to work just fine.

1. https://wiki.archlinux.org/title/Environment_variables
2. So this is a hybrid graphics system?
"lspci"?
Why is vulkan-radeon installed?

https://wiki.archlinux.org/title/Vulkan … initialize

No, I switched graphics cards a while back and did not clean up the packages. icd loading and selection was working fine up until two days ago, I am not sure what was changed. From logs it looks like vulkan-radeon was indeed updated, but I am not sure why that automatically takes priority, as both nvidia_icd and radeon_icd were present?

EDIT:

But yes, after removing vulkan-radeon and lib32-vulkan-radeon, there is no conflict. I would assume you could use this workaround in a hybrid graphics system that has both an NVIDIA and AMD gpus in several different pci slots, only needing to specify the vk_icd in order to divide the workload.

Last edited by text70 (2023-12-19 16:08:43)

Offline

#9 2023-12-19 16:40:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,394

Online

#10 2023-12-19 17:17:30

forbiddenlake
Member
Registered: 2014-08-14
Posts: 4

Re: Vulkan Nvidia segfaults after recent updates


The Starflyer is real!

Offline

Board footer

Powered by FluxBB