You are not logged in.

#1 2016-08-09 09:48:12

StelarCF
Member
Registered: 2015-04-11
Posts: 3

Vulkan applications segfault

Both vulkaninfo and every program that I've compiled from here: https://github.com/SaschaWillems/Vulkan segfaults without doing much or anything:

[12:35]stelarcf:Vulkan$ vulkaninfo 
===========
VULKAN INFO
===========

Vulkan API Version: 1.0.21

Segmentation fault (core dumped)
[12:39]stelarcf:Vulkan$ ./bin/bloom 
Segmentation fault (core dumped)

This occurs whether or not I run them on my intel integrated card or through primusrun for dedicated (though as I understand the latter is an issue with bumblebee)

I have the necessary (as far as I know) packages or this installed:

[12:39]stelarcf:Vulkan$ pacman -Ss vulkan
extra/spirv-tools 1.1.1-1 (vulkan-devel) [installed]
    API and commands for processing SPIR-V modules
extra/vulkan-extra-layers 1.0.17.0-1 (vulkan-devel)
    Extra layers for Vulkan development
extra/vulkan-headers 1:1.0.23-1 (vulkan-devel) [installed]
    Vulkan header files
extra/vulkan-html-docs 1:1.0.23-1 (vulkan-devel)
    Vulkan html documentation
extra/vulkan-icd-loader 1.0.21.0-1 [installed]
    Vulkan Installable Client Driver (ICD) Loader
extra/vulkan-intel 12.0.1-7 [installed]
    Intel's Vulkan mesa driver
extra/vulkan-man-pages 1:1.0.23-1 (vulkan-devel) [installed]
    Vulkan man pages
extra/vulkan-trace 1.0.17.0-1 (vulkan-devel)
    Vulkan tracing and replaying tools
extra/vulkan-validation-layers 1.0.21.0-1 (vulkan-devel) [installed]
    Vulkan Software Development Kit

The only thing I have found out through gdb is that it crashes somewhere in /usr/lib/libGLX_nvidia.so.0 - which is a bit odd, since it happens even when I'm not running with optirun/primusrun, but if this is the issue (that it's loading the wrong libraries) I can't figure out how to fix it.

Offline

#2 2016-08-09 12:59:20

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Vulkan applications segfault

Vulkaninfo works fine here. Segfaults make me think about out of date cpu microcode, make sure you are updating the cpu's microcode https://wiki.archlinux.org/index.php/Microcode.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2016-08-10 01:35:38

gnox
Member
Registered: 2013-05-18
Posts: 81

Re: Vulkan applications segfault

Interesting , I had the same issue running "vulkaninfo" with the intel card (SIGSEGV), but I didn't care because "primusrun vulkaninfo" worked fine,  after checking if I have the microcode it didn't appear in dmesg, so I installed it according to the wiki, and now "primusrun vulkaninfo" shows the same error SIGSEGV; only "env DISPLAY=:8 optirun/primusrun vulkaninfo" works now .

EDIT : If I remove (meaning move/backup) the file /usr/share/vulkan/nvidia_icd.json, leaving only the "intel_icd.json", the command  "vulkaninfo" works with the intel gpu.

Last edited by gnox (2016-08-10 02:08:54)

Offline

#4 2016-08-10 09:16:08

StelarCF
Member
Registered: 2015-04-11
Posts: 3

Re: Vulkan applications segfault

Huh, DISPLAY=:8 works for me as well for vulkaninfo, though the example programs still segfault (though much later, after complaining Haswell Vulkan support is incomplete hmm). I've installed microcode updates, I'll reboot and see if anything changes.

Edit: installed microcode updates and verified they're installed, no change - I also noticed DISPLAY=:8 vulkaninfo without primusrun also works (probably because primusrun still doesn't work with vulkan).

Last edited by StelarCF (2016-08-10 09:21:45)

Offline

#5 2016-08-26 23:51:56

gnox
Member
Registered: 2013-05-18
Posts: 81

Re: Vulkan applications segfault

fixed in latest mesa-git (12.1.0_devel.84344.ea33df7-1).

Offline

Board footer

Powered by FluxBB