-
Notifications
You must be signed in to change notification settings - Fork 960
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
Vulkan Validation Error: Cannot free VkBuffer that is in use by a command buffer. #1689
Comments
I'm following your instructions, but |
@kvark thanks for the tip, here is the link (it should last 24hr let me know if another upload is needed) |
Strangely, I downloaded this "wgpu-trace-whole.zip", unpacked it, and it's still incomplete. The data indices start at 2500 or so. Not sure what's going on. |
Hmm, I must have not put it back together correctly. I will try to get the original or re-create it. |
Hopefully this one works https://wormhole.app/aRbrY#f0nTkJk-1F7iDug3XnTYUA (sorry for the issues) |
I am getting this issue when running some of examples as tests (e.g. boids, water). The test failing might be necessary to trigger it since I get e.g.:
However, the vulkan validation errors appear before this and I don't know how to make the test pass to see whether it still triggers validation errors. I don't see them when running the example normally though. Also, it might be significant to note that when this occurs the test hangs and doesn't exit. |
I don't use |
I think I figured out how to get the test to not panic (by deleting the reference image). And it appears to still be producing vulkan validation errors and hanging. |
Perhaps you could branch out the actual repro case for me to try? |
I'm getting the same validation error when running the wgpu halmark example on Windows 10. If there's any environment information that would be helpful for debugging this, let me know and I can post it. |
@TheSpydog what validation layers version are you using? |
I completely missed this! It seems like I can no longer reproduce this, I ran Strangely, I also didn't get any test failures like this one which I had before:
Either I'm running the test differently or a driver update fixed both things. Current gpu info:
From
|
|
Thanks! That's quite fresh. |
The problematic buffer is explicitly created as part of the halmark example. It's called "stage".
|
Hmm. Reviewing the halmark example code, everything seems to be in place:
|
@TheSpydog could you upload the run log with |
Sure, here's the log: halmarklog.txt |
Thank you! I was mainly interested if your platform supports timeline semaphores or not, to narrow down the problematic path.
None of these experiments should be needed, but perhaps we'll find something interesting. |
It seems like I can actually still reproduce this for my original case (but not in the examples). It only occurs in a very specific scenario so I had not noticed before. I will need to find some time to see if I can test this with an updated version of |
…rs#1689) * Allow vecN<i32> and vecN<u32> in `dot()`, first changes * Added a test case * Fix the test * Changes to baking of expressions, incl args of integer dot product * Implemented requested changes for glsl backend * Added support for integer dot product on MSL backend * Removed outdated code for hlsl and wgls writers * Implement in spv backend * Commit modified outputs from running the tests * cargo fmt * Applied requested changes for both MSL and GLSL back * Changes to spv back * Committed all test output changes * Cargo fmt * Added a comment w.r.t. VK_KHR_shader_integer_dot_product * Implemented requested svp change * Minor change to test case This is because I wanted to highlight the fact that the correct id is used in the last sum of the integer dot product expression * Changed function signature since it could not fail, changed it to simply return `void`
This sounds related to #3193 (comment). @Imberflur could you try to reproduce the issue on 61739d9 (#5910)? |
I think this was fixed, please reopen/open a new issue if that's not the case. |
Description
Vulkan validation error:
I think this occurs in veloren when a switch between scenes is initiated that is quickly interrupted. Since I get it after getting kicked to the character selection screen by an error from the server.
Repro steps
Attached API trace
Expected vs observed behavior
No validation errors
Extra materials
wgpu-trace.zip
wgpu-trace.z01.zip
wgpu-trace.z02.zip
should be able to extract these by removing the
.zip
from the last two and runningunzip wpgu-trace.zip
Platform
The text was updated successfully, but these errors were encountered: