Closed Jacajack closed 2 years ago
This definitely seems to be a problem with my system. Everything is working fine on the latest Manjaro LiveUSB on the same computer. I'll post an update if I ever find out what's causing this.
This issue has been solved by the recent 2022-05-23 Manjaro stable update. Perhaps the new mesa version?
Hi and thanks for the great tutorial!
Some time ago, I noticed that a Vulkan app I created based on this tutorial has stopped working on my laptop after some system upgrade. Back then I didn't give it much thought. I remembered about this problem today and while debugging, I decided to run the tutorial code itself. As it turns out, it suffers from the same problem.
I compiled and ran
15_hello_triangle.cpp
. This is the output:So far, I've managed to track the problem down to
querySwapChainSupport()
. It seems thatvkGetPhysicalDeviceSurfaceCapabilitiesKHR()
returnsVK_ERROR_SURFACE_LOST_KHR
and does not properly initialize theVkSurfaceCapabilitiesKHR
struct. This causes invalid parameters to be passed to all the functions later on and eventually leads to the crash.Given that this problem has started happening out of nowhere, it's likely that the problem isn't in the tutorial code. On the other hand, other Vulkan applications (like
vkcube
) still work on my system. I'm just not sure what could cause a surface loss. GLFW? Something in the window manager? My experience with Vulkan is very limited, so any guidance would be highly appreciated.Thanks!
System info
vulkaninfo: https://gist.github.com/Jacajack/ddea3cb1a561b0df8dcb3459288c08b7
inxi -SCG
: