-
Notifications
You must be signed in to change notification settings - Fork 959
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
Using wgpu with GLFW causes system freeze on window close #1570
Comments
Is there any way to test where it is hanging? If this is also happening with minifb, this feels like an issue at another layer in the stack (maybe glfw). |
So it seems we're literally just waiting for the gpu to finish whatever it is doing. I'm not sure what we can do about that 🤔 |
I think this particular @caelunshun do you hook up env_logger? I wonder if Vulkan validation says anything. |
No validation errors in the logs—the last message that gets printed is
before the program hangs. |
Maybe we are trying to destroy the surface, and GLFW has already deleted the window our surface was created from. |
It has been some time, @caelunshun is this still an issue? |
closing as stale. |
Description
A
wgpu
application using GLFW instead ofwinit
will occasionally hang my system for ~10 seconds when shutting down. The issue also happens withminifb
, and possibly other window management crates.Additionally, resizing the window freezes the application, and the whole system hangs when I kill the process.
Possibly related to #318, except changing the present mode does not solve the problem.
Repro steps
Run the
hello-triangle
example ported to GLFW: source here. Then terminate the process with ctrl-C.Platform
Ubuntu 18.04 running an NVIDIA GPU with driver version 460. The issue happens on the master branch as well as versions 0.9, 0.8, and 0.7. I haven't tested further back.
The text was updated successfully, but these errors were encountered: