Skip to content

Destroying resources before the associated command buffer is finished causes vulkan validation errors #7854

@andyleiserson

Description

@andyleiserson

Got this failure:

    [2025-06-26T23:56:59Z ERROR wgpu_test::expectations] Validation Error: vkEndCommandBuffer(): was called in VkCommandBuffer 0x7f9731d77530 which is invalid because the bound VkImage 0x160000000016 was destroyed.
        The Vulkan spec states: commandBuffer must be in the recording state (https://vulkan.lunarg.com/doc/view/1.4.313.0/linux/antora/spec/latest/chapters/cmdbuffers.html#VUID-vkEndCommandBuffer-commandBuffer-00059)

with the test in #7853.

The test is doing something that is invalid, but our error handling needs to conform to the spec.

Metadata

Metadata

Assignees

Labels

area: validationIssues related to validation, diagnostics, and error handlingbackend: vulkanIssues with Vulkanplatform: linuxLinux Specific Issuestype: bugSomething isn't working

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions