| Summary: | Fonts turned into boxes due to bad cache | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Tobias G. <kde-bugzilla.oink169> |
| Component: | general | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | normal | CC: | kde, kdedev, nate, xaver.hugl |
| Priority: | NOR | ||
| Version First Reported In: | 6.3.5 | ||
| Target Milestone: | 1.0 | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | No text, only boxes | ||
|
Description
Tobias G.
2025-05-20 09:12:05 UTC
Nope, the reddit issue is soething else, I don't know how to fix it :D It looks like the fonts are missing, but I can't check what font is selected/available because the font menu in system settings is also just boxes that I can't seem to copy. In .config/kcmfonts the only content is [General] forceFontDPI=0 I fixed the issue. :) Turns out my font cache was broken as it seems for some reason. When I ran fc-list | head it returned nothing at all. So I did: rm -rf ~/.cache/fontconfig sudo rm -rf /var/cache/fontconfig And to rebuild the cache: sudo fc-cache -r -v fc-cache -r -v I rebuilt it for root and for my local user, as I guess both are relevant? Anyway, now it's working again after logging out and back in yey! I can use my notebook again :) I leave this open as I guess that Plasma should _try_ to detect this situation and handle it itself - being left with empty boxes is NOT a great experience and rendered me almost unable to do anything. I'm glad to hear you found the root cause of the problem. I'm not seeing this in OpenSuse Tumbleweed or on Solus git-master. I'll let developers more versed in the font cache take a further look. (In reply to TraceyC from comment #4) > I'm glad to hear you found the root cause of the problem. > > I'm not seeing this in OpenSuse Tumbleweed or on Solus git-master. I'll let > developers more versed in the font cache take a further look. Hi, it happened to me again. I setup a distrobox with virt-manager following the official guide: https://github.com/89luca89/distrobox/blob/main/docs/posts/run_libvirt_in_distrobox.md Since this is the second time I've setup this distrobox and the second time this error occurs, I feel like they are linked in some way. Thanks for the additional information. At least there's a way this can be reproduced It seems like we should be something detecting an invalid cache and clearing it The Fontconfig cache isn't KDE's responsibility; this should be reported to the Fontconfig folks so they can look into it. Cache invalidation is one of those hard problems to solve. |