Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boids Fails Validation on MoltenVK #2774

Closed
jinleili opened this issue Jun 15, 2022 · 1 comment
Closed

Boids Fails Validation on MoltenVK #2774

jinleili opened this issue Jun 15, 2022 · 1 comment
Labels
api: vulkan Issues with Vulkan area: correctness We're behaving incorrectly type: bug Something isn't working

Comments

@jinleili
Copy link
Contributor

Repro steps
Running the test suite:

WGPU_BACKEND=vk cargo nextest run --features vulkan-portability -- --example boids  --no-fail-fast

Output failure message:

--- STDERR:                            wgpu::example/boids boids ---
[2022-06-15T02:20:02Z ERROR wgpu_hal::vulkan::instance] VALIDATION [VUID-vkResetCommandPool-commandPool-00040 (0xb53e2331)]
    Validation Error: [ VUID-vkResetCommandPool-commandPool-00040 ] Object 0: handle = 0x600001744eb8, name = (wgpu internal) Transit, type = VK_OBJECT_TYPE_COMMAND_BUFFER; | MessageID = 0xb53e2331 | Attempt to reset command pool with VkCommandBuffer 0x600001744eb8[(wgpu internal) Transit] which is in use. The Vulkan spec states: All VkCommandBuffer objects allocated from commandPool must not be in the pending state (https://vulkan.lunarg.com/doc/view/1.3.204.1/mac/1.3-extensions/vkspec.html#VUID-vkResetCommandPool-commandPool-00040)
[2022-06-15T02:20:02Z ERROR wgpu_hal::vulkan::instance] objects: (type: COMMAND_BUFFER, hndl: 0x600001744eb8, name: (wgpu internal) Transit)
[2022-06-15T02:20:02Z ERROR wgpu_hal::vulkan::instance] VALIDATION [VUID-vkResetCommandPool-commandPool-00040 (0xb53e2331)]
    Validation Error: [ VUID-vkResetCommandPool-commandPool-00040 ] Object 0: handle = 0x600001744f88, type = VK_OBJECT_TYPE_COMMAND_BUFFER; | MessageID = 0xb53e2331 | Attempt to reset command pool with VkCommandBuffer 0x600001744f88[] which is in use. The Vulkan spec states: All VkCommandBuffer objects allocated from commandPool must not be in the pending state (https://vulkan.lunarg.com/doc/view/1.3.204.1/mac/1.3-extensions/vkspec.html#VUID-vkResetCommandPool-commandPool-00040)
[2022-06-15T02:20:02Z ERROR wgpu_hal::vulkan::instance] objects: (type: COMMAND_BUFFER, hndl: 0x600001744f88, name: ?)
[2022-06-15T02:20:02Z ERROR wgpu_hal::vulkan::instance] VALIDATION [VUID-vkDestroyBuffer-buffer-00922 (0xe4549c11)]
    Validation Error: [ VUID-vkDestroyBuffer-buffer-00922 ] Object 0: handle = 0x967dd1000000000e, name = (wgpu internal) initializing unmappable buffer, type = VK_OBJECT_TYPE_BUFFER; | MessageID = 0xe4549c11 | Cannot free VkBuffer 0x967dd1000000000e[(wgpu internal) initializing unmappable buffer] that is in use by a command buffer. The Vulkan spec states: All submitted commands that refer to buffer, either directly or via a VkBufferView, must have completed execution (https://vulkan.lunarg.com/doc/view/1.3.204.1/mac/1.3-extensions/vkspec.html#VUID-vkDestroyBuffer-buffer-00922)
[2022-06-15T02:20:02Z ERROR wgpu_hal::vulkan::instance] objects: (type: BUFFER, hndl: 0x967dd1000000000e, name: (wgpu internal) initializing unmappable buffer)
[2022-06-15T02:20:02Z ERROR wgpu_hal::vulkan::instance] VALIDATION [VUID-vkDestroyBuffer-buffer-00922 (0xe4549c11)]
    Validation Error: [ VUID-vkDestroyBuffer-buffer-00922 ] Object 0: handle = 0x95a125000000001a, name = (wgpu internal) initializing unmappable buffer, type = VK_OBJECT_TYPE_BUFFER; | MessageID = 0xe4549c11 | Cannot free VkBuffer 0x95a125000000001a[(wgpu internal) initializing unmappable buffer] that is in use by a command buffer. The Vulkan spec states: All submitted commands that refer to buffer, either directly or via a VkBufferView, must have completed execution (https://vulkan.lunarg.com/doc/view/1.3.204.1/mac/1.3-extensions/vkspec.html#VUID-vkDestroyBuffer-buffer-00922)

Platform
M1 Mac, Vulkan SDK (1.3.204.1)

@cwfitzgerald cwfitzgerald changed the title Testing boids example on vk backend failed Boids Fails Validation on MoltenVK Jun 15, 2022
@cwfitzgerald cwfitzgerald added type: bug Something isn't working api: vulkan Issues with Vulkan area: correctness We're behaving incorrectly labels Jun 15, 2022
@teoxoy teoxoy self-assigned this Jul 17, 2024
@teoxoy teoxoy removed their assignment Jul 26, 2024
@teoxoy
Copy link
Member

teoxoy commented Jul 26, 2024

Judging by the "(wgpu internal) Transit"/"(wgpu internal) initializing unmappable buffer" labels I think this was fixed by 61739d9 (#5910).

There is still an instance where this example runs into early resource destruction #5964 (comment) which is caused by #3601.

@teoxoy teoxoy closed this as completed Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: vulkan Issues with Vulkan area: correctness We're behaving incorrectly type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants