-
Notifications
You must be signed in to change notification settings - Fork 927
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
Event loop freezes on Wayland #3551
Comments
Try 0.29.12 and ensure to use the latest |
I was experiencing the issue with 0.29.12. Then I ran output.mp4On the first one after the window loses focus I need to send an interrupt to close it, and on the second I never let it lose focus so closing it works just fine. Is there any information about my system that would help reproduce this? Here is some info on my card and drivers if that helps:
|
Post Better probably a video with WAYLAND_DEBUG and remove winit events. |
Also, could you see where it's getting stuck? It feels like it's getting stuck inside the drawing actually? Use |
On Hyprland the window never opened, and a couple of seconds later Hyprland crashed ("Exiting due to channel error"), but I got:
so then I tried running it on river, which didn't crash and allowed me to replicate the issue properly. The output is here. One interesting (or maybe trivially unimportant) difference between the river and Hyprland runs was that on river the clear colour didn't fill the entire window. |
I'll give it a good run-through in the debugger and try to see where the freeze happens. |
I pulled in the master branch and rewrote the sample with the necessary updates for debugging. I went to run it and... everything worked. Went back to the crates.io version and it crashed again. I'm not sure why it works but it does, regardless this doesn't need a fix. |
I'm on the same setup as you (prop. NVIDIA and Hyprland) and still having the same issue using Pausing in the debugger yields this call stack, which lines up with what @kchibisov says. (Probably not a
@GenericConfluent Can you think of anything else other than updating EDIT: It seems like my problem was related to gfx-rs/wgpu#4775. Using the latest commit of |
I'm on Wayland (Hyprland and river) with NVIDIA (proprietary drivers) and running something similar to the following seems to freeze the cursor first leaves the window for the first time after the window opens (I was thinking its the
CursorLeft
event, but could be the RedrawRequest or something). I'm not super familiar withwinit
. Here is my sample:I'm pretty sure this is a winit problem. I recently upgraded my NVIDIA drivers and the
winit
version on my project, so it could be the drivers, except all the other windowing on my system is working without issue. This issue is causing downstream stuff likeiced
to freeze (see iced-rs/iced#2297) and I think may also be the cause of an issue I'm having wherebevy
will panic when I switch my workspace on Hyprland (though that may be unrelated):Also just a note: I tried using
ControlFlow::Poll
and still had the same issue.The text was updated successfully, but these errors were encountered: