Open rgov opened 9 months ago
Basically a dupe of #622, it just looks different.
I'm not sure why dynamic load of libvulkan.dylib
is attempted when the library is already loaded (e.g. by dyld, from being in the library link paths for the executable, which can be viewed by otool -L
on macOS). Reopening this as a separate bug from #622.
This looks like an incorrect assumption in the Vulkan headers. Opened https://github.com/KhronosGroup/Vulkan-Hpp/issues/1811.
I built
ngscopeclient
for macOS but it crashes immediately:Backtrace:
The crash happens when dyld runs initializers, before logging is set up. It is related to the initialization of the global Vulkan context object, which triggers some dynamic loading behavior in Vulkan.
https://github.com/ngscopeclient/scopehal/blob/af34b246b2a14608dcc1c5d51b0109ca97f5466e/scopehal/VulkanInit.cpp#L54-L57
https://github.com/KhronosGroup/Vulkan-Headers/blob/5a5c9a643484d888873e32c5d7d484fae8e71d3d/include/vulkan/vulkan_raii.hpp#L2713-L2725
This is a new crash for me in the past few months. Maybe due to a difference between using the Vulkan SDK and installing vulkan-headers from Homebrew?