alacritty / alacritty

A cross-platform, OpenGL terminal emulator.
https://alacritty.org
Apache License 2.0
55.36k stars 2.98k forks source link

alacritty crashes when launch in fullscreen mode under i3wm #6995

Closed tuanbass closed 1 year ago

tuanbass commented 1 year ago

Step to reduce:

System

OS: Ubuntu Version: alacritty 0.11.0 (77fd510) i3wm (builtin of regolith distro)

Logs

Crashes: STDERR, STDOUT Font/Terminal size:

[0.032616317s] [DEBUG] [alacritty] Loading "monospace" font
[0.041036636s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Book, load_flags: TARGET_LIGHT, render_mode: "Normal", lcd_filter: 1 }
[0.043556096s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold, load_flags: TARGET_LIGHT, render_mode: "Normal", lcd_filter: 1 }
[0.045723552s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Oblique, load_flags: TARGET_LIGHT, render_mode: "Normal", lcd_filter: 1 }
[0.048304170s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold Oblique, load_flags: TARGET_LIGHT, render_mode: "Normal", lcd_filter: 1 }
[0.049233863s] [DEBUG] [alacritty] Estimated scaling factor: 1
[0.049245408s] [DEBUG] [alacritty] Estimated window size: None
[0.049249697s] [DEBUG] [alacritty] Estimated cell size: 9 x 18
[0.116850452s] [INFO ] [alacritty] Running on Mesa Intel(R) UHD Graphics (CML GT2)
[0.116877191s] [INFO ] [alacritty] Using OpenGL 3.3 renderer
[0.122101568s] [INFO ] [alacritty] Display scale factor: 1
[0.122133852s] [DEBUG] [alacritty] Filling glyph cache with common glyphs
[0.141083575s] [INFO ] [alacritty] Cell size: 9 x 18
[0.141124753s] [INFO ] [alacritty] Padding: 0 x 0
[0.141130563s] [INFO ] [alacritty] Width: 800, Height: 600
[0.148054594s] [INFO ] [alacritty] PTY dimensions: 33 x 88
[0.150137953s] [INFO ] [alacritty] Initialisation complete
[0.184495917s] [DEBUG] [alacritty_terminal] New num_cols is 2 and num_lines is 1
[0.184651992s] [INFO ] [alacritty] Padding: 0 x 0
[0.184662667s] [INFO ] [alacritty] Width: 0, Height: 0
[4.053791970s] [DEBUG] [alacritty_terminal] New num_cols is 105 and num_lines is 58
[4.054166631s] [INFO ] [alacritty] Padding: 0 x 0
[4.054191571s] [INFO ] [alacritty] Width: 952, Height: 1045
[4.113744310s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Book, load_flags: TARGET_LIGHT, render_mode: "Normal", lcd_filter: 1 }

Keyboard and bindings: alacritty --print-events

[2.914915467s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9049, tv_nsec: 191858831 }, requested_resume: None })
[2.914950454s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(X(DeviceId(20))), event: Key(KeyboardInput { scancode: 28, state: Released, virtual_keycode: Some(Return), modifiers: (empty) }) }
[2.914963948s] [INFO ] [alacritty] glutin event: MainEventsCleared
[2.914969498s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[5.740169378s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9050, tv_nsec: 186629798 }, requested_resume: None })
[5.740254359s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(X(DeviceId(20))), event: Key(KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: (empty) }) }
[5.740317876s] [INFO ] [alacritty] glutin event: MainEventsCleared
[5.740325579s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[5.823984949s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9053, tv_nsec: 11986876 }, requested_resume: None })
[5.824026402s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(X(DeviceId(20))), event: Key(KeyboardInput { scancode: 33, state: Pressed, virtual_keycode: Some(F), modifiers: ALT }) }
[5.824039644s] [INFO ] [alacritty] glutin event: MainEventsCleared
[5.824044189s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[5.827445411s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9053, tv_nsec: 95703915 }, requested_resume: None })
[5.827486791s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: Resized(PhysicalSize { width: 952, height: 1045 }) }
[5.827499088s] [INFO ] [alacritty] glutin event: MainEventsCleared
[5.827504032s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[5.827732577s] [INFO ] [alacritty] Padding: 0 x 0
[5.827741436s] [INFO ] [alacritty] Width: 952, Height: 1045
[5.868369079s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9053, tv_nsec: 140016899 }, requested_resume: None })
[5.868437851s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: Occluded(false) }
[5.875543716s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: CursorEntered { device_id: DeviceId(X(DeviceId(2))) } }
[5.875706720s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: CursorMoved { device_id: DeviceId(X(DeviceId(2))), position: PhysicalPosition { x: 27.0, y: 793.0 }, modifiers: ALT } }
[5.876148020s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: Moved(PhysicalPosition { x: 962, y: 4 }) }
[5.876231484s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(109051908))), payload: Terminal(Wakeup) })
[5.876280847s] [INFO ] [alacritty] glutin event: MainEventsCleared
[5.876314295s] [INFO ] [alacritty] glutin event: RedrawRequested(WindowId(WindowId(109051908)))
[5.876323439s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[5.928196952s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9053, tv_nsec: 194585680 }, requested_resume: None })
[5.928261336s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(X(DeviceId(20))), event: Key(KeyboardInput { scancode: 33, state: Released, virtual_keycode: Some(F), modifiers: ALT }) }
[5.928370032s] [INFO ] [alacritty] glutin event: MainEventsCleared
[5.928382455s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[5.936401782s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9053, tv_nsec: 200044860 }, requested_resume: None })
[5.936485641s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(X(DeviceId(20))), event: Key(KeyboardInput { scancode: 56, state: Released, virtual_keycode: Some(LAlt), modifiers: ALT }) }
[5.936507133s] [INFO ] [alacritty] glutin event: MainEventsCleared
[5.936514110s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[7.016594578s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9053, tv_nsec: 208176771 }, requested_resume: None })
[7.016650914s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(X(DeviceId(20))), event: Key(KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: (empty) }) }
[7.016663472s] [INFO ] [alacritty] glutin event: MainEventsCleared
[7.016667968s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[7.084062817s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9054, tv_nsec: 288327551 }, requested_resume: None })
[7.084173803s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(X(DeviceId(20))), event: Key(KeyboardInput { scancode: 38, state: Pressed, virtual_keycode: Some(L), modifiers: ALT }) }
[7.084217872s] [INFO ] [alacritty] glutin event: MainEventsCleared
[7.084253326s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[7.084330803s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9054, tv_nsec: 355915032 }, requested_resume: None })
[7.084363373s] [INFO ] [alacritty] glutin event: MainEventsCleared
[7.084388601s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[7.084633190s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9054, tv_nsec: 356049370 }, requested_resume: None })
[7.085694627s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: Focused(true) }
[7.085730247s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: ModifiersChanged(ALT) }
[7.085762176s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: CursorMoved { device_id: DeviceId(X(DeviceId(2))), position: PhysicalPosition { x: 27.0, y: 793.0 }, modifiers: ALT } }
[7.086157025s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: KeyboardInput { device_id: DeviceId(X(DeviceId(3))), input: KeyboardInput { scancode: 38, state: Pressed, virtual_keycode: Some(L), modifiers: ALT }, is_synthetic: true } }
[7.086186455s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: KeyboardInput { device_id: DeviceId(X(DeviceId(3))), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: true } }
[7.086214016s] [INFO ] [alacritty] glutin event: MainEventsCleared
[7.086226081s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[7.140218941s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9054, tv_nsec: 394174520 }, requested_resume: None })
[7.140285293s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(X(DeviceId(20))), event: Key(KeyboardInput { scancode: 38, state: Released, virtual_keycode: Some(L), modifiers: ALT }) }
[7.140813090s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: KeyboardInput { device_id: DeviceId(X(DeviceId(3))), input: KeyboardInput { scancode: 56, state: Released, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: true } }
[7.140853771s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: ModifiersChanged((empty)) }
[7.140862819s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: Focused(false) }
[7.140968115s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: Focused(true) }
[7.141027933s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: ModifiersChanged(ALT) }
[7.141037937s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: CursorMoved { device_id: DeviceId(X(DeviceId(2))), position: PhysicalPosition { x: 27.0, y: 793.0 }, modifiers: ALT } }
[7.141294832s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: KeyboardInput { device_id: DeviceId(X(DeviceId(3))), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: true } }
[7.141319898s] [INFO ] [alacritty] glutin event: MainEventsCleared
[7.141331057s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[7.151800718s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9054, tv_nsec: 420281911 }, requested_resume: None })
[7.152038667s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(X(DeviceId(20))), event: Key(KeyboardInput { scancode: 56, state: Released, virtual_keycode: Some(LAlt), modifiers: ALT }) }
[7.152063695s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: ModifiersChanged((empty)) }
[7.152405657s] [INFO ] [alacritty] glutin event: MainEventsCleared
[7.152423504s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[7.156658544s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9054, tv_nsec: 424205646 }, requested_resume: None })
[7.156860064s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: KeyboardInput { device_id: DeviceId(X(DeviceId(3))), input: KeyboardInput { scancode: 56, state: Released, virtual_keycode: Some(LAlt), modifiers: (empty) }, is_synthetic: false } }
[7.156897909s] [INFO ] [alacritty] glutin event: MainEventsCleared
[7.156907465s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[7.579183828s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9054, tv_nsec: 428573903 }, requested_resume: None })
[7.579271638s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(X(DeviceId(20))), event: Key(KeyboardInput { scancode: 29, state: Pressed, virtual_keycode: Some(LControl), modifiers: (empty) }) }
[7.579307081s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: ModifiersChanged(CTRL) }
[7.579317413s] [INFO ] [alacritty] glutin event: MainEventsCleared
[7.579323378s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[7.579525819s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9054, tv_nsec: 851175411 }, requested_resume: None })
[7.579680550s] [INFO ] [alacritty] glutin event: MainEventsCleared
[7.579702798s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[7.580766315s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9054, tv_nsec: 851365581 }, requested_resume: None })
[7.580830247s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: KeyboardInput { device_id: DeviceId(X(DeviceId(3))), input: KeyboardInput { scancode: 29, state: Pressed, virtual_keycode: Some(LControl), modifiers: CTRL }, is_synthetic: false } }
[7.580848197s] [INFO ] [alacritty] glutin event: MainEventsCleared
[7.580853145s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.535551479s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9054, tv_nsec: 852515821 }, requested_resume: None })
[8.535636318s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(X(DeviceId(20))), event: Key(KeyboardInput { scancode: 29, state: Released, virtual_keycode: Some(LControl), modifiers: CTRL }) }
[8.535670930s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: ModifiersChanged((empty)) }
[8.535829027s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.535872929s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.537346490s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9055, tv_nsec: 807752335 }, requested_resume: None })
[8.537399292s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: KeyboardInput { device_id: DeviceId(X(DeviceId(3))), input: KeyboardInput { scancode: 29, state: Released, virtual_keycode: Some(LControl), modifiers: (empty) }, is_synthetic: false } }
[8.537415934s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.537445407s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.760227073s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9055, tv_nsec: 809105796 }, requested_resume: None })
[8.760285578s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(X(DeviceId(20))), event: Key(KeyboardInput { scancode: 30, state: Pressed, virtual_keycode: Some(A), modifiers: (empty) }) }
[8.760299107s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.760305026s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.760407946s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9056, tv_nsec: 31965265 }, requested_resume: None })
[8.760449460s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.760458294s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.761227276s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9056, tv_nsec: 32119389 }, requested_resume: None })
[8.761265769s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: KeyboardInput { device_id: DeviceId(X(DeviceId(3))), input: KeyboardInput { scancode: 30, state: Pressed, virtual_keycode: Some(A), modifiers: (empty) }, is_synthetic: false } }
[8.761285050s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: ReceivedCharacter('a') }
[8.761296010s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.761301480s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.767304097s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9056, tv_nsec: 32970130 }, requested_resume: None })
[8.767374934s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(109051908))), payload: Terminal(Wakeup) })
[8.767407972s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.767438732s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.850430436s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9056, tv_nsec: 47138609 }, requested_resume: None })
[8.850482863s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(X(DeviceId(20))), event: Key(KeyboardInput { scancode: 30, state: Released, virtual_keycode: Some(A), modifiers: (empty) }) }
[8.850562788s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.850571272s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.851323526s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9056, tv_nsec: 122231782 }, requested_resume: None })
[8.851402666s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(109051908)), event: KeyboardInput { device_id: DeviceId(X(DeviceId(3))), input: KeyboardInput { scancode: 30, state: Released, virtual_keycode: Some(A), modifiers: (empty) }, is_synthetic: false } }
[8.851415889s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.851420673s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[9.843582165s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 9056, tv_nsec: 123080800 }, requested_resume: None })
[9.843616459s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(109051908))), payload: Terminal(Exit) })
[9.847581973s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(109051908))), payload: Terminal(Wakeup) })
[9.847603702s] [INFO ] [alacritty] glutin event: MainEventsCleared
[9.847613206s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[9.847617342s] [INFO ] [alacritty] glutin event: LoopDestroyed
[9.854064548s] [INFO ] [alacritty] Goodbye
Deleted log file at "/tmp/Alacritty-108870.log"
chrisduerr commented 1 year ago

There is no crash here, the application is just shutting down since your shell has quit.

Can you try a different shell?

tuanbass commented 1 year ago

There is no crash here, the application is just shutting down since your shell has quit.

Can you try a different shell?

You are right. When I tried to use bash, the problem disappeared. Moreover, after tried to disable/enable some zsh's plugin, seem the problem come with zsh-users/zsh-syntax-highlighting plugin. Disabling the plugin have the problem gone.

One strange thing is it's occurred only with alacritty, gnome-terminal work perfect.

Anyway, I think it's not the problem of alacritty,