Compute test hangs #237
Comments
Could be related to #214, cc @lachlansneff |
By compute test, you mean I worked on my machine, so I’m not sure what’s going on here. |
Also, unfortunately the test was not built or ran for a while, so it's not clear which change broke it. |
It's always going to deadlock because there isn't anything driving it. I tried to explain this on the PR.
|
@alouks, in |
Debugging async code is somewhat painful, unless I'm doing it wrong :) the call stack has pretty much nothing useful. |
This is only calling Because there is nothing driving the event loop here you'll need to call wgpu-rs/examples/hello-compute/main.rs Lines 107 to 113 in 0751806
Can we rename |
In this case, the device is polled in a blocking fashion. This should block the thread until all asynchronous mappings currently installed complete. Regardless, it's not working, so something is going on here. |
fwiw, I agree that |
@kvark Maybe something along the lines of |
Actually, it's already |
Yes, this was my suggestion. Dawn uses |
Just run
cargo test
and observe the hang. Mine was on macOS, 100% reproducible.The text was updated successfully, but these errors were encountered: