Hello!
I am currently facing a very weird issue, where after resizing my window (and of course properly handling in with recreating the swapchain and such, I had fixed all the validation errors stemming from that) a completely unrelated command buffer submission is never completed.
Thread 0, Frame 151:
vkBeginCommandBuffer(commandBuffer, pBeginInfo) returns VkResult VK_SUCCESS (0):
commandBuffer: VkCommandBuffer = 0x55d4ece282f0
pBeginInfo: const VkCommandBufferBeginInfo* = 0x7ffe1eb04208:
sType: VkStructureType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO (42)
pNext: const void* = NULL
flags: VkCommandBufferUsageFlags = 0
pInheritanceInfo: const VkCommandBufferInheritanceInfo* = UNUSED
Thread 0, Frame 151:
vkCmdCopyBuffer(commandBuffer, srcBuffer, dstBuffer, regionCount, pRegions) returns void:
commandBuffer: VkCommandBuffer = 0x55d4ece282f0
srcBuffer: VkBuffer = 0x55d4ece36780
dstBuffer: VkBuffer = 0x55d4ece35370
regionCount: uint32_t = 1
pRegions: const VkBufferCopy* = 0x7ffe1eb040d0
pRegions[0]: const VkBufferCopy = 0x7ffe1eb040d0:
srcOffset: VkDeviceSize = 0
dstOffset: VkDeviceSize = 0
size: VkDeviceSize = 1
Thread 0, Frame 151:
vkEndCommandBuffer(commandBuffer) returns VkResult VK_SUCCESS (0):
commandBuffer: VkCommandBuffer = 0x55d4ece282f0
Thread 0, Frame 151:
vkQueueSubmit(queue, submitCount, pSubmits, fence) returns VkResult VK_SUCCESS (0):
queue: VkQueue = 0x55d4ec4b5af0
submitCount: uint32_t = 1
pSubmits: const VkSubmitInfo* = 0x55d4ed4f0b08
pSubmits[0]: const VkSubmitInfo = 0x55d4ed4f0b08:
sType: VkStructureType = VK_STRUCTURE_TYPE_SUBMIT_INFO (4)
pNext: const void* = NULL
waitSemaphoreCount: uint32_t = 0
pWaitSemaphores: const VkSemaphore* = NULL
pWaitDstStageMask: const VkPipelineStageFlags* = 0x55d4ed4dcea0
commandBufferCount: uint32_t = 1
pCommandBuffers: const VkCommandBuffer* = 0x55d4ed4e1210
pCommandBuffers[0]: const VkCommandBuffer = 0x55d4ece282f0
signalSemaphoreCount: uint32_t = 0
pSignalSemaphores: const VkSemaphore* = NULL
fence: VkFence = 0x55d4ece2cbb0
This is the relevant snippet of the API dump, where I perform a simple copy operation that ends up never completing. A thing worth noting is also that the same exact queue is used right before for the vkQueuePresentKHR
that fails like so:
vkQueuePresentKHR(queue, pPresentInfo) returns VkResult VK_ERROR_OUT_OF_DATE_KHR (-1000001004):
queue: VkQueue = 0x55d4ec4b5af0
If needed I would also be willing to share the full 7mb dump but it’s too long to just paste here and sadly I cannot include links. If someone would also just point me or give me a hint for where to start looking for the problem that would be great too because I am completely lost.
Thanks in advance!