OS: Ubuntu 22.04.5 LTS
GPU: GeForce GTX 770
Driver: 470.256.02
With my setup on Vulkan, the creation of a fullscreen swap chain with vkCreateSwapchainKHR
often fails with code VK_ERROR_INITIALIZATION_FAILED
.
When the swap chain creation fails, the destruction of ad-hoc created surface with vkDestroySurfaceKHR
causes a segmentation fault.
This makes the failure in the swap chain creation fatal for the running process.
Experienced this issue with PCSX2 and DuckStation emulators.
Filed a bug on PCSX2 with additional details: [BUG]: Frequent crashes when entering fullscreen on Ubuntu with Vulkan · Issue #12099 · PCSX2/pcsx2 · GitHub
On PCSX2, commenting out the destruction of the surface after swap chain creation failure avoids the segmentation fault, but most likely causes the leak of the surface.
PCSX2 testing team pointed out that it may be driver related and was fixed in newer driver versions, and that the Dolphin emulator encountered this issue as well.
The issue happened on a quite old GTX 770, which other than this, can handle Vulkan workloads such as those produced by PCSX2 emulator pretty well.
Can this be confirmed a driver issue?
If so and this was already fixed in newer driver versions, any plan of backporting the fix?
Thank you!