#Validation error message from tutorial code

1 messages · Page 1 of 1 (latest)

twilit glen
#

I'm setting up swapchain recreation and keep running into this validation layer message:

The Vulkan spec states: commandBuffer must not be in the recording or pending state (https://docs.vulkan.org/spec/latest/chapters/cmdbuffers.html#VUID-vkBeginCommandBuffer-commandBuffer-00049)
Validation layer: vkBeginCommandBuffer(): on active VkCommandBuffer 0x141c33e1920 before it has completed. You must check command buffer fence before this call.
The Vulkan spec states: commandBuffer must not be in the recording or pending state (https://docs.vulkan.org/spec/latest/chapters/cmdbuffers.html#VUID-vkBeginCommandBuffer-commandBuffer-00049)
Validation layer: vkBeginCommandBuffer(): on active VkCommandBuffer 0x141c33bc860 before it has completed. You must check command buffer fence before this call.
The Vulkan spec states: commandBuffer must not be in the recording or pending state (https://docs.vulkan.org/spec/latest/chapters/cmdbuffers.html#VUID-vkBeginCommandBuffer-commandBuffer-00049)```
But I do wait for fences before the call (I'm pretty sure). Does anyone know where I went wrong
brittle fractal
#

That validation error usually means one of these is happening:
You’re resetting/re-recording a command buffer that the GPU is still using.
You waited on the wrong fence.
The fence was never associated with the submission that used that command buffer.
Swapchain recreation destroyed/reused resources while frames were still in flight.