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

Hang on swapchain destruction #20

Open
acgaudette opened this issue Oct 18, 2018 · 1 comment
Open

Hang on swapchain destruction #20

acgaudette opened this issue Oct 18, 2018 · 1 comment

Comments

@acgaudette
Copy link
Contributor

Likely related to #19?

I have noticed for awhile that occasionally my app hangs in debug mode at exit (and never closes). I did some digging. This also occurs in the hello.rs example for me as well, i.e. after "Goodbye!" the application never closes.

I was unable to check with the address sanitizer since it only dumps output after program completion. However, I did trace the method calls. The hang occurs in the Drop implementation for the Swapchain KHR, which then calls device.destroy_swapchain_khr(), which hangs on vkDestroySwapchainKHR() (I have confirmed it is this method). At that point, we're in vks, and I hit a dead end.

I confirmed that the swapchain and device handles were legitimate--they match the values at create time. On my end, there is a single refresh of the swapchain, so two swapchains are created. The first is dropped successfully, and the second one hangs. Because of this, the device, instance, etc. are never dropped.

For reference, I'm on linux with an intel UHD graphics 620.

@c0gent
Copy link
Member

c0gent commented Oct 18, 2018

I've been neglecting this repo a bit lately (lots on the plate). I'll take a look at this asap.

Thanks for the detailed report!

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

2 participants