You are not logged in.

#1 2020-12-25 01:05:47

kormpu
Member
Registered: 2020-08-18
Posts: 30

[SOLVED] Installation for specific font consistantly breaking

For whatever reason I have to reinstall siji-git frequently because polybar stops loading it. But after reinstalling it with yay it will work again.

Last edited by kormpu (2021-07-03 11:07:24)

Offline

#2 2020-12-25 07:55:29

patrickziegler
Member
From: ::1
Registered: 2018-11-02
Posts: 29
Website

Re: [SOLVED] Installation for specific font consistantly breaking

I have a similar issue with the `xorg-fonts-misc` package where the misc fixed font no longer shows up. But I found that the problem is not caused by the package or polybar, the font just stops being recognized by fontconfig (doesn't show up in `fc-list`)

The next time you have that issue, before reinstalling anything, can you confirm the following things (in that order)?

  • The package is still installed (`pacman -Qkk siji-git` finds the package and doesn't report any missing files)

  • The font doesn't show up in fontconfig (`fc-list | grep -i "siji"` doesn't print anything)

  • Rebuilding the fontconfig cache fixes things (Running `fc-cache -f -v`)

Last edited by patrickziegler (2020-12-25 07:56:21)

Offline

#3 2020-12-25 14:37:50

kormpu
Member
Registered: 2020-08-18
Posts: 30

Re: [SOLVED] Installation for specific font consistantly breaking

It does show up as still being there with 11 total files. But, it doesn't show up using fc-list.
Rebuilding the font cache does indeed fix it, I can only wonder why it is breaking in the first place though.

Offline

#4 2021-02-04 11:58:55

drrossum
Member
From: Chicago
Registered: 2009-02-24
Posts: 82

Re: [SOLVED] Installation for specific font consistantly breaking

I have been seeing this issue since 2020-10-27. It was triggered 10 times since that date. Not sure if this is helpful but the only systematic that I can see is that this hook was always executed before it breaks:
30-systemd-update.hook

Reinstalling the font package makes the problem go away.

Running the commands that are executed by the pacman hooks triggered when installing the package without touching the file timestamps does not help:
#/usr/bin/fc-cache -s
#/usr/bin/fc-cache-32 -s

I'm confident that using the -f flag to fc-cache will help, but I have not tried this out yet.

I will also be interested in knowing why the font drops from the cache.

Offline

#5 2021-02-04 12:04:22

patrickziegler
Member
From: ::1
Registered: 2018-11-02
Posts: 29
Website

Re: [SOLVED] Installation for specific font consistantly breaking

For what it's worth, I have not actually experienced this issue since I posted this here.

Offline

#6 2021-03-24 20:43:05

w4rum
Member
Registered: 2017-01-14
Posts: 7

Re: [SOLVED] Installation for specific font consistantly breaking

I have had the same problem on two different systems for quite a while now.

Rebuilding the font cache with the -f flag temporarily fixes the problem but it will break again on reboot.

Have you found a solution yet?

Offline

#7 2021-03-24 20:49:46

drrossum
Member
From: Chicago
Registered: 2009-02-24
Posts: 82

Re: [SOLVED] Installation for specific font consistantly breaking

I had junk in old font cache files in my home directory. I manually deleted all contents in: ~/.cache/fontconfig and ~/.fontconfig and recreated the caches using 'fc-cache -f' (without sudo).  After that the issue has not come back anymore.

I found this by looking at the output from 'fc-cache -v -f' and inspecting the contents of all directories listed there.

Hope this helps!

Last edited by drrossum (2021-12-20 08:44:12)

Offline

#8 2021-03-28 00:54:48

w4rum
Member
Registered: 2017-01-14
Posts: 7

Re: [SOLVED] Installation for specific font consistantly breaking

drrossum wrote:

I manually deleted all contents in: ~/.cache/fontconfig and ~/.fontconfig and recreated the caches using 'fn-cache -f' (without sudo).

That actually seems to have solved the issue! Thank you so much, this was bothering me for over a month now.

Since this happened to me on two different systems at roughly the same time, I assume this was caused by an update. However, if that's the case then I don't quite get how this isn't a more popular issue. But anyway, seems to be fixed, cheers.

Offline

#9 2021-07-03 11:06:08

kormpu
Member
Registered: 2020-08-18
Posts: 30

Re: [SOLVED] Installation for specific font consistantly breaking

Good to hear you guys are no longer having this problem either. I'll go ahead and mark as solved.

Last edited by kormpu (2021-07-03 11:06:19)

Offline

Board footer

Powered by FluxBB