vkQuake2 icon indicating copy to clipboard operation
vkQuake2 copied to clipboard

Alt+tab sporadic crash

Open dorian-apanel-intel opened this issue 9 months ago • 3 comments

Launching the game in fullscreen mode (exclusive fullscreen might be off) and pressing Alt+tab repeatedly causes sporadic game crash.

Vulkan validation layers print following error just before it:

Objects: 1
        [0] 0x1da867e0030, type: 1, name: NULL
VUID-VkSwapchainCreateInfoKHR-imageExtent-01689(ERROR / SPEC): msgNum: 320081257 - Validation Error: [ VUID-VkSwapchainCreateInfoKHR-imageExtent-01689 ] | MessageID = 0x13140d69 | vkCreateSwapchainKHR(): pCreateInfo->imageExtent = (0, 0) which is illegal. The Vulkan spec states: imageExtent members width and height must both be non-zero (https://vulkan.lunarg.com/doc/view/1.3.261.1/windows/1.3-extensions/vkspec.html#VUID-VkSwapchainCreateInfoKHR-imageExtent-01689)
    Objects: 0
UNASSIGNED-GeneralParameterError-RequiredParameter(ERROR / SPEC): msgNum: -1711571459 - Validation Error: [ UNASSIGNED-GeneralParameterError-RequiredParameter ] | MessageID = 0x99fb7dfd | vkCreateImageView: required parameter pCreateInfo->image specified as VK_NULL_HANDLE
    Objects: 0
VUID-VkImageViewCreateInfo-image-parameter(ERROR / SPEC): msgNum: 315335852 - Validation Error: [ VUID-VkImageViewCreateInfo-image-parameter ] Object 0: handle = 0x1da867e0030, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0x12cba4ac | VkImageViewCreateInfo(): Invalid VkImage Object 0x0. The Vulkan spec states: image must be a valid VkImage handle (https://vulkan.lunarg.com/doc/view/1.3.261.1/windows/1.3-extensions/vkspec.html#VUID-VkImageViewCreateInfo-image-parameter)
    Objects: 1
        [0] 0x1da867e0030, type: 1, name: NULL

Looks like Alt+tabbing causes windows to minimize, which reduces window size to 0x0. Game tries to recreate swapchain with that size.

Reproduced on NVidia 1060 and Inel Arc 770 (after 5-10 alt+tabs).

dorian-apanel-intel avatar Sep 19 '23 07:09 dorian-apanel-intel