alacritty: Fontconfig error: Cannot load default config file
Which operating system does the issue occur on? Clear Linux
If on linux, are you using X11 or Wayland? It take really long time to start alacritty in X11, Alacrritty won’t start in Wayland
Error Message:
Fontconfig error: Cannot load default config file
thread ‘main’ panicked at ‘called Result::unwrap()
on an Err
value: ()’, src/libcore/result.rs:999:5
stack backtrace:
0: std::sys::unix::backtrace::tracing:👿:unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:71
at src/libstd/sys_common/backtrace.rs:59
at src/libstd/panicking.rs:197
2: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:211
at src/libstd/panicking.rs:474
3: std::panicking::continue_panic_fmt
at src/libstd/panicking.rs:381
4: rust_begin_unwind
at src/libstd/panicking.rs:308
5: core::panicking::panic_fmt
at src/libcore/panicking.rs:85
6: core::result::unwrap_failed
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/macros.rs:18
7: <smithay_client_toolkit:🪟:concept_frame::ConceptFrame as smithay_client_toolkit:🪟:Frame>::redraw
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/result.rs:800
at ./.cargo/registry/src/github.com-1ecc6299db9ec823/smithay-client-toolkit-0.4.6/src/window/concept_frame.rs:486
8: smithay_client_toolkit:🪟:Window<F>::refresh
at ./.cargo/registry/src/github.com-1ecc6299db9ec823/smithay-client-toolkit-0.4.6/src/window/mod.rs:384
9: winit::platform::platform::wayland::event_loop::EventsLoop::post_dispatch_triggers
at ./.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.19.1/src/platform/linux/wayland/event_loop.rs:272
10: alacritty::main
at ./.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.19.1/src/platform/linux/wayland/event_loop.rs:205
at ./.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.19.1/src/platform/linux/mod.rs:513
at ./.cargo/git/checkouts/alacritty-de74975f496aa2c0/f49350f/alacritty_terminal/src/window.rs:240
at ./.cargo/git/checkouts/alacritty-de74975f496aa2c0/f49350f/alacritty_terminal/src/event.rs:465
at alacritty/src/main.rs:218
at alacritty/src/main.rs:111
11: std::rt::lang_start::{{closure}}
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/rt.rs:64
12: main
13: __libc_start_main
14: _start
at …/sysdeps/x86_64/start.S:120
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 24 (24 by maintainers)
@kchibisov I didn’t have
fontconfig-devel
installed when I compile alacritty. It’s fixed now, thanks!@kchibisov alacritty’s log:
strace: log.txt
I’m on X11
@stokhos Would you mind running
strace alacritty 2> log.txt
orstrace alacritty -vvv 2>> log.txt 1>>log.txt
? Better on wayland I guess, where it’s crashing.Your own configuration should be in
.config/fontconfig/
. Your system configuration should be in/etc/fonts
, however you can query all configs, that are in use/presented withfc-conflist
(+
- is used,-
- not in use). Could you try reading the output offc-list
, maybe it’s also throwing some errors here?