vkCreateSwapchainKHR hangs

I’m working on an X11 compositor that uses Vulkan and trying to handle the root window’s dimensions change. The problem is that vkCreateSwapchainKHR mysteriously hangs when recreating the swapchain. No errors, no validation errors, no errors in dmesg, nothing. It just mysteriously hangs and I don’t know how to debug this issue. I don’t even know where to ask about this issue. Any ideas?