Overv / VulkanTutorial

Tutorial for the Vulkan graphics and compute API
https://vulkan-tutorial.com
Creative Commons Attribution Share Alike 4.0 International
3.06k stars 511 forks source link

SIGSEGV after completing example 06. #375

Open Strelok2013 opened 5 months ago

Strelok2013 commented 5 months ago

Hello I am following along with the tutorial but altering it slightly. I'm not throwing everything into one .cpp file but separating things into a .h and .cpp file.

I get a SIGSEGV error right at the end of the swapchain creation chapter.

vkGetSwapchainImagesKHR(device, swapChain, &imageCount, nullptr); swapChainImages.resize(imageCount); vkGetSwapchainImagesKHR(device, swapChain, &imageCount, swapChainImages.data()); is around where the error occurs. I've narrowed it down to the last call in the provided code vkGetSwapchainImagesKHR(device, swapChain, &imageCount, swapChainImages.data());

I'm still trying a couple things using external debugging tools but I haven't had any luck so far.

I also have this code in a repo if you want to see the whole thing: https://github.com/Strelok2013/SC3D