Skip to content

Vulkan-validation swapchain error #907

Description

@RobDangerous

Zeta and Fushi get a validation error:

Vulkan ERROR: Code 1402107823 : vkQueueSubmit(): pSubmits[0].pSignalSemaphores[0] (VkSemaphore 0x80000000008) is being signaled by VkQueue 0x55aad0edb8d0, but it may still be in use by VkSwapchainKHR 0xa000000000a.
Here are the most recently acquired image indices: [0].
(brackets mark the last use of VkSemaphore 0x80000000008 in a presentation operation)
Swapchain image 0 was presented but was not re-acquired, so VkSemaphore 0x80000000008 may still be in use.
Vulkan insight: One solution is to assign each image its own semaphore. Here are some common methods to ensure that a semaphore passed to vkQueuePresentKHR is not in use and can be safely reused:
a) Use a separate semaphore per swapchain image. Index these semaphores using the index of the acquired image.
b) Consider the VK_EXT_swapchain_maintenance1 extension. It allows using a VkFence with the presentation operation.
The Vulkan spec states: Each binary semaphore element of the pSignalSemaphores member of any element of pSubmits must be unsignaled when the semaphore signal operation it defines is executed on the device (https://docs.vulkan.org/spec/latest/chapters/cmdbuffers.html#VUID-vkQueueSubmit-pSignalSemaphores-00067)

OGRECave/ogre-next@71ce54a might help with a fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions