Bad handling of VK_ERROR_OUT_OF_DATE_KHR returned from vkAcquireNextImageKHR
@SaschaWillems is already working on this.
Since May 14, 2026.
Assessment
This issue has not been assessed yet.
Description
Currently (permalink), if vkAcquireNextImageKHR returns VK_ERROR_OUT_OF_DATE_KHR, the tutorial code reacts by setting updateSwapchain = true (so that the swapchain is recreated at a later time) and proceeds as usual.
That would be appropriate for VK_SUBOPTIMAL_KHR, but it's not appropriate for VK_ERROR_OUT_OF_DATE_KHR.
VK_ERROR_OUT_OF_DATE_KHR is a failure. The spec says:
If VK_ERROR_OUT_OF_DATE_KHR is returned, no image is acquired
and also
If vkAcquireNextImageKHR does not successfully acquire an image, semaphore and fence are unaffected.
So if vkAcquireNextImageKHR returns VK_ERROR_OUT_OF_DATE_KHR, the main loop is going to break down in some weird way. Presumably it will deadlock, because the presentSemaphores[frameIndex] is never going to be signalled, so the vkQueueSubmit will wait forever on it.
- Dominant language
- C++
- Stars
- 681
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SaschaWillems/HowToVulkan
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 85/100
SaschaWillems/HowToVulkan#40 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
SaschaWillems/HowToVulkan#44 · 2 reactions ·
-
Difficulty 4/5 1-2 days Newbie friendliness 35/100
SaschaWillems/HowToVulkan#43 · 1 comment ·
-
VMA_ALLOCATION_CREATE_HOST_ACCESS_ALLOW_TRANSFER_INSTEAD_BIT usageMay be free again @SaschaWillems claimed this 300 days ago, and no pull request is open. Open
SaschaWillems/HowToVulkan#14 · 3 comments · 3 reactions · 1 assignee ·
All issues in SaschaWillems/HowToVulkan
Similar issues
-
Linux npm packaging leaves workspace files that block subsequent CI checkoutPossibly taken @Spockkk0225 claimed this today. Openci
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
alibaba/neug#1195 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 3 days
-
QA/No release-notes/exclude tests tests/missing-coverage tests/test-quality
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
brave/brave-browser#61019 ·
Maintainers usually reply within 1 day
-
? - Needs Triage bug CUTLASS C++
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 4 days