You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Device loss can cause lock contention due to lock guards being in scope while trying to write.
thread 'main' panicked at C:\Users\okko-\Programming\wgpu\wgpu-core\src\resource.rs:740:73:
thread 'main' attempted to acquire a snatch lock recursively.
- Currently trying to acquire a write lock at C:\Users\okko-\Programming\wgpu\wgpu-core\src\resource.rs:740:73
- Previously acquired a read lock at C:\Users\okko-\Programming\wgpu\wgpu-core\src\device\queue.rs:1043:55
release_gpu_resources can be removed once we move the registries into the Firefox bindings (#5121) since we can instead clear the registry on device loss.
Description
Device loss can cause lock contention due to lock guards being in scope while trying to write.
Probably since #6229
Repro steps
Cause a device is lost error on queue submit.
Device::release_gpu_resources
will run into above error when trying to release buffers or others.Expected vs observed behavior
This lock contention should not occur.
Platform
Trunk + Windows + RTX3080
noticed during investigations of another issue #6279
The text was updated successfully, but these errors were encountered: