-
Notifications
You must be signed in to change notification settings - Fork 909
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
Surface::configure
can panic with "map callback was leaked"
#4214
Comments
Running into the same issue after upgrading wgpu-core from 0.17.0 to 0.17.1. |
It looks to me like the callbacks are only called if there's an error Not checked the code on a big screen though |
Gosh, you are right, that fix wasn't very good. |
Description
When
Surface::configure
is called, it's possible for the panic at:wgpu/wgpu-core/src/resource.rs
Lines 204 to 210 in c85cbea
to trigger, specifically when:
wgpu/wgpu-core/src/device/global.rs
Lines 2343 to 2345 in c85cbea
returned a non-empty
Ok
Repro steps
Running vello's examples (since linebender/vello#350, at the time of writing linebender/vello@34483eb).
Pressing
v
to toggle vsync (and force a reconfigure) may also be required, although sometimes for reasons unknown this isn't neededExpected vs observed behavior
I expected for a panic not to occur
I observed that a panic occured
Platform
Wayland Gnome on Fedora 38 on an intel i5-1240p
Reproduction also confirmed on "on Sway and with an amdgpu"
The text was updated successfully, but these errors were encountered: