VulkanTutorial icon indicating copy to clipboard operation
VulkanTutorial copied to clipboard

SIGSEGV after completing example 06.

Open Strelok2013 opened this issue 1 year ago • 0 comments

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

Strelok2013 avatar Feb 02 '24 00:02 Strelok2013