Segfault on vkGetPhysicalDeviceProperties when calling ImGui_ImplVulkan_Init() #8837
Closed
coronavirus6045
started this conversation in
New Users Build/Link/Run issues ONLY!
Replies: 2 comments 3 replies
-
#define IMGUI_IMPL_VULKAN_USE_VOLK should be defined in all compilation units using the loader. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Update: I was able to fix by defining |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been trying to test ImGui through https://github.com/ocornut/imgui/wiki/Getting-Started#example-if-you-are-using-sdl2sdl3--vulkan and when running causes a segfault on
imgui_impl_vulkan.cpp
(line 1245) when debugging after callingImGui_ImplVulkan_Init()
in the resource initialization function before the event loop starts.I use the volk library and even defining
IMGUI_IMPL_VULKAN_USE_VOLK
does not workOS: Fedora 42
Compiler: GCC 15.1.1
Build system: Meson
Snippet from main renderer code:
Header:
Above
#include <imgui.h>
, these headers above are for the wrapper classes for native Vk objects.For volk, it's included in
common.hpp
and I definedVOLK_IMPLEMENTATION
on a separate source file.Source:
Note: the get functions are written by me for classes that wrap Vk and will return the native Vk object handle.
Beta Was this translation helpful? Give feedback.
All reactions