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

Alacritty freezes Arch Linux, Wayland, Nvidia #7485

Closed
ARKye03 opened this issue Dec 28, 2023 · 12 comments
Closed

Alacritty freezes Arch Linux, Wayland, Nvidia #7485

ARKye03 opened this issue Dec 28, 2023 · 12 comments

Comments

@ARKye03
Copy link

ARKye03 commented Dec 28, 2023

System

OS: GNU/Linux
Version: alacritty 0.13.0 (78fa4d6)
Arch Linux: Wayland, Hyprland, Sway

No logs, after a while all instances of alacritty just freezes, can still type and do commands, but not visible, its like it just stops rendering the "GUI" part, If I continually use the instance of alacritty it won't freeze, its just If I leave it in a lonely workspace and don't use it, this never happened to me, I have just updated to 0.13 and just happened, using proprietary drivers btw

@kchibisov
Copy link
Member

could you post the WAYLAND_DEBUG=1 alacritty --print-events log from some instance that got frozen?

@ARKye03
Copy link
Author

ARKye03 commented Dec 28, 2023

could you post the WAYLAND_DEBUG=1 alacritty --print-events log from some instance that got frozen?

It freezes too, the 3 instances are frozen there
gscreenshot_2023-12-28-135813

@kchibisov
Copy link
Member

yeah, but I need the log and not the screenshot...

@kchibisov
Copy link
Member

And after it got frozen starting typing something like Shift + H, so I understand where it started to be broken.

@ARKye03
Copy link
Author

ARKye03 commented Dec 28, 2023

yeah, but I need the log and not the screenshot...

