#When trying to create FrameBuffers using vulkan_raii.hpp access violation is thrown

2 messages · Page 1 of 1 (latest)

nimble cobalt
#

The access violation is thrown by the validation layers in debug mode. I'm guessing it is because I did something wrong and a debug message is supposed to appear. But the system breaks when trying to do so. It specifically says "the variable image_state was nullptr"

I honestly have been stumbling through this as best as I can but I am completely lost right now. The problem happens in this exact line of the code (you can navigate to anywhere in the project from this commit too if you have to):
https://github.com/CuvelEngine/CuvelEngine/blob/7aecd2799d78e174dd3fe46aac25da8e1661f8bb/CuvelEngine/CuvelEngine/src/graphics/Vulkan/VulkanFramework.cpp#L461

I saw somewhere it may have something to do with a bug related to VK_VALIDATION_FEATURE_ENABLE_BEST_PRACTICES_EXT but I have no idea
https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/1312

analog geode
#

Have you called vkGetSwapchainImagesKHR to actually get the images? That sounds identical to the error I get if I don't do that.