mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-10 19:03:30 +00:00
Vk Validation Error: vkCreateCommandPool() in ImGui_ImplVulkan_CreateFontsTexture() missing allocator #7075
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#7075
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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);