Following the docs tutorial, I found the app was segfaulting on close even after waiting for the device to idle. I thought this might be because of some subtle difference between what i’d written and the tutorial code, so I tried compiling exactly the attached C++ code (from the section on recreating the swapchain) and it also has the issue. After running in gdb I found the segfault occurred in the swapchain’s destructor.
If this is an actual issues with the tutorial code, we’ll fix it.