Comment 0 for bug 1915332

Revision history for this message
Kai Mast (kai-mast) wrote :

Hi!

First, I should mention that the driver in general works very well and I have not encountered other problems with it.

I noticed however that vulkaninfo (from vulkan-tools) is not able to run. I think it is either related to Wayland or my prime configuration. I tried with both XWayland and Wayland.

```
  ~/dev/Vulkan-Tools/build master ❯ vulkaninfo
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_radeon.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_lvp.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_intel.so: wrong ELF class: ELFCLASS32
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

ERROR at /build/vulkan-tools-A4vpMj/vulkan-tools-1.2.162.0+dfsg1/vulkaninfo/vulkaninfo.h:248:vkGetPhysicalDeviceSurfaceFormats2KHR failed with ERROR_INITIALIZATION_FAILED
  ~/dev/Vulkan-Tools/build master ❯ env DISPLAY= vulkaninfo
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_radeon.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_lvp.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_intel.so: wrong ELF class: ELFCLASS32
'DISPLAY' environment variable not set... skipping surface info
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

fish: “env DISPLAY= vulkaninfo” terminated by signal SIGSEGV (Address boundary error)
```

I then built vulkaninfo from source. The backtrace is not very helpful though, it crashes somewhere inside the NVIDIA egl libraries.

```
Thread 1 "vulkaninfo" received signal SIGSEGV, Segmentation fault.
0x00007fffed803d59 in ?? () from /lib/x86_64-linux-gnu/libnvidia-eglcore.so.460.39
(gdb) bt
#0 0x00007fffed803d59 in ?? () from /lib/x86_64-linux-gnu/libnvidia-eglcore.so.460.39
#1 0x00007fffed8041f0 in ?? () from /lib/x86_64-linux-gnu/libnvidia-eglcore.so.460.39
#2 0x00005555555cd723 in GetVectorInit<VkPresentModeKHR, VkResult (*&)(VkPhysicalDevice_T*, VkSurfaceKHR_T*, unsigned int*, VkPresentModeKHR*), VkPhysicalDevice_T*&, VkSurfaceKHR_T*&> (
    func_name=0x5555555f55e8 "vkGetPhysicalDeviceSurfacePresentModesKHR", f=@0x7fffffffcfd8: 0x7ffff7833d50 <vkGetPhysicalDeviceSurfacePresentModesKHR>, init=VK_PRESENT_MODE_IMMEDIATE_KHR) at vulkaninfo/vulkaninfo.h:247
#3 0x00005555555bcc37 in GetVector<VkPresentModeKHR, VkResult (*&)(VkPhysicalDevice_T*, VkSurfaceKHR_T*, unsigned int*, VkPresentModeKHR*), VkPhysicalDevice_T*&, VkSurfaceKHR_T*&> (
    func_name=0x5555555f55e8 "vkGetPhysicalDeviceSurfacePresentModesKHR", f=@0x7fffffffcfd8: 0x7ffff7833d50 <vkGetPhysicalDeviceSurfacePresentModesKHR>) at vulkaninfo/vulkaninfo.h:259
#4 0x00005555555b42d5 in AppSurface::AppSurface (this=0x555555ecc090, inst=..., phys_device=0x555555eca990, surface_extension=..., sur_extension_pNextChain=std::vector of length 2, capacity 2 = {...})
    at vulkaninfo/vulkaninfo.h:1217
#5 0x00005555555abeb5 in main (argc=1, argv=0x7fffffffde98) at vulkaninfo/vulkaninfo.cpp:948
```

Any idea what this could be caused by? I provide core dumps if that is helpful.