[2667358.602] wl_pointer@21.motion(2276447, 114.84765625, 307.66406250)
[2667358.616] wl_pointer@21.frame()
[128.526482989s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 2276, tv_nsec: 446614106 }, requested_resume: Some(Instant { tv_sec: 2276, tv_nsec: 776165452 }) })
[128.526515636s] [INFO ] [alacritty] winit event: DeviceEvent { device_id: DeviceId(Wayland(DeviceId)), event: MouseMotion { delta: (-4.0, -1.0) } }
[128.526536356s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: CursorMoved { device_id: DeviceId(Wayland(DeviceId)), position: PhysicalPosition { x: 114.84765625, y: 307.6640625 } } }
[128.526558658s] [INFO ] [alacritty] winit event: AboutToWait
[2667360.509] wl_pointer@32.motion(2276449, 106.84765625, 305.66406250)
[2667360.524] zwp_relative_pointer_v1@24.relative_motion(0, 2276449000, -8.00000000, -2.00000000, -4.00000000, -1.00000000)
[2667360.574] wl_pointer@21.motion(2276449, 106.84765625, 305.66406250)
[2667360.589] wl_pointer@21.frame()
[2667360.552] wl_pointer@32.frame()
[2667360.604] wl_keyboard@18.key(16571, 2276449, 103, 0)
[2667360.627] wl_keyboard@29.key(16571, 2276449, 103, 0)
[128.528518186s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 2276, tv_nsec: 448230378 }, requested_resume: Some(Instant { tv_sec: 2276, tv_nsec: 776165452 }) })
[128.528551601s] [INFO ] [alacritty] winit event: DeviceEvent { device_id: DeviceId(Wayland(DeviceId)), event: MouseMotion { delta: (-4.0, -1.0) } }
[128.528571559s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: CursorMoved { device_id: DeviceId(Wayland(DeviceId)), position: PhysicalPosition { x: 106.84765625, y: 305.6640625 } } }
[128.528612365s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: KeyboardInput { device_id: DeviceId(Wayland(DeviceId)), event: KeyEvent { physical_key: Code(ArrowUp), logical_key: Named(ArrowUp), text: None, location: Standard, state: Released, repeat: false, platform_specific: KeyEventExtra { key_without_modifiers: Named(ArrowUp), text_with_all_modifiers: None } }, is_synthetic: false } }
[128.528652033s] [INFO ] [alacritty] winit event: AboutToWait
[2667362.536] wl_pointer@32.motion(2276451, 98.84765625, 301.66406250)
[2667362.579] wl_pointer@32.frame()
[2667362.549] zwp_relative_pointer_v1@24.relative_motion(0, 2276451000, -8.00000000, -4.00000000, -4.00000000, -2.00000000)
[2667362.612] wl_pointer@21.motion(2276451, 98.84765625, 301.66406250)
[2667362.626] wl_pointer@21.frame()
[128.530496378s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 2276, tv_nsec: 450306882 }, requested_resume: Some(Instant { tv_sec: 2276, tv_nsec: 776165452 }) })
[128.530533581s] [INFO ] [alacritty] winit event: DeviceEvent { device_id: DeviceId(Wayland(DeviceId)), event: MouseMotion { delta: (-4.0, -2.0) } }
[128.530572228s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: CursorMoved { device_id: DeviceId(Wayland(DeviceId)), position: PhysicalPosition { x: 98.84765625, y: 301.6640625 } } }
[128.530617979s] [INFO ] [alacritty] winit event: AboutToWait
[2667364.600] zwp_relative_pointer_v1@24.relative_motion(0, 2276453000, -8.00000000, -2.00000000, -4.00000000, -1.00000000)
[2667364.638] wl_pointer@21.motion(2276453, 90.84765625, 299.66406250)
[2667364.672] wl_pointer@21.frame()
[2667364.634] wl_pointer@32.motion(2276453, 90.84765625, 299.66406250)
[2667364.728] wl_pointer@32.frame()
[128.532558164s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 2276, tv_nsec: 452288298 }, requested_resume: Some(Instant { tv_sec: 2276, tv_nsec: 776165452 }) })
[128.532636788s] [INFO ] [alacritty] winit event: DeviceEvent { device_id: DeviceId(Wayland(DeviceId)), event: MouseMotion { delta: (-4.0, -1.0) } }
[128.532669727s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: CursorMoved { device_id: DeviceId(Wayland(DeviceId)), position: PhysicalPosition { x: 90.84765625, y: 299.6640625 } } }
[128.532702842s] [INFO ] [alacritty] winit event: AboutToWait
[2667366.588] wl_pointer@32.motion(2276455, 80.84765625, 297.66406250)
[2667366.600] zwp_relative_pointer_v1@24.relative_motion(0, 2276455000, -10.00000000, -2.00000000, -5.00000000, -1.00000000)
[2667366.631] wl_pointer@32.frame()
[2667366.657] wl_pointer@21.motion(2276455, 80.84765625, 297.66406250)
[2667366.699] wl_pointer@21.frame()
[128.534572189s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 2276, tv_nsec: 454369775 }, requested_resume: Some(Instant { tv_sec: 2276, tv_nsec: 776165452 }) })
[128.534627780s] [INFO ] [alacritty] winit event: DeviceEvent { device_id: DeviceId(Wayland(DeviceId)), event: MouseMotion { delta: (-5.0, -1.0) } }
[128.534659558s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: CursorMoved { device_id: DeviceId(Wayland(DeviceId)), position: PhysicalPosition { x: 80.84765625, y: 297.6640625 } } }
[128.534688932s] [INFO ] [alacritty] winit event: AboutToWait
[2667376.317] wl_pointer@32.motion(2276457, 70.84765625, 293.66406250)
[2667376.333] zwp_relative_pointer_v1@24.relative_motion(0, 2276457000, -10.00000000, -4.00000000, -5.00000000, -2.00000000)
[2667376.360] wl_pointer@32.frame()
[2667376.389] wl_pointer@21.motion(2276457, 70.84765625, 293.66406250)
[2667376.411] wl_pointer@32.motion(2276459, 60.84765625, 289.66406250)
[2667376.456] wl_pointer@32.frame()
[2667376.478] wl_pointer@32.motion(2276461, 50.84765625, 285.66406250)
[2667376.493] wl_pointer@32.frame()
[2667376.461] wl_pointer@21.frame()
[2667376.503] wl_pointer@32.motion(2276463, 38.84765625, 281.66406250)
[2667376.518] zwp_relative_pointer_v1@24.relative_motion(0, 2276459000, -10.00000000, -4.00000000, -5.00000000, -2.00000000)
[2667376.533] wl_pointer@32.frame()
[2667376.563] wl_pointer@32.motion(2276465, 24.84765625, 275.66406250)
[2667376.578] wl_pointer@32.frame()
[2667376.548] wl_pointer@21.motion(2276459, 60.84765625, 289.66406250)
[2667376.607] wl_pointer@21.frame()
[2667376.618] zwp_relative_pointer_v1@24.relative_motion(0, 2276461000, -10.00000000, -4.00000000, -5.00000000, -2.00000000)
[2667376.632] wl_pointer@21.motion(2276461, 50.84765625, 285.66406250)
[2667376.644] wl_pointer@21.frame()
[2667376.654] zwp_relative_pointer_v1@24.relative_motion(0, 2276463000, -12.00000000, -4.00000000, -6.00000000, -2.00000000)
[2667376.668] wl_pointer@21.motion(2276463, 38.84765625, 281.66406250)
[2667376.679] wl_pointer@21.frame()
[2667376.688] zwp_relative_pointer_v1@24.relative_motion(0, 2276465000, -14.00000000, -6.00000000, -7.00000000, -3.00000000)
[2667376.704] wl_pointer@21.motion(2276465, 24.84765625, 275.66406250)
[2667376.722] wl_pointer@21.frame()
[128.544629642s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 2276, tv_nsec: 456352980 }, requested_resume: Some(Instant { tv_sec: 2276, tv_nsec: 776165452 }) })
[128.544668515s] [INFO ] [alacritty] winit event: DeviceEvent { device_id: DeviceId(Wayland(DeviceId)), event: MouseMotion { delta: (-5.0, -2.0) } }
[128.544696942s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: CursorMoved { device_id: DeviceId(Wayland(DeviceId)), position: PhysicalPosition { x: 70.84765625, y: 293.6640625 } } }
[128.544725363s] [INFO ] [alacritty] winit event: DeviceEvent { device_id: DeviceId(Wayland(DeviceId)), event: MouseMotion { delta: (-5.0, -2.0) } }
[128.544749784s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: CursorMoved { device_id: DeviceId(Wayland(DeviceId)), position: PhysicalPosition { x: 60.84765625, y: 289.6640625 } } }
[128.544777816s] [INFO ] [alacritty] winit event: DeviceEvent { device_id: DeviceId(Wayland(DeviceId)), event: MouseMotion { delta: (-5.0, -2.0) } }
[128.544802357s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: CursorMoved { device_id: DeviceId(Wayland(DeviceId)), position: PhysicalPosition { x: 50.84765625, y: 285.6640625 } } }
[128.544827603s] [INFO ] [alacritty] winit event: DeviceEvent { device_id: DeviceId(Wayland(DeviceId)), event: MouseMotion { delta: (-6.0, -2.0) } }
[128.544851426s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: CursorMoved { device_id: DeviceId(Wayland(DeviceId)), position: PhysicalPosition { x: 38.84765625, y: 281.6640625 } } }
[128.544877104s] [INFO ] [alacritty] winit event: DeviceEvent { device_id: DeviceId(Wayland(DeviceId)), event: MouseMotion { delta: (-7.0, -3.0) } }
[128.544900689s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: CursorMoved { device_id: DeviceId(Wayland(DeviceId)), position: PhysicalPosition { x: 24.84765625, y: 275.6640625 } } }
[128.544925335s] [INFO ] [alacritty] winit event: AboutToWait
[2667378.558] wl_pointer@32.motion(2276467, 12.84765625, 271.66406250)
[2667378.571] zwp_relative_pointer_v1@24.relative_motion(0, 2276467000, -12.00000000, -4.00000000, -6.00000000, -2.00000000)
[2667378.600] wl_pointer@32.frame()
[2667378.626] wl_pointer@21.motion(2276467, 12.84765625, 271.66406250)
[2667378.666] wl_pointer@21.frame()
[128.546538951s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 2276, tv_nsec: 466591083 }, requested_resume: Some(Instant { tv_sec: 2276, tv_nsec: 776165452 }) })
[128.546571359s] [INFO ] [alacritty] winit event: DeviceEvent { device_id: DeviceId(Wayland(DeviceId)), event: MouseMotion { delta: (-6.0, -2.0) } }
[128.546632447s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: CursorMoved { device_id: DeviceId(Wayland(DeviceId)), position: PhysicalPosition { x: 12.84765625, y: 271.6640625 } } }
[128.546667964s] [INFO ] [alacritty] winit event: AboutToWait
[2667380.502] wl_pointer@32.motion(2276469, 0.84765625, 267.66406250)
[2667380.544] wl_pointer@32.frame()
[2667380.515] zwp_relative_pointer_v1@24.relative_motion(0, 2276469000, -12.00000000, -4.00000000, -6.00000000, -2.00000000)
[2667380.586] wl_pointer@21.motion(2276469, 0.84765625, 267.66406250)
[2667380.603] wl_pointer@21.frame()
[128.548475520s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 2276, tv_nsec: 468099695 }, requested_resume: Some(Instant { tv_sec: 2276, tv_nsec: 776165452 }) })
[128.548507124s] [INFO ] [alacritty] winit event: DeviceEvent { device_id: DeviceId(Wayland(DeviceId)), event: MouseMotion { delta: (-6.0, -2.0) } }
[128.548535871s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: CursorMoved { device_id: DeviceId(Wayland(DeviceId)), position: PhysicalPosition { x: 0.84765625, y: 267.6640625 } } }
[128.548563331s] [INFO ] [alacritty] winit event: AboutToWait
[2667384.319] wl_keyboard@29.leave(16573, wl_surface@39)
[2667384.366] wl_pointer@32.leave(16577, wl_surface@39)
[2667384.333] zwp_relative_pointer_v1@24.relative_motion(0, 2276471000, -12.00000000, -6.00000000, -6.00000000, -3.00000000)
[2667384.429] wl_keyboard@18.leave(16573, wl_surface@39)
[2667384.452] wl_pointer@21.leave(16577, wl_surface@39)
[2667384.471] wl_pointer@21.frame()
[2667384.486] xdg_toplevel@41.configure(941, 1014, array[24])
[2667384.508] xdg_surface@40.configure(16572)
[2667384.398] wl_pointer@32.frame()
[2667384.556] -> xdg_surface@40.ack_configure(16572)
[128.552445557s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 2276, tv_nsec: 469993521 }, requested_resume: Some(Instant { tv_sec: 2276, tv_nsec: 776165452 }) })
[128.552484275s] [INFO ] [alacritty] winit event: DeviceEvent { device_id: DeviceId(Wayland(DeviceId)), event: MouseMotion { delta: (-6.0, -3.0) } }
[128.552506141s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) }) }
[128.552530068s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: Focused(false) }
[128.552546681s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94704915921152)), event: CursorLeft { device_id: DeviceId(Wayland(DeviceId)) } }
[128.552572559s] [INFO ] [alacritty] winit event: AboutToWait

