-
Notifications
You must be signed in to change notification settings - Fork 948
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
Deadlock on AMD/Mesa/vk #4686
Comments
Can you try on This PR changes (and removes) a lot of the internal locking on wgpu. It's expected to land next week |
It still happens on that branch, and seeing all the mutexes in |
I'll take a look at this during the day to check it and integrate it if possible 👍🏼 it seems that there were still some "too early" locks |
Integrated in #3626 👍 |
awesome, thank you @gents83 ! |
Description
I wrote a library that runs various unit tests that perform wgpu operations, and those tests sometimes end up in what looks like a deadlock in wgpu.
Repro steps
cargo t -p zaru-image
on this commit can be used to reproduce https://github.com/SludgePhD/Zaru/commit/ac29836b0528a2e50c63c2a7ff68eb09b33a6cf3Extra materials
I've tried to use the parking_lot deadlock detection feature, but it turns out that that does not support RW locks.
GDB output below.
Thread state when the deadlock happens:
The stacks on most of these threads looks like this (though sometimes with a read lock instead of a write lock, and often for a variety of different resources instead of command encoder creation):
The only threads that look significantly different are the one running the test harness and the following two Mesa/Vulkan-related threads:
Platform
Arch Linux, wgpu 0.18, Mesa 23.2.1-arch1.2, Radeon RX 6700 XT
The text was updated successfully, but these errors were encountered: