[Solved] Vulkan driver : instant crash (Nvidia binary blobs)

Hi everyone :slight_smile:

First, thanks to the community for its amazing work !

I’m using RetroArch on a decent machine (recent i3, gtx 1050, nvidia proprietary drivers). It looks absolutely beautiful along with nice pixel shaders combinations.

In order to reduce input lag (I’m very sensitive to this :slight_smile: I tried to switch from gl to Vulkan. It causes retroarch to instantly segfault. (if I quit after changing the setting and before starting a game, it even segfaults before getting to the menu. I tried to switch from xmb to bgui, I tried to erase my whole config, and I tried the daily build of RA).

Any idea ? Cheers

Edit : distribution : KDE Neon. Vulkan apps do work (i.e. : Mad Max, Talos, from Steam). Latest Nvidia binary blob.

Edit 2 : I also tried KMS from the terminal : instant segfault too. Probably for different reasons :slight_smile:

Edit 3 : unfortunately, Wayland is not an option (KDE + nvidia proprietary).

BTW, here’s what I get with --verbose :

[INFO] RetroArch 1.6.7 (Git 85e2a11)
[INFO] === Build =======================================
Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 SSE4.2 AES 
Built: Aug 26 2017
[INFO] Version: 1.6.7
[INFO] Git: 85e2a11
[INFO] =================================================
[INFO] [Config]: Loading default config.
[INFO] [Config]: loading config from: (null).
[INFO] Looking for config in: "/home/mahen/.config/retroarch/retroarch.cfg".
[INFO] Incompatible shader for backend vulkan, clearing...
[INFO] Environ SET_PIXEL_FORMAT: RGB565.
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 29970.03 Hz.
[INFO] Found shader "/home/mahen/.config/retroarch/shaders/retroarch.glslp"
[INFO] [Video]: Video @ fullscreen
[ERROR] [Wayland]: Failed to connect to Wayland server.
[ERROR] [Vulkan]: Failed to open Vulkan loader.
[WARN] Failed to bind API (#6, version 1.0) on context driver "x-egl".
[WARN] Failed to bind API (#6, version 1.0) on context driver "kms".
[WARN] Failed to bind API (#6, version 1.0) on context driver "sdl_gl".
[ERROR] [Vulkan]: Failed to open Vulkan loader.
[ERROR] [Vulkan]: Failed to create Vulkan context.
[INFO] [Vulkan]: Detecting screen resolution 320x240.
[INFO] [Vulkan]: Using resolution 320x240
[INFO] [Vulkan]: Using RGB565 format.
Erreur de segmentation

My vulkan-utils package is : version 1.0.54 Nvidia drivers : 384

As I wrote in another thread, I got the Vulkan mode to run under Manjaro. So my issue has sth to do with the Ubuntu 16.04 software stack and/or RA build options. :slight_smile:

Probably something up with Ubuntu, yeah.

try to get backtrace then using gdb if possible. you might possibly need libvulkan1-dev if you are compiling retroarch. whats the output of “vulkaninfo”?

OK, will try to get a trace. output of vulkaninfo : https://framabin.org/?4d0ee89aca3cdf34#tKXL5gy24R4VPaLVkR7z9D0RTQ3QQ2Z81uVUjCC4iZA=

And here is the backtrace : https://framabin.org/?c840bc1b191cf784#gM1lVlTVBAgfzbPRDvKjse6Z2HfUafMMahtLw2lzy20=

I use Retroarch from the official Ubuntu PPA.

OK, if I build it myself, it works… :slight_smile:

As I stumbled upon other segfaults with my build (not Vulkan-related), I decided to try the stable libretro ppa again : no more Vulkan segfault. Gees !

So my segfaults are related to the retroarch build in the testing libretro ppa…

Oh BTW… I finally figured out Retroarch segfaults on Ubuntu 16.04 in Vulkan mode, if the libvulkan-dev is missing.

Thanks for following up with your own answer. You just saved me a headache.