@ARKye03
Copy link
Author

ARKye03 commented Dec 28, 2023

Cant do anything, SHIFT + H does nothing even the instance of alacritty that debugs gets freezes too even tho is in another worskpace, shift + h, prints H, I know because the terminal still works and can copy/paste its content, but still no renders changes in the front

@kchibisov
Copy link
Member

The log is truncated, could you please just run WAYLAND_DEBUG=1 alacritty --print-events > log.txt 2>&1 and upload the file.

But you said that

can still type and do commands, but not visible

So just start pressing like ten times and then close the window, it's more than enough.

@ARKye03
Copy link
Author

ARKye03 commented Dec 28, 2023

log.txt
log2.txt
log3.txt
log4.txt

I have just realize that the instance freezes when I open another app like VSCode insiders(Wayland support), Firefox(Wayland too), and if I open VLC, MSEdge(XWayland), it freezes too
First log with VSCode, 2 with firefox, 3 with vlc and 4 with MSEdge

@kchibisov
Copy link
Member

kchibisov commented Dec 28, 2023

nice, yet another bug in compositor.

If you look at the log you can see the Occluded(it's SUSPENDED in wayland terms, which is https://wayland.app/protocols/xdg-shell#xdg_toplevel:enum:state:entry:suspended) thing, alacritty won't render when compositor says that its window is occluded, thus you have this bug. Bring it to hyprland. The relevant part in the log is the

[3259916.692] xdg_toplevel@41.configure(1896, 1014, array[24])

and

[49.760435250s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(94232316093952)), event: Occluded(true) }

There's never a point when it changes back to false as you can see.

to work around that you can try the patch from

#7465 (comment)

@ARKye03
Copy link
Author

ARKye03 commented Dec 28, 2023

It worked thanks, does this has an impact on performance? I have been using alacritty for almost a year, I really don't wanna change it, version 0.12.3 worked just fine, thanks for all I really appreciate it

@kchibisov
Copy link
Member

No, but report this to hyprland please.

@kchibisov
Copy link
Member

Your issue got fixed upstream hyprwm/Hyprland#4287

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

No branches or pull requests

2 participants