Vk Validation Error: vkCreateCommandPool() in ImGui_ImplVulkan_CreateFontsTexture() missing allocator #7075

Closed
opened 2023-11-29 05:49:21 +00:00 by FoonTheRaccoon · 0 comments
FoonTheRaccoon commented 2023-11-29 05:49:21 +00:00 (Migrated from github.com)

Version: 1.90
Branch: docking

Back-ends: imgui_impl_vulkan.cpp + imgui_impl_glfw.cpp
Compiler: GNU + Clang + MSVC
Operating System: Win 11

On line 649 of imgui_impl_vulkan.cpp in function ImGui_ImplVulkan_CreateFontsTexture, the current code is:
vkCreateCommandPool(v->Device, &info, nullptr, &bd->FontCommandPool);

This causes the Vk validation error:
Validation Error: [ VUID-vkDestroyCommandPool-commandPool-00043 ] Object 0: handle = 0x2b424a0000000034, type = VK_OBJECT_TYPE_COMMAND_POOL; | MessageID = 0x909b0bb | Custom allocator specified while destroying VkCommandPool obj 0x2b424a0000000034 but not specified at creation. The Vulkan spec states: If no VkAllocationCallbacks were provided when commandPool was created, pAllocator must be NULL (https://vulkan.lunarg.com/doc/view/1.3.239.0/windows/1.3-extensions/vkspec.html#VUID-vkDestroyCommandPool-commandPool-00043)

Correct code should be:
vkCreateCommandPool(v->Device, &info, v->Allocator, &bd->FontCommandPool);

Version: 1.90 Branch: docking Back-ends: imgui_impl_vulkan.cpp + imgui_impl_glfw.cpp Compiler: GNU + Clang + MSVC Operating System: Win 11 On line 649 of imgui_impl_vulkan.cpp in function ImGui_ImplVulkan_CreateFontsTexture, the current code is: vkCreateCommandPool(v->Device, &info, nullptr, &bd->FontCommandPool); This causes the Vk validation error: Validation Error: [ VUID-vkDestroyCommandPool-commandPool-00043 ] Object 0: handle = 0x2b424a0000000034, type = VK_OBJECT_TYPE_COMMAND_POOL; | MessageID = 0x909b0bb | Custom allocator specified while destroying VkCommandPool obj 0x2b424a0000000034 but not specified at creation. The Vulkan spec states: If no VkAllocationCallbacks were provided when commandPool was created, pAllocator must be NULL (https://vulkan.lunarg.com/doc/view/1.3.239.0/windows/1.3-extensions/vkspec.html#VUID-vkDestroyCommandPool-commandPool-00043) Correct code should be: vkCreateCommandPool(v->Device, &info, v->Allocator, &bd->FontCommandPool);
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ocornut/imgui#7075
No description provided.