Skip to content
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

'caught exception: basic_string::_M_construct null not valid' if use vk.xml from https://github.com/KhronosGroup/Vulkan-Docs/blob/1.0/src/spec/vk.xml #25

Closed
sl1pkn07 opened this issue Aug 28, 2016 · 4 comments

Comments

@sl1pkn07
Copy link

sl1pkn07 commented Aug 28, 2016

when launch:

VulkanHppGenerator foo/Vulkan-Docs/src/spec/vk.xml

and the vk.xm file is latest version of https://github.com/KhronosGroup/Vulkan-Docs/blob/1.0/src/spec/vk.xml (https://raw.githubusercontent.com/KhronosGroup/Vulkan-Docs/85184f305afe0f2e9e99cc9525e8ce25c32e74e0/src/spec/vk.xml)

gets

caught exception: basic_string::_M_construct null not valid
┌─┤[$]|[sl1pkn07]|[sL1pKn07]|[/tmp/makepkg/vulkan-git/src/build-vulkan-hpp]|
└───╼  ./VulkanHppGenerator /tmp/makepkg/vulkan-git/src/Vulkan-Docs/src/spec/vk.xml 
Loading vk.xml from /tmp/makepkg/vulkan-git/src/Vulkan-Docs/src/spec/vk.xml
Writing vulkan.hpp to /tmp/makepkg/vulkan-git/src/Vulkan-Hpp/vulkan/vulkan.hpp
caught exception: basic_string::_M_construct null not valid
┌─┤[$]|[sl1pkn07]|[sL1pKn07]|[/tmp/makepkg/vulkan-git/src/build-vulkan-hpp]|
└───╼  echo $?
255
mtavenrath added a commit to mtavenrath/Vulkan-Hpp that referenced this issue Aug 29, 2016
@mtavenrath
Copy link
Contributor

The enums VkExternalMemoryHandleTypeFlagBitsNV and VkExternalMemoryFeatureFlagBitsNV are missing the type attribute. I've replaced the debug asserts which checks for the correct form of an enums tag by std::runtime_errors to give better errors in the future.

Closing as this is not a bug of the generator, but of the spec.

mtavenrath added a commit to mtavenrath/Vulkan-Hpp that referenced this issue Aug 29, 2016
asuessenbach pushed a commit that referenced this issue Aug 29, 2016
@mtavenrath
Copy link
Contributor

mtavenrath commented Aug 29, 2016

Until the issue is fixed in the spec add type="bitmask" to

<enums name="VkExternalMemoryHandleTypeFlagBitsNV">(line 3060) and
<enums name="VkExternalMemoryFeatureFlagBitsNV"> (line 3066)

@oddhack
Copy link

oddhack commented Aug 29, 2016

I've filed an internal MR to tweak the canonical vk.xml. Once NVIDIA signs off on it, that will go into the weekly spec updates.

@sl1pkn07
Copy link
Author

thanks @mtavenrath !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants