Skip to content
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

Examples crash when resizing on x11+vulkan (known commit) #4180

Closed
Azorlogh opened this issue Sep 27, 2023 · 3 comments · Fixed by #4184
Closed

Examples crash when resizing on x11+vulkan (known commit) #4180

Azorlogh opened this issue Sep 27, 2023 · 3 comments · Fixed by #4184

Comments

@Azorlogh
Copy link
Contributor

Description
Running the cube example, my window manager (on x11) hangs when resizing the window.
I have pinpointed the bug to the following commit: 1d0a22b

Repro steps

  • Linux w/ X11
  • Run the cube example
  • Resize the window

Expected vs observed behavior
Expected: should resize and run smoothly
Observed: My WM hangs for ~5 seconds. Then it becomes responsive again, but the window has not been redrawn. Attempting to resize again at this point will not make the WM hang a second time, but the window never gets redrawn again.

Extra materials
Trace:
wgpu_resize_bug_trace.zip

Platform
Archlinux, X11, no compositor
WGPU version: Any commit since 1d0a22b
Adapter: NVIDIA GeForce RTX 2060 (Vulkan)

@Azorlogh Azorlogh changed the title Examples crash when resizing (known commit) Examples crash when resizing on x11+vulkan (known commit) Sep 27, 2023
@coderedart
Copy link
Contributor

I am using 0.17.1 and i have the same problem. If i switch to plasma wayland session and launch my app and resize it, everything works fine.

But if i log in to plasma x11 session, then the app hangs the entire system for a few seconds if i resize it. After that, it just stops rendering and stays hanged (according to my logfile), and i had to use ctrl + C to stop the app smh.

@cwfitzgerald
Copy link
Member

There's a fix up, I'll try to land it tonight, sorry for the problem. To work around the issue, run cargo update -p wgpu-hal --precise 0.17.0 until I can patch it.

@cwfitzgerald
Copy link
Member

Published in v0.17.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants