Skip to content

Long startup times on sway/Wayland since winit 0.28 #6842

@jlkDE

Description

@jlkDE

System

OS: Linux, openSUSE Tumbleweed
Version: 0.12.0
Linux/BSD: Wayland, sway

Logs

Log with the error
Created log file at "/tmp/Alacritty-9549.log"
[0.000006774s] [INFO ] [alacritty] Welcome to Alacritty
[0.000432741s] [INFO ] [alacritty] Version 0.12.0
[0.000469338s] [INFO ] [alacritty] Running on Wayland
[0.003600353s] [INFO ] [alacritty] Configuration files loaded from:
                                     "/home/jlk/.config/alacritty/alacritty.yml"
[0.063091596s] [INFO ] [alacritty] Using EGL 1.5
[25.186934980s] [TRACE] [crossfont] Number of fonts is 258
[25.187965295s] [TRACE] [crossfont] Got font path="/usr/share/fonts/truetype/Cantarell-VF.otf", index=262144
[25.188594184s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold, load_flags: NO_BITMAP | FORCE_AUTOHINT | TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[25.265597698s] [INFO ] [alacritty] Window scale factor: 1
[25.268013802s] [DEBUG] [alacritty] Loading "Hack Nerd Font" font
[25.283524890s] [TRACE] [crossfont] Number of fonts is 241
[25.284041549s] [TRACE] [crossfont] Got font path="/home/jlk/.local/share/fonts/NerdFonts/Hack Regular Nerd Font Complete.ttf", index=0
[25.284267055s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Regular, load_flags: NO_BITMAP | FORCE_AUTOHINT | TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[25.352526682s] [TRACE] [crossfont] Number of fonts is 250
[25.353171494s] [TRACE] [crossfont] Got font path="/home/jlk/.local/share/fonts/NerdFonts/Hack Bold Nerd Font Complete.ttf", index=0
[25.353414180s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold, load_flags: NO_BITMAP | FORCE_AUTOHINT | TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[25.449449998s] [TRACE] [crossfont] Number of fonts is 251
[25.450009537s] [TRACE] [crossfont] Got font path="/home/jlk/.local/share/fonts/NerdFonts/Hack Italic Nerd Font Complete.ttf", index=0
[25.450279320s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Italic, load_flags: NO_BITMAP | FORCE_AUTOHINT | TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[25.509866015s] [TRACE] [crossfont] Number of fonts is 295
[25.510265627s] [TRACE] [crossfont] Got font path="/home/jlk/.local/share/fonts/NerdFonts/Hack Bold Italic Nerd Font Complete.ttf", index=0
[25.510440081s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold Italic, load_flags: NO_BITMAP | FORCE_AUTOHINT | TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[25.573990553s] [INFO ] [alacritty] Running on AMD Radeon Vega 8 Graphics (raven, LLVM 16.0.0, DRM 3.49, 6.2.9-1-default)
[25.574101595s] [INFO ] [alacritty] Using OpenGL 3.3 renderer
[25.587293933s] [DEBUG] [alacritty] Filling glyph cache with common glyphs
[25.610230862s] [INFO ] [alacritty] Cell size: 9 x 19
[25.610429340s] [INFO ] [alacritty] Padding: 0 x 0
[25.610451758s] [INFO ] [alacritty] Width: 800, Height: 600
[25.610633406s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 236, g: 239, b: 241 } to Rgb { r: 155, g: 157, b: 159 }
[25.610668185s] [TRACE] [alacritty] Deriving dim colors from normal colors
[25.610686692s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 38, g: 50, b: 56 } to Rgb { r: 25, g: 33, b: 36 }
[25.610706317s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 255, g: 152, b: 0 } to Rgb { r: 168, g: 100, b: 0 }
[25.610729293s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 139, g: 195, b: 74 } to Rgb { r: 91, g: 128, b: 48 }
[25.610748219s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 255, g: 193, b: 7 } to Rgb { r: 168, g: 127, b: 4 }
[25.610767355s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 3, g: 169, b: 244 } to Rgb { r: 1, g: 111, b: 161 }
[25.610790331s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 233, g: 30, b: 99 } to Rgb { r: 153, g: 19, b: 65 }
[25.610811143s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 0, g: 150, b: 136 } to Rgb { r: 0, g: 99, b: 89 }
[25.610828952s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 207, g: 216, b: 220 } to Rgb { r: 136, g: 142, b: 145 }
[25.610854931s] [INFO ] [alacritty] PTY dimensions: 31 x 88
[25.616398856s] [INFO ] [alacritty] Initialisation complete
[25.646625162s] [DEBUG] [alacritty_terminal] New num_cols is 105 and num_lines is 55
[25.651314622s] [INFO ] [alacritty] Padding: 0 x 0
[25.651456183s] [INFO ] [alacritty] Width: 946, Height: 1047
[26.027064244s] [TRACE] [alacritty_terminal] Carriage return
[26.027188764s] [TRACE] [alacritty_terminal] Linefeed
[26.027216909s] [TRACE] [alacritty_terminal] Carriage return
[26.027226966s] [TRACE] [alacritty_terminal] Linefeed
[26.073617273s] [TRACE] [alacritty_terminal] Setting cursor style Some(CursorStyle { shape: Block, blinking: false })
[26.078957760s] [TRACE] [alacritty_terminal] Setting mode: BracketedPaste
[26.103020821s] [TRACE] [alacritty_terminal] Setting title to 'Some("~")'
[26.103208754s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(Black))
[26.103235432s] [TRACE] [alacritty_terminal] Configuring charset G0 as Ascii
[26.103257431s] [TRACE] [alacritty_terminal] Setting attribute: Reset
[26.103280338s] [TRACE] [alacritty_terminal] Carriage return
[26.103296959s] [TRACE] [alacritty_terminal] Setting attribute: Bold
[26.103316584s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(Green))
[26.103346195s] [TRACE] [alacritty_terminal] Configuring charset G0 as Ascii
[26.103365610s] [TRACE] [alacritty_terminal] Setting attribute: Reset
[26.103385164s] [TRACE] [alacritty_terminal] Setting attribute: Bold
[26.103403392s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(Yellow))
[26.103423226s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(White))
[26.103441803s] [TRACE] [alacritty_terminal] Setting attribute: Bold
[26.103460100s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(Green))
[26.103480772s] [TRACE] [alacritty_terminal] Configuring charset G0 as Ascii
[26.103499768s] [TRACE] [alacritty_terminal] Setting attribute: Reset
[26.103520230s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Spec(Rgb { r: 203, g: 204, b: 198 }))
[26.103543137s] [TRACE] [alacritty_terminal] Clearing line: Right
[26.103563669s] [TRACE] [alacritty_terminal] Carriage return
[26.103583643s] [TRACE] [alacritty_terminal] Moving forward: 91
[26.103602848s] [TRACE] [alacritty_terminal] Setting attribute: Bold
[26.103621286s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(Green))
[26.103640351s] [TRACE] [alacritty_terminal] Configuring charset G0 as Ascii
[26.103659068s] [TRACE] [alacritty_terminal] Setting attribute: Reset
[26.103679949s] [TRACE] [alacritty_terminal] Configuring charset G0 as Ascii
[26.103698666s] [TRACE] [alacritty_terminal] Setting attribute: Reset
[26.103717452s] [TRACE] [alacritty_terminal] Carriage return
[26.103735261s] [TRACE] [alacritty_terminal] Moving forward: 91
[26.103753279s] [TRACE] [alacritty_terminal] Carriage return
[26.103771437s] [TRACE] [alacritty_terminal] Moving forward: 8
[27.270276339s] [TRACE] [alacritty_terminal] Carriage return
[27.270417132s] [TRACE] [alacritty_terminal] Linefeed
[27.270440388s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(Black))
[27.270472304s] [TRACE] [alacritty_terminal] Configuring charset G0 as Ascii
[27.270517279s] [TRACE] [alacritty_terminal] Setting attribute: Reset
[27.270593333s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(Black))
[27.270631394s] [TRACE] [alacritty_terminal] Configuring charset G0 as Ascii
[27.270655837s] [TRACE] [alacritty_terminal] Setting attribute: Reset
[27.270682934s] [TRACE] [alacritty_terminal] Unsetting mode: BracketedPaste
[27.303578157s] [INFO ] [alacritty] Goodbye
Deleted log file at "/tmp/Alacritty-9549.log"

For comparison:

Log on i3 without the error
Created log file at "/tmp/Alacritty-2696.log"
[0.000004260s] [INFO ] [alacritty] Welcome to Alacritty
[0.000304295s] [INFO ] [alacritty] Version 0.12.0
[0.000335793s] [INFO ] [alacritty] Running on X11
[0.003723615s] [INFO ] [alacritty] Configuration files loaded from:
                                     "/home/jlk/.config/alacritty/alacritty.yml"
[0.008550361s] [INFO ] [alacritty] Using GLX 1.4
[0.066980443s] [INFO ] [alacritty] Window scale factor: 1.5
[0.068318447s] [DEBUG] [alacritty] Loading "Hack Nerd Font" font
[0.104017339s] [TRACE] [crossfont] Number of fonts is 243
[0.104303266s] [TRACE] [crossfont] Got font path="/home/jlk/.local/share/fonts/NerdFonts/Hack Regular Nerd Font Complete.ttf", index=0
[0.104403976s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Regular, load_flags: NO_BITMAP | TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.143536086s] [TRACE] [crossfont] Number of fonts is 252
[0.143745887s] [TRACE] [crossfont] Got font path="/home/jlk/.local/share/fonts/NerdFonts/Hack Bold Nerd Font Complete.ttf", index=0
[0.143836680s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold, load_flags: NO_BITMAP | TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.178628483s] [TRACE] [crossfont] Number of fonts is 253
[0.178831230s] [TRACE] [crossfont] Got font path="/home/jlk/.local/share/fonts/NerdFonts/Hack Italic Nerd Font Complete.ttf", index=0
[0.178904284s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Italic, load_flags: NO_BITMAP | TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.214282049s] [TRACE] [crossfont] Number of fonts is 297
[0.214499881s] [TRACE] [crossfont] Got font path="/home/jlk/.local/share/fonts/NerdFonts/Hack Bold Italic Nerd Font Complete.ttf", index=0
[0.214595004s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold Italic, load_flags: NO_BITMAP | TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.253857646s] [INFO ] [alacritty] Running on AMD Radeon Vega 8 Graphics (raven, LLVM 15.0.7, DRM 3.49, 6.2.8-1-default)
[0.253908769s] [INFO ] [alacritty] Using OpenGL 3.3 renderer
[0.259875032s] [DEBUG] [alacritty] Filling glyph cache with common glyphs
[0.272647599s] [INFO ] [alacritty] Cell size: 14 x 28
[0.272707243s] [INFO ] [alacritty] Padding: 0 x 0
[0.272716741s] [INFO ] [alacritty] Width: 800, Height: 600
[0.284840909s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 236, g: 239, b: 241 } to Rgb { r: 155, g: 157, b: 159 }
[0.284921086s] [TRACE] [alacritty] Deriving dim colors from normal colors
[0.284951187s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 38, g: 50, b: 56 } to Rgb { r: 25, g: 33, b: 36 }
[0.284978425s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 255, g: 152, b: 0 } to Rgb { r: 168, g: 100, b: 0 }
[0.285002450s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 139, g: 195, b: 74 } to Rgb { r: 91, g: 128, b: 48 }
[0.285019561s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 255, g: 193, b: 7 } to Rgb { r: 168, g: 127, b: 4 }
[0.285034646s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 3, g: 169, b: 244 } to Rgb { r: 1, g: 111, b: 161 }
[0.285063281s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 233, g: 30, b: 99 } to Rgb { r: 153, g: 19, b: 65 }
[0.285087655s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 0, g: 150, b: 136 } to Rgb { r: 0, g: 99, b: 89 }
[0.285111960s] [TRACE] [alacritty_terminal] Scaling RGB by 0.66 from Rgb { r: 207, g: 216, b: 220 } to Rgb { r: 136, g: 142, b: 145 }
[0.285130537s] [INFO ] [alacritty] PTY dimensions: 21 x 57
[0.289475034s] [INFO ] [alacritty] Initialisation complete
[0.307802015s] [DEBUG] [alacritty_terminal] New num_cols is 67 and num_lines is 37
[0.309745605s] [INFO ] [alacritty] Padding: 0 x 0
[0.309820614s] [INFO ] [alacritty] Width: 950, Height: 1049
[0.512102113s] [TRACE] [alacritty_terminal] Carriage return
[0.512171813s] [TRACE] [alacritty_terminal] Linefeed
[0.550503133s] [TRACE] [alacritty_terminal] Setting cursor style Some(CursorStyle { shape: Block, blinking: false })
[0.554720869s] [TRACE] [alacritty_terminal] Setting mode: BracketedPaste
[0.566737692s] [TRACE] [alacritty_terminal] Setting title to 'Some("~")'
[0.566800130s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(Black))
[0.566814796s] [TRACE] [alacritty_terminal] Configuring charset G0 as Ascii
[0.566824853s] [TRACE] [alacritty_terminal] Setting attribute: Reset
[0.566834910s] [TRACE] [alacritty_terminal] Carriage return
[0.566848180s] [TRACE] [alacritty_terminal] Setting attribute: Bold
[0.566857259s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(Green))
[0.566867805s] [TRACE] [alacritty_terminal] Configuring charset G0 as Ascii
[0.566876745s] [TRACE] [alacritty_terminal] Setting attribute: Reset
[0.566885894s] [TRACE] [alacritty_terminal] Setting attribute: Bold
[0.566898395s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(Yellow))
[0.566907754s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(White))
[0.566916414s] [TRACE] [alacritty_terminal] Setting attribute: Bold
[0.566925563s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(Green))
[0.566935061s] [TRACE] [alacritty_terminal] Configuring charset G0 as Ascii
[0.566944909s] [TRACE] [alacritty_terminal] Setting attribute: Reset
[0.566955385s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Spec(Rgb { r: 203, g: 204, b: 198 }))
[0.566966769s] [TRACE] [alacritty_terminal] Clearing line: Right
[0.566977524s] [TRACE] [alacritty_terminal] Carriage return
[0.566987093s] [TRACE] [alacritty_terminal] Moving forward: 53
[0.566996731s] [TRACE] [alacritty_terminal] Setting attribute: Bold
[0.567005670s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(Green))
[0.567015168s] [TRACE] [alacritty_terminal] Configuring charset G0 as Ascii
[0.567024876s] [TRACE] [alacritty_terminal] Setting attribute: Reset
[0.567034375s] [TRACE] [alacritty_terminal] Configuring charset G0 as Ascii
[0.567043314s] [TRACE] [alacritty_terminal] Setting attribute: Reset
[0.567051974s] [TRACE] [alacritty_terminal] Carriage return
[0.567060565s] [TRACE] [alacritty_terminal] Moving forward: 53
[0.567069155s] [TRACE] [alacritty_terminal] Carriage return
[0.567079072s] [TRACE] [alacritty_terminal] Moving forward: 8
[1.275817757s] [TRACE] [alacritty_terminal] Carriage return
[1.275927826s] [TRACE] [alacritty_terminal] Linefeed
[1.275953597s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(Black))
[1.275978530s] [TRACE] [alacritty_terminal] Configuring charset G0 as Ascii
[1.275998435s] [TRACE] [alacritty_terminal] Setting attribute: Reset
[1.276017012s] [TRACE] [alacritty_terminal] Setting attribute: Foreground(Named(Black))
[1.276036009s] [TRACE] [alacritty_terminal] Configuring charset G0 as Ascii
[1.276054866s] [TRACE] [alacritty_terminal] Setting attribute: Reset
[1.276074910s] [TRACE] [alacritty_terminal] Unsetting mode: BracketedPaste
[1.286042334s] [INFO ] [alacritty] Goodbye
Deleted log file at "/tmp/Alacritty-2696.log"

Description

Since I updated to version 0.12.0 alacritty takes really long (around 20 - 40 seconds) until a window is displayed.
This happens both for the first started instance as for instances started later and also for new windows of the same process.

Via bisecting the update to winit 0.28 seems to be the first commit affected which makes sense imo: 1c878a0

I also provided a log of a startup on i3wm/X11 were alacritty starts in around one second.

So far no change in my config seems to help and the bug persists when using the default config shipped by openSUSE - Changing the renderer and window decorations makes no difference.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions