Skip to content

Resizing the window gives an error #282

@pwisbey

Description

@pwisbey

I was running the 38_ray_tracing from the attachments/build/38_ray_tracing directory. After trying to maximize the window the app exits. This was on Ubuntu 22.04.

The error was "vk::raii::Queue::presentKHR: ErrorOutOfDateKHR". There were various validation warnings, full output copied below:

validation layer: type { Validation } msg: vkCreateGraphicsPipelines(): pCreateInfos[0].pStages[1] SPIR-V (VK_SHADER_STAGE_FRAGMENT_BIT) has a push constant buffer Block with range [0, 8] which outside the VkPushConstantRange of [0, 4].
The Vulkan spec states: If a push constant block is declared in a shader, the block must be contained inside the push constant range in layout that matches the stage (https://vulkan.lunarg.com/doc/view/1.4.335.0/linux/antora/spec/latest/chapters/pipelines.html#VUID-VkGraphicsPipelineCreateInfo-layout-10069)
validation layer: type { Validation } msg: vkCmdDrawIndexed(): the descriptor [VkDescriptorSet 0x5e000000005e, Set 0, Binding 4, Index 0, variable "instanceLUTBuffer"] is being used in draw but has never been updated via vkUpdateDescriptorSets() or a similar call.
The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT (https://vulkan.lunarg.com/doc/view/1.4.335.0/linux/antora/spec/latest/chapters/drawing.html#VUID-vkCmdDrawIndexed-None-08114)
validation layer: type { Validation } msg: vkCmdDrawIndexed(): the descriptor [VkDescriptorSet 0x5f000000005f, Set 0, Binding 4, Index 0, variable "instanceLUTBuffer"] is being used in draw but has never been updated via vkUpdateDescriptorSets() or a similar call.
The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT (https://vulkan.lunarg.com/doc/view/1.4.335.0/linux/antora/spec/latest/chapters/drawing.html#VUID-vkCmdDrawIndexed-None-08114)
validation layer: type { Validation } msg: vkCmdDrawIndexed(): the descriptor [VkDescriptorSet 0x5e000000005e, Set 0, Binding 4, Index 0, variable "instanceLUTBuffer"] is being used in draw but has never been updated via vkUpdateDescriptorSets() or a similar call.
The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT (https://vulkan.lunarg.com/doc/view/1.4.335.0/linux/antora/spec/latest/chapters/drawing.html#VUID-vkCmdDrawIndexed-None-08114)
validation layer: type { Validation } msg: vkCmdDrawIndexed(): the descriptor [VkDescriptorSet 0x5f000000005f, Set 0, Binding 4, Index 0, variable "instanceLUTBuffer"] is being used in draw but has never been updated via vkUpdateDescriptorSets() or a similar call.
The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT (https://vulkan.lunarg.com/doc/view/1.4.335.0/linux/antora/spec/latest/chapters/drawing.html#VUID-vkCmdDrawIndexed-None-08114)
validation layer: type { Validation } msg: vkCmdDrawIndexed(): the descriptor [VkDescriptorSet 0x5e000000005e, Set 0, Binding 4, Index 0, variable "instanceLUTBuffer"] is being used in draw but has never been updated via vkUpdateDescriptorSets() or a similar call.
The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT (https://vulkan.lunarg.com/doc/view/1.4.335.0/linux/antora/spec/latest/chapters/drawing.html#VUID-vkCmdDrawIndexed-None-08114)
validation layer: type { Validation } msg: vkCmdDrawIndexed(): the descriptor [VkDescriptorSet 0x5f000000005f, Set 0, Binding 4, Index 0, variable "instanceLUTBuffer"] is being used in draw but has never been updated via vkUpdateDescriptorSets() or a similar call.
The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT (https://vulkan.lunarg.com/doc/view/1.4.335.0/linux/antora/spec/latest/chapters/drawing.html#VUID-vkCmdDrawIndexed-None-08114)
validation layer: type { Validation } msg: vkCmdDrawIndexed(): the descriptor [VkDescriptorSet 0x5e000000005e, Set 0, Binding 4, Index 0, variable "instanceLUTBuffer"] is being used in draw but has never been updated via vkUpdateDescriptorSets() or a similar call.
The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT (https://vulkan.lunarg.com/doc/view/1.4.335.0/linux/antora/spec/latest/chapters/drawing.html#VUID-vkCmdDrawIndexed-None-08114)
validation layer: type { Validation } msg: vkCmdDrawIndexed(): the descriptor [VkDescriptorSet 0x5f000000005f, Set 0, Binding 4, Index 0, variable "instanceLUTBuffer"] is being used in draw but has never been updated via vkUpdateDescriptorSets() or a similar call.
The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT (https://vulkan.lunarg.com/doc/view/1.4.335.0/linux/antora/spec/latest/chapters/drawing.html#VUID-vkCmdDrawIndexed-None-08114)
validation layer: type { Validation } msg: vkCmdDrawIndexed(): the descriptor [VkDescriptorSet 0x5e000000005e, Set 0, Binding 4, Index 0, variable "instanceLUTBuffer"] is being used in draw but has never been updated via vkUpdateDescriptorSets() or a similar call.
The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT (https://vulkan.lunarg.com/doc/view/1.4.335.0/linux/antora/spec/latest/chapters/drawing.html#VUID-vkCmdDrawIndexed-None-08114)
validation layer: type { Validation } msg: (Warning - This VUID has now been reported 10 times, which is the duplicate_message_limit value, this will be the last time reporting it).
vkCmdDrawIndexed(): the descriptor [VkDescriptorSet 0x5f000000005f, Set 0, Binding 4, Index 0, variable "instanceLUTBuffer"] is being used in draw but has never been updated via vkUpdateDescriptorSets() or a similar call.
The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT (https://vulkan.lunarg.com/doc/view/1.4.335.0/linux/antora/spec/latest/chapters/drawing.html#VUID-vkCmdDrawIndexed-None-08114)
validation layer: type { Validation } msg: vkDestroyFence(): can't be called on VkFence 0x650000000065 that is currently in use by VkQueue 0x64a28ee9c310.
The Vulkan spec states: All queue submission commands that refer to fence must have completed execution (https://vulkan.lunarg.com/doc/view/1.4.335.0/linux/antora/spec/latest/chapters/synchronization.html#VUID-vkDestroyFence-fence-01120)
validation layer: type { Validation } msg: vkDestroySemaphore(): can't be called on VkSemaphore 0x610000000061 that is currently in use by VkQueue 0x64a28ee9c310.
The Vulkan spec states: All submitted batches that refer to semaphore must have completed execution (https://vulkan.lunarg.com/doc/view/1.4.335.0/linux/antora/spec/latest/chapters/synchronization.html#VUID-vkDestroySemaphore-semaphore-05149)
validation layer: type { Validation } msg: vkDestroySemaphore(): can't be called on VkSemaphore 0x640000000064 that is currently in use by VkQueue 0x64a28ee9c310.
The Vulkan spec states: All submitted batches that refer to semaphore must have completed execution (https://vulkan.lunarg.com/doc/view/1.4.335.0/linux/antora/spec/latest/chapters/synchronization.html#VUID-vkDestroySemaphore-semaphore-05149)
validation layer: type { Validation } msg: vkFreeCommandBuffers(): pCommandBuffers[0] (VkCommandBuffer 0x64a29365e760) is in use.
The Vulkan spec states: All elements of pCommandBuffers must not be in the pending state (https://vulkan.lunarg.com/doc/view/1.4.335.0/linux/antora/spec/latest/chapters/cmdbuffers.html#VUID-vkFreeCommandBuffers-pCommandBuffers-00047)
vk::raii::Queue::presentKHR: ErrorOutOfDateKHR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions