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

SIGSEGV after completing example 06. #375

Open
Strelok2013 opened this issue Feb 2, 2024 · 0 comments
Open

SIGSEGV after completing example 06. #375

Strelok2013 opened this issue Feb 2, 2024 · 0 comments

Comments

@Strelok2013
Copy link

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

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

1 participant