charles-lunarg / vk-bootstrap

Vulkan Bootstrapping Iibrary
MIT License
818 stars 82 forks source link

`PhysicalDeviceSelector::select` crashes #289

Closed n0F4x closed 5 months ago

n0F4x commented 5 months ago

I get a SIGTRAP right here in the second iteration (for the second device). The SIGTRAP happens inside the vector's push_back when folding its call stack. But I'd guess the error is rather with the PhysicalDevice's (move/copy) constructor.

Environment: Clang (LLVM) 17.0.6

I couldn't test my project with other compilers as they all have some missing features. The first commit that doesn't work is here.

charles-lunarg commented 5 months ago

Can you post your code? Hard to know what’s wrong without seeing how your code works.

n0F4x commented 5 months ago

This is where I call PhysicalDevice::select in my code

n0F4x commented 5 months ago

I am also suspicious of PhysicalDevice::extended_features_chain when it gets moved/copied. The pNext pointers should still point to the right next feature.

n0F4x commented 5 months ago

I had a very weird setup where I was using an outdated VkBootstrap header. Dropping that header and only using the new one runs fine.

So the problem was on my end.