Describe the bug
After upgrade, fontconfig fails and various programs stop working (fx kitty / alacritty).
It seems that there's a problem with the fonts.conf file.
To Reproduce
Steps to reproduce the behavior:
Alacritty error:
Fontconfig error: Cannot load config file from /etc/fonts/2.11/fonts.conf
cc @jtojnar
Oh hooray, did we finally update our fontconfig?? Thank you! :grin:
@heapslip: are your alacritty/etc also built from nightly, or are they from elsewhere (your user profile, for example)?
Reason I ask is because, well in words from a comment on the PR upgrading fontconfig (#73795):
Only if we care for people using apps build against Nixpkgs’s fontconfig 2.12 on NixOS system with fontconfig 2.14.
Which is to say, if you're on NixOS with the new fontconfig ("nightly"), then apps from nixpkgs using older fontconfig will have this problem (I believe).
This may happen if your terminals aren't/weren't built from nixpkgs with the new fontconfig...
As for what NixOS/Nixpkgs should do about this ("how much is this a problem" / "can we fix it easily or at least smooth the transition of users in similar situations?") I second the cc to @jtojnar who probably has the best understanding of the situation and possibilities.
Meanwhile, confirming that the cause of the issue would be good (see if it is indeed using apps from nixpkgs before the bump).
Something like the following should do the trick:
nix-store -qR $(readlink -f $(which alacritty))|grep fontconfig
EDIT: @jtojnar's github status suggests he's AFK for the week or so, FYI :)
This may happen if your terminals aren't/weren't built from nixpkgs with the new fontconfig...
Meanwhile, confirming that the cause of the issue would be good (see if it is indeed using apps from nixpkgs before the bump).
Something like the following should do the trick:
nix-store -qR $(readlink -f $(which alacritty))|grep fontconfig
I second this. That was my first thought, actually. (and what is nightly in this situation, do we mean nixos-unstable?)
The metadata section of this issue template being filled out would be very helpful @heapslip .
I'm having the same issue as @heapslip here. Apps like kitty
and qbittorrent
won't run because some error in font.conf
. When I checked what version of fontconfig
qbit was using I found this
➜ ~ nix-store -qR (readlink -f (which qbittorrent))|grep fontconfig
/nix/store/46k2i3j833f9krycvvhf3b8lvsbrqxhh-fontconfig-2.12.6
/nix/store/wrrb96fwf00mfv2fg9zg5w4jvnq58cn1-fontconfig-2.12.6-lib
Which is weird cause I use nixos-unstable
for most of my packages, however I found out that qbit was also installed with nix-env
so I removed it and checked again.
➜ ~ nix-store -qR (readlink -f (which qbittorrent))|grep fontconfig
/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92
/nix/store/7fjg1l821gma1c8vzi91gia7rwpdkd4i-fontconfig-2.13.92-lib
Now qbit works normally. However kitty
is still using the older 2.12.6
version even on the nixos-unstable
channel so perhaps the issue is that some packages, even on nixos-unstable
are using the old version of fontconfig
.
EDIT: Ok, seems like deleting everything from the user environment nix-env -e '*'
and then rebuilding nixos fixed the issue. Even though some apps like kitty
still point to fontconfig-2.12.6
.
Oh hooray, did we finally update our fontconfig?? Thank you!
@heapslip: are your alacritty/etc also built from nightly, or are they from elsewhere (your user profile, for example)?
Reason I ask is because, well in words from a comment on the PR upgrading fontconfig (#73795):
Only if we care for people using apps build against Nixpkgs’s fontconfig 2.12 on NixOS system with fontconfig 2.14.
Which is to say, if you're on NixOS with the new fontconfig ("nightly"), then apps from nixpkgs using older fontconfig will have this problem (I believe).
This may happen if your terminals aren't/weren't built from nixpkgs with the new fontconfig...
As for what NixOS/Nixpkgs should do about this ("how much is this a problem" / "can we fix it easily or at least smooth the transition of users in similar situations?") I second the cc to @jtojnar who probably has the best understanding of the situation and possibilities.
Meanwhile, confirming that the cause of the issue would be good (see if it is indeed using apps from nixpkgs before the bump).
Something like the following should do the trick:
nix-store -qR $(readlink -f $(which alacritty))|grep fontconfig
EDIT: @jtojnar's github status suggests he's AFK for the week or so, FYI :)
Thanks for the reply! Sorry for the delay and not filling the template appropriately.
Everything was installed from unstable in my case, will try to switch back to unstable and test again / provide more information today.
Looking at the log #94282, it seems there has been a backwards incompatibility after all. I missed that the newly added <description>
element can contain a domain
attribute. Will need to see if this is the same issue.
Looking at the log #94282, it seems there has been a backwards incompatibility after all. I missed that the newly added
<description>
element can contain adomain
attribute. Will need to see if this is the same issue.
I think, you are on point, this is what firefox give me when it crashes, since upgrade yesterday:)
$ firefox
Fontconfig warning: "/etc/fonts/2.11/fonts.conf", line 5: unknown element "description"
Fontconfig error: "/etc/fonts/2.11/fonts.conf", line 5: invalid attribute 'domain'
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
... many fontconfig warrnigs/errors (unknown element "description") ...
Segmentation fault (core dumped)
Full error: https://pastebin.com/72cw68gH
Related alacritty log:
Fontconfig warning: "/etc/fonts/2.11/fonts.conf", line 5: unknown element "description"
Fontconfig error: "/etc/fonts/2.11/fonts.conf", line 5: invalid attribute 'domain'
Fontconfig warning: "/etc/fonts/2.11/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
Fontconfig error: Cannot load config file from /etc/fonts/2.11/fonts.conf
Related kitty log:
Fontconfig warning: "/etc/fonts/2.11/fonts.conf", line 5: unknown element "description"
Fontconfig error: "/etc/fonts/2.11/fonts.conf", line 5: invalid attribute 'domain'
Fontconfig warning: "/etc/fonts/2.11/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
Fontconfig error: Cannot load config file from /etc/fonts/2.11/fonts.conf
Fontconfig warning: FcPattern object weight does not accept value [50 200)
[217 15:47:47.041835] Traceback (most recent call last):
File "/nix/store/90diiavvswg3p4lbqw75lv18c4kxl03p-kitty-0.17.1/bin/../lib/kitty/kitty/main.py", line 322, in main
_main()
File "/nix/store/90diiavvswg3p4lbqw75lv18c4kxl03p-kitty-0.17.1/bin/../lib/kitty/kitty/main.py", line 315, in _main
run_app(opts, cli_opts, bad_lines)
File "/nix/store/90diiavvswg3p4lbqw75lv18c4kxl03p-kitty-0.17.1/bin/../lib/kitty/kitty/main.py", line 156, in __call__
set_font_family(opts, debug_font_matching=args.debug_font_fallback)
File "/nix/store/90diiavvswg3p4lbqw75lv18c4kxl03p-kitty-0.17.1/bin/../lib/kitty/kitty/fonts/render.py", line 109, in set_font_family
font_map = get_font_files(opts)
File "/nix/store/90diiavvswg3p4lbqw75lv18c4kxl03p-kitty-0.17.1/bin/../lib/kitty/kitty/fonts/render.py", line 37, in get_font_files
return get_font_files_fontconfig(opts)
File "/nix/store/90diiavvswg3p4lbqw75lv18c4kxl03p-kitty-0.17.1/bin/../lib/kitty/kitty/fonts/fontconfig.py", line 121, in get_font_files
font = find_best_match(rf, bold, italic)
File "/nix/store/90diiavvswg3p4lbqw75lv18c4kxl03p-kitty-0.17.1/bin/../lib/kitty/kitty/fonts/fontconfig.py", line 74, in find_best_match
font_map = all_fonts_map(monospaced)
File "/nix/store/90diiavvswg3p4lbqw75lv18c4kxl03p-kitty-0.17.1/bin/../lib/kitty/kitty/fonts/fontconfig.py", line 44, in all_fonts_map
ans = fc_list(FC_DUAL) + fc_list(FC_MONO)
ValueError: Failed to create fontconfig font set
I tried removing the domain
argument using
--- a/nixos/modules/config/fonts/fontconfig.nix
+++ b/nixos/modules/config/fonts/fontconfig.nix
@@ -32,7 +32,12 @@ let
# version is used for configuration folder name, /etc/fonts/VERSION/
# note: format differs from supportVersion and can not be used with makeCacheConf
latestVersion = pkgs.fontconfig.configVersion;
- latestPkg = pkgs.fontconfig;
+ latestPkg = pkgs.fontconfig.overrideAttrs (attrs: {
+ postFixup = (attrs.postFixup or "") + ''
+ # Remove localization domain for backwards compatibility with fontconfig 2.12
+ substituteInPlace $out/etc/fonts/fonts.conf --replace ' domain="fontconfig-conf"' ""
+ '';
+ });
# supported version fonts.conf
supportFontsConf = pkgs.makeFontsConf { fontconfig = supportPkg; fontDirectories = config.fonts.fonts; };
but Kitty built against old fontconfig still does not start:
Fontconfig warning: "/etc/fonts/2.11/fonts.conf", line 5: unknown element "description"
Fontconfig warning: "/etc/fonts/2.11/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/31sgkzb3x9r20p83xndid2ld64jckg8z-fontconfig-2.13.92/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/31sgkzb3x9r20p83xndid2ld64jckg8z-fontconfig-2.13.92/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/31sgkzb3x9r20p83xndid2ld64jckg8z-fontconfig-2.13.92/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/31sgkzb3x9r20p83xndid2ld64jckg8z-fontconfig-2.13.92/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/31sgkzb3x9r20p83xndid2ld64jckg8z-fontconfig-2.13.92/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/31sgkzb3x9r20p83xndid2ld64jckg8z-fontconfig-2.13.92/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/31sgkzb3x9r20p83xndid2ld64jckg8z-fontconfig-2.13.92/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/31sgkzb3x9r20p83xndid2ld64jckg8z-fontconfig-2.13.92/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/31sgkzb3x9r20p83xndid2ld64jckg8z-fontconfig-2.13.92/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/31sgkzb3x9r20p83xndid2ld64jckg8z-fontconfig-2.13.92/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/31sgkzb3x9r20p83xndid2ld64jckg8z-fontconfig-2.13.92/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/31sgkzb3x9r20p83xndid2ld64jckg8z-fontconfig-2.13.92/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
[217 14:49:33.975383] Traceback (most recent call last):
File "/nix/store/51ixfggblf51y0hx59yh0dch30jd7gcg-kitty-0.18.1/bin/../lib/kitty/kitty/main.py", line 343, in main
_main()
File "/nix/store/51ixfggblf51y0hx59yh0dch30jd7gcg-kitty-0.18.1/bin/../lib/kitty/kitty/main.py", line 336, in _main
run_app(opts, cli_opts, bad_lines)
File "/nix/store/51ixfggblf51y0hx59yh0dch30jd7gcg-kitty-0.18.1/bin/../lib/kitty/kitty/main.py", line 156, in __call__
set_font_family(opts, debug_font_matching=args.debug_font_fallback)
File "/nix/store/51ixfggblf51y0hx59yh0dch30jd7gcg-kitty-0.18.1/bin/../lib/kitty/kitty/fonts/render.py", line 181, in set_font_family
font_map = get_font_files(opts)
File "/nix/store/51ixfggblf51y0hx59yh0dch30jd7gcg-kitty-0.18.1/bin/../lib/kitty/kitty/fonts/render.py", line 39, in get_font_files
return get_font_files_fontconfig(opts)
File "/nix/store/51ixfggblf51y0hx59yh0dch30jd7gcg-kitty-0.18.1/bin/../lib/kitty/kitty/fonts/fontconfig.py", line 123, in get_font_files
font = find_best_matc/nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/49-sansserif.confh(rf, bold, italic)
File "/nix/store/51ixfggblf51y0hx59yh0dch30jd7gcg-kitty-0.18.1/bin/../lib/kitty/kitty/fonts/fontconfig.py", line 93, in find_best_match
possibility = fc_match(family, False, False, spacing)
File "/nix/store/51ixfggblf51y0hx59yh0dch30jd7gcg-kitty-0.18.1/bin/../lib/kitty/kitty/fonts/fontconfig.py", line 69, in fc_match
return fc_match_impl(family, bold, italic, spacing)
KeyError: 'FcFontMatch() failed'
Removing the description
s altogether
--- a/nixos/modules/config/fonts/fontconfig.nix
+++ b/nixos/modules/config/fonts/fontconfig.nix
@@ -32,7 +32,17 @@ let
# version is used for configuration folder name, /etc/fonts/VERSION/
# note: format differs from supportVersion and can not be used with makeCacheConf
latestVersion = pkgs.fontconfig.configVersion;
- latestPkg = pkgs.fontconfig;
+ latestPkg = pkgs.fontconfig.overrideAttrs (attrs: {
+ postFixup = (attrs.postFixup or "") + ''
+ # Remove localization domain for backwards compatibility with fontconfig 2.12
+ substituteInPlace $out/etc/fonts/fonts.conf --replace ' domain="fontconfig-conf"' ""
+
+ # Not enough, so let’s try to remove description as well.
+ for f in $(find $out/etc -name '*.conf'); do
+ sed -Ei 's@<description>.+</description>@@g' "$f"
+ done
+ '';
+ });
# supported version fonts.conf
supportFontsConf = pkgs.makeFontsConf { fontconfig = supportPkg; fontDirectories = config.fonts.fonts; };
gets rid of the warnings but the crash still persists.
Running system with fontconfig 2.13.92. Compare fontconfig 2.12.6 from 5717d9d2f7ca0662291910c52f1d7b95b568fec2:
$ env FC_DEBUG=1024 /nix/store/ljsj10jvi6460aqi13v12lnfa6ad8spl-fontconfig-2.12.6-bin/bin/fc-match mono
FC_DEBUG=1024
Loading config file from /etc/fonts/2.11/fonts.conf
Scanning config dir /etc/fonts/2.11/conf.d
Loading config file from /etc/fonts/2.11/conf.d/00-nixos-cache.conf
Loading config file from /etc/fonts/2.11/conf.d/10-nixos-rendering.conf
Loading config file from /etc/fonts/2.11/conf.d/50-user.conf
Scanning config dir /home/jtojnar/.config/fontconfig/conf.d
Loading config file from /home/jtojnar/.config/fontconfig/conf.d/78-Reject.conf
Loading config file from /etc/fonts/2.11/conf.d/52-nixos-default-fonts.conf
Loading config file from /etc/fonts/2.11/conf.d/53-nixos-reject-type1.conf
Loading config file from /etc/fonts/2.11/conf.d/53-no-bitmaps.conf
Scanning config dir /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/10-hinting-slight.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/10-scale-bitmap-fonts.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/20-unhint-small-vera.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/30-metric-aliases.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/40-nonlatin.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/45-generic.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/45-latin.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/49-sansserif.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/51-local.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/60-generic.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/60-latin.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/65-fonts-persian.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/65-nonlatin.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/69-unifont.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/80-delicious.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/90-synthetic.conf
with fontconfig 2.13.92 from 840c782d507d60aaa49aa9e3f6d0b0e780912742:
```ShellSession
$ env FC_DEBUG=1024 fc-match mono
FC_DEBUG=1024
Loading config file from /etc/fonts/2.11/fonts.conf
Scanning config dir /etc/fonts/2.11/conf.d
Loading config file from /etc/fonts/2.11/conf.d/00-nixos-cache.conf
Loading config file from /etc/fonts/2.11/conf.d/00-nixos-cache.conf done
Loading config file from /etc/fonts/2.11/conf.d/10-nixos-rendering.conf
Loading config file from /etc/fonts/2.11/conf.d/10-nixos-rendering.conf done
Loading config file from /etc/fonts/2.11/conf.d/50-user.conf
Scanning config dir /home/jtojnar/.config/fontconfig/conf.d
Loading config file from /home/jtojnar/.config/fontconfig/conf.d/78-Reject.conf
Loading config file from /home/jtojnar/.config/fontconfig/conf.d/78-Reject.conf done
Loading config file from /etc/fonts/2.11/conf.d/50-user.conf done
Loading config file from /etc/fonts/2.11/conf.d/52-nixos-default-fonts.conf
Loading config file from /etc/fonts/2.11/conf.d/52-nixos-default-fonts.conf done
Loading config file from /etc/fonts/2.11/conf.d/53-nixos-reject-type1.conf
Loading config file from /etc/fonts/2.11/conf.d/53-nixos-reject-type1.conf done
Loading config file from /etc/fonts/2.11/conf.d/53-no-bitmaps.conf
Loading config file from /etc/fonts/2.11/conf.d/53-no-bitmaps.conf done
Scanning config dir /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/10-hinting-slight.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/10-hinting-slight.conf done
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/10-scale-bitmap-fonts.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/10-scale-bitmap-fonts.conf done
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/20-unhint-small-vera.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/20-unhint-small-vera.conf done
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/30-metric-aliases.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/30-metric-aliases.conf done
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/40-nonlatin.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/40-nonlatin.conf done
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/45-generic.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/45-generic.conf done
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/45-latin.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/45-latin.conf done
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/49-sansserif.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/49-sansserif.conf done
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/51-local.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/51-local.conf done
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/60-generic.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/60-generic.conf done
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/60-latin.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/60-latin.conf done
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/65-fonts-persian.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/65-fonts-persian.conf done
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/65-nonlatin.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/65-nonlatin.conf done
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/69-unifont.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/69-unifont.conf done
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/80-delicious.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/80-delicious.conf done
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/90-synthetic.conf
Loading config file from /nix/store/8zs8hlgbv9xv4i64pnr5905kq3j9lpm3-fontconfig-2.13.92/etc/fonts/conf.d/90-synthetic.conf done
Loading config file from /etc/fonts/2.11/fonts.conf done
Scanning config dir /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/05-reset-dirs-sample.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/05-reset-dirs-sample.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/09-autohint-if-no-hinting.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/09-autohint-if-no-hinting.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-autohint.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-autohint.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-hinting-full.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-hinting-full.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-hinting-medium.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-hinting-medium.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-hinting-none.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-hinting-none.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-hinting-slight.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-hinting-slight.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-no-sub-pixel.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-no-sub-pixel.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-sub-pixel-bgr.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-sub-pixel-bgr.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-sub-pixel-vbgr.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-sub-pixel-vbgr.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-sub-pixel-vrgb.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-sub-pixel-vrgb.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-unhinted.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/10-unhinted.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/11-lcdfilter-default.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/11-lcdfilter-default.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/11-lcdfilter-legacy.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/11-lcdfilter-legacy.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/11-lcdfilter-light.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/11-lcdfilter-light.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/20-unhint-small-vera.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/20-unhint-small-vera.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/25-unhint-nonlatin.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/25-unhint-nonlatin.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/30-metric-aliases.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/30-metric-aliases.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/35-lang-normalize.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/35-lang-normalize.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/40-nonlatin.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/40-nonlatin.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/45-generic.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/45-generic.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/45-latin.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/45-latin.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/49-sansserif.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/49-sansserif.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/50-user.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/50-user.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/51-local.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/51-local.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/60-generic.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/60-generic.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/60-latin.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/60-latin.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/65-fonts-persian.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/65-fonts-persian.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/65-khmer.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/65-khmer.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/65-nonlatin.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/65-nonlatin.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/69-unifont.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/69-unifont.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/70-no-bitmaps.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/70-no-bitmaps.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/70-yes-bitmaps.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/70-yes-bitmaps.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/80-delicious.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/80-delicious.conf done
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/90-synthetic.conf
Scanning config file from /nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/share/fontconfig/conf.avail/90-synthetic.conf done
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
Looks like the errors are actually inconsequential and the issue is actually in missing font caches:
$ /nix/store/ljsj10jvi6460aqi13v12lnfa6ad8spl-fontconfig-2.12.6-bin/bin/fc-match -s mono
Fontconfig warning: "/etc/fonts/2.11/fonts.conf", line 5: unknown element "description"
Fontconfig error: "/etc/fonts/2.11/fonts.conf", line 5: invalid attribute 'domain'
Fontconfig warning: "/etc/fonts/2.11/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
Fontconfig error: Cannot load config file from /etc/fonts/2.11/fonts.conf
No fonts installed on the system
$ /nix/store/ljsj10jvi6460aqi13v12lnfa6ad8spl-fontconfig-2.12.6-bin/bin/fc-cache -f
Fontconfig warning: "/etc/fonts/2.11/fonts.conf", line 5: unknown element "description"
Fontconfig error: "/etc/fonts/2.11/fonts.conf", line 5: invalid attribute 'domain'
Fontconfig warning: "/etc/fonts/2.11/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
Fontconfig error: Cannot load config file from /etc/fonts/2.11/fonts.conf
$ /nix/store/ljsj10jvi6460aqi13v12lnfa6ad8spl-fontconfig-2.12.6-bin/bin/fc-match -s mono
Fontconfig warning: "/etc/fonts/2.11/fonts.conf", line 5: unknown element "description"
Fontconfig error: "/etc/fonts/2.11/fonts.conf", line 5: invalid attribute 'domain'
Fontconfig warning: "/etc/fonts/2.11/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/nix/store/whh21mr17whyq1mm2h7lzj98ixi4w3ps-fontconfig-2.13.92/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
Fontconfig error: Cannot load config file from /etc/fonts/2.11/fonts.conf
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
The NixOS module generates caches for the latest fontconfig but those are not compatible with old fontconfig so it does not use them.
We would either need to add cache generation for fontconfig 2.12 or leave it up for people to generate them themselves.
I tried to rebuild the font cache but had no success.
@heapslip Did you rebuild it with the fc-cache from the old fontconfig?
@heapslip Did you rebuild it with the fc-cache from the old fontconfig?
Any tips on how to do that would be much appreciated!
Kind of new here. Couldn't find anything online.
I did: $ ls /nix/store/ | grep fontconfig-2.12.6-bin
-> it returned 7 versions of /nix/store/[HASH_HERE]/fontconfig-2.12.6-bin
Then, with several of them, tried $ /nix/store/[HASH_HERE]/fontconfig-2.12.6-bin/bin/fc-cache -fv
Firefox still crashes on start. I'm clearly missing something...
You can use fontconfig from older nixpkgs commit: nix run -f https://github.com/NixOS/nixpkgs/archive/5717d9d2f7ca0662291910c52f1d7b95b568fec2.tar.gz fontconfig -c fc-cache -f
.
But if Firefox still crashes, something else must be going on.
You can use fontconfig from older nixpkgs commit:
nix run -f https://github.com/NixOS/nixpkgs/archive/5717d9d2f7ca0662291910c52f1d7b95b568fec2.tar.gz fontconfig -c fc-cache -f
.But if Firefox still crashes, something else must be going on.
Thank you very much! It worked indeed.
You can use fontconfig from older nixpkgs commit:
nix run -f https://github.com/NixOS/nixpkgs/archive/5717d9d2f7ca0662291910c52f1d7b95b568fec2.tar.gz fontconfig -c fc-cache -f
.But if Firefox still crashes, something else must be going on.
It all works fine now, thank you for your effort!
Should I close the issue?
I would leave it open for visibility. We also need to decide if we consider this an issue that should be fixed in NixOS by generating a cache for old fontconfig too.
Same issue with spectacle
listing
[andrei@nixos:~]$ spectacle
Fontconfig warning: "/etc/fonts/2.11/fonts.conf", line 5: unknown element "description"
Fontconfig error: "/etc/fonts/2.11/fonts.conf", line 5: invalid attribute 'domain'
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
Fontconfig error: Cannot load config file from /etc/fonts/2.11/fonts.conf
Fontconfig warning: FcPattern object weight does not accept value [50 200)
Segmentation fault (стек памяти сброшен на диск)
[andrei@nixos:~]$ ^C
We also need to decide if we consider this an issue that should be fixed in NixOS by generating a cache for old fontconfig too.
This would be very nice. It would restore the ability to run most packages from one version of NixOS on another version of NixOS, which is helpful when hacking on Nixpkgs using nixos-unstable while being able to temporarily pull packages from stable when unstable breaks.
Hmm, it seems like the application I was using suddenly works, even though a version built from this same commit of Nixpkgs previously crashed. This smells like mutation on my end (my package possibly mutated the filesystem to now work)
Is this issue still happening? In my case I have errors on firefox and filezilla:
`[wjjunyor@T101:~]$ firefox
Fontconfig warning: "/etc/fonts/2.11/fonts.conf", line 5: unknown element "description"
Fontconfig error: "/etc/fonts/2.11/fonts.conf", line 5: invalid attribute 'domain'
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
Fontconfig error: Cannot load config file from /etc/fonts/2.11/fonts.conf
Fontconfig warning: "/etc/fonts/2.11/fonts.conf", line 5: unknown element "description"
Fontconfig error: "/etc/fonts/2.11/fonts.conf", line 5: invalid attribute 'domain'
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
Fontconfig error: Cannot load config file from /etc/fonts/2.11/fonts.conf
[Parent 32679, Main Thread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-72.0.2/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 23
[Parent 32679, Main Thread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-72.0.2/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 23
[Parent 32679, Main Thread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-72.0.2/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 23
[Parent 32679, Main Thread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-72.0.2/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 23
[Parent 32679, Main Thread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-72.0.2/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 23
Segmentation fault (imagem do núcleo gravada)`
[wjjunyor@T101:~]$ filezilla
Reading locale option from /home/wjjunyor/.config/filezilla/filezilla.xml
Fontconfig warning: "/etc/fonts/2.11/fonts.conf", line 5: unknown element "description"
Fontconfig error: "/etc/fonts/2.11/fonts.conf", line 5: invalid attribute 'domain'
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
Fontconfig error: Cannot load config file from /etc/fonts/2.11/fonts.conf
Fontconfig warning: FcPattern object weight does not accept value [50 200)
Segmentation fault (imagem do núcleo gravada)
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/thunderbird-crash-after-upgrade-to-20-09/9915/4
Most helpful comment
You can use fontconfig from older nixpkgs commit:
nix run -f https://github.com/NixOS/nixpkgs/archive/5717d9d2f7ca0662291910c52f1d7b95b568fec2.tar.gz fontconfig -c fc-cache -f
.But if Firefox still crashes, something else must be going on.