You are not logged in.

#1 2023-05-24 16:14:13

Confuze
Member
Registered: 2023-05-12
Posts: 4

[SOLVED] Alacritty doesn't run without root permissions

For a little while (I can't remember when exactly this issue appeared) now I can't get alacritty to render a terminal window. It always gets stuck after loading fonts. This issue is completely gone if I run it with sudo though.

$ alacritty -vv
Created log file at "/tmp/Alacritty-6594.log"
[0.000000652s] [INFO ] [alacritty] Welcome to Alacritty
[0.000040731s] [INFO ] [alacritty] Version 0.13.0-dev (828fdab7)
[0.000045384s] [INFO ] [alacritty] Running on X11
[0.000103598s] [INFO ] [alacritty_config_derive] No config file found; using default
[0.012515605s] [INFO ] [alacritty] Using GLX 1.4
[0.013698593s] [INFO ] [alacritty] Window scale factor: 1.5
[0.048636430s] [DEBUG] [alacritty] Loading "monospace" font
[0.054939339s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Regular, load_flags: TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.056383304s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold, load_flags: TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.057861276s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Regular, load_flags: NO_BITMAP | TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.059420895s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold, load_flags: NO_BITMAP | TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }

# alacritty gets stuck here and doesn't proceed to rendering the window
$ sudo alacritty -vv
[sudo] password for stefanz: 
Created log file at "/tmp/Alacritty-6651.log"
[0.000000803s] [INFO ] [alacritty] Welcome to Alacritty
[0.000020991s] [INFO ] [alacritty] Version 0.13.0-dev (828fdab7)
[0.000025253s] [INFO ] [alacritty] Running on X11
[0.000081433s] [INFO ] [alacritty_config_derive] No config file found; using default
[0.007277085s] [INFO ] [alacritty] Using GLX 1.4
[0.008446858s] [INFO ] [alacritty] Window scale factor: 1.5
[0.043914552s] [DEBUG] [alacritty] Loading "monospace" font
[0.049842512s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Book, load_flags: TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.051438903s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold, load_flags: TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.052939041s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Oblique, load_flags: TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.054464581s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold Oblique, load_flags: TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.131248896s] [INFO ] [alacritty] Running on NVIDIA GeForce RTX 2070 Super with Max-Q Design/PCIe/SSE2
[0.131262084s] [INFO ] [alacritty] Using OpenGL 3.3 renderer
[0.132081183s] [DEBUG] [alacritty] Filling glyph cache with common glyphs
[0.135611417s] [INFO ] [alacritty] Cell size: 13 x 27
[0.135620766s] [INFO ] [alacritty] Padding: 0 x 0
[0.135624271s] [INFO ] [alacritty] Width: 800, Height: 600
[0.136147462s] [INFO ] [alacritty] PTY dimensions: 22 x 61
[0.137565540s] [INFO ] [alacritty] Initialisation complete
[0.138050157s] [DEBUG] [alacritty_terminal] New num_cols is 69 and num_lines is 17
[0.142561774s] [INFO ] [alacritty] Padding: 0 x 0
[0.142571448s] [INFO ] [alacritty] Width: 900, Height: 485

# everything works as expected, the window is rendered and fully functional

Here's some extra details:
- I'm running on alacritty 0.12.1 (5fdfd47f) but the issue also appears on older versions and on alacritty 0.13.0-dev (cb7ad5b7) (installed from the alacritty-git aur package)
- I'm using the nvidia-open-dkms 530.41.03-12 driver with linux-lts

Does anyone know why this might be happening?

Last edited by Confuze (2023-06-21 14:13:29)

Offline

#2 2023-05-24 19:38:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,196

Re: [SOLVED] Alacritty doesn't run without root permissions

Strace alacritty to see where it hangs/what it's doing there.
Also what kind of session (DE/WM/Display server) do you run and how do you start it?

If the answer includes "startx" or "xinit", see the last link below.

Offline

#3 2023-06-21 14:13:11

Confuze
Member
Registered: 2023-05-12
Posts: 4

Re: [SOLVED] Alacritty doesn't run without root permissions

I can't tell you how stupid I feel for not replying for a month but I had a kernel bug and kinda gave up on arch for a while. I'm back now though and am pleased to say that the issue has been resolved after an update. Gonna mark this one as [SOLVED].

Offline

Board footer

Powered by FluxBB