googlesamples/android-vulkan-tutorials

Segmentation fault when Tutorial 05 is closed

arilow opened this issue · 1 comments

Hi!!

I found that when the app of the tutorial 5 is closed, I get a segmentation fault.

I think that this line is causing it. Because it is cleaning the memory allocate by the vkImages that will also be cleaned when destroying the swapchain.

If you take a look at the Vulkan toturial, you will see this:
Screen Shot 2021-10-25 at 15 02 20

"The images were created by the implementation for the swap chain and they will be automatically cleaned up once the swap chain has been destroyed, therefore we don't need to add any cleanup code."
ggfan commented

thank you for filing the issue: this should be fixed now.