-
-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vkSetDebugUtilsObjectNameEXT crashes with VkInstance and VkPhysicalDevice #755
Comments
Thank you @tlf30! |
Thank you for the fix @Spasi, I will test as soon as a snapshot is available. |
@Spasi I just tested with the 3.3.2 snapshot. Setting a name on a |
@Spasi I have dove into this further. Currently the JVM just crashes with try (MemoryStack stack = MemoryStack.stackPush()) {
vkSetDebugUtilsObjectNameEXT(
device.getDevice(),
VkDebugUtilsObjectNameInfoEXT.calloc(stack)
.sType$Default()
.objectType(VK_OBJECT_TYPE_INSTANCE)
.pObjectName(stack.ASCII(name))
.objectHandle(instance.getNativeHandle())
);
} I put together a C++ test, and it worked as expects. This also eliminates a driver issue as I tested on the same machine. //Test setting instance debug name
VkDebugUtilsObjectNameInfoEXT info;
info.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT;
info.objectType = VK_OBJECT_TYPE_INSTANCE;
info.objectHandle = (uint64_t) *(instance->getVkInstance());
info.pObjectName = "OVK Instance";
info.pNext = NULL;
PFN_vkSetDebugUtilsObjectNameEXT vkSetDebugUtilsObjectNameEXT = (PFN_vkSetDebugUtilsObjectNameEXT)vkGetInstanceProcAddr(*(instance->getVkInstance()), "vkSetDebugUtilsObjectNameEXT");
orVkOK(vkSetDebugUtilsObjectNameEXT(device, &info)); I do not see what is going wrong on the LWJGL side. Setting the name works on everything else (I think I have tested all vulkan object types now). EDIT: I got a hs_err_pid finally. Seems hit or miss as to if it makes one (see attached)
EDIT 2: |
Version
3.3.1
Platform
Windows x64
JDK
Adoptium 17
Module
Vulkan
Bug description
vkSetDebugUtilsObjectNameEXT
crashes when naming aVkInstance
orVkPhysicalDevice
. This appears to be cause by using the function pointer forvkSetDebugUtilsObjectNameEXT
from theVkDevice
instead of theVkInstance
.More info can be found here:
https://forums.developer.nvidia.com/t/vksetdebugutilsobjectnameext-causes-a-crash-when-attempting-to-set-a-name-for-vkphysicaldevice/79517/6
EDIT: Also take note: KhronosGroup/Vulkan-Loader#116
Stacktrace or crash log output
https://gist.github.com/tlf30/ff2ed51abf4894add8960a11f4ee5057
Please let me know if you need anything else.
Thank you,
~Trevor
The text was updated successfully, but these errors were encountered: