vscodium: Missing fonts in snap package

All system dialogs in version 1.46.0 from snap package are rendered with no font glyphs. Folder selection, about, etc.

image

[main 2020-06-17T19:55:01.882Z] menubarService#updateMenubar 1
[main 2020-06-17T19:55:06.916Z] menubar#runActionInRenderer { type: 'commandId', commandId: 'workbench.action.showAboutDialog' }
[225991:0617/225506.922960:INFO:CONSOLE(1669)] "%cTRACE color: #888 CommandService#executeCommand workbench.action.showAboutDialog", source: file:///var/lib/snapd/snap/codium/42/usr/share/codium/resources/app/out/vs/workbench/workbench.desktop.main.js (1669)
Gtk-Message: 22:55:06.940: GtkDialog mapped without a transient parent. This is discouraged.

This is Fedora 32 with GNOME on Wayland,

Please confirm that this problem is VSCodium-specific

  • This bug doesn’t happen if I use Microsoft’s Visual Studio Code. It only happens in VSCodium.

Please confirm that the issue/resolution isn’t already documented

To Reproduce Steps to reproduce the behavior:

  1. snap install codium
  2. codium
  3. Help -> About

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 2
  • Comments: 18 (2 by maintainers)

Most upvoted comments

The following commands should fix the issue:

rm -rf ~/.cache/fontconfig 
rm -rf ~/snap/codium/common/.cache
fc-cache -r

From the issue mentioned by alexanderadam in Fonts in native components are not loaded in Snap #663 // I tried clearing the font cache (rm -rf ~/.cache/fontconfig; rm -rf ~/snap/superproductivity/common/.cache/fontconfig/; fc-cache -r -v) since this reminded me on the same issue of other electron apps (see this, this or this) and it helped.

I’m sure this is this systematic font issue of the current Snap version (see this thread) but I guess this would also be solvable via non native dialogues if that’s an alternative to you. //

Clearing the font cache worked for me !!

Hey, I’ve just encountered the same issue. Snap 1.73.1.22314 on PopOS

I found this thread and used this from @daiyam

rm -rf ~/.cache/fontconfig 
rm -rf ~/snap/codium/common/.cache
fc-cache -r

And it worked. But after a while it happened again… The possibility is that it happened, because I’ve cleaned also my $HOME temp folder, so maybe because of that. I cannot reproduce, but I will have an eye if it will come back.

Interesting for me is what @constantlam wrote:

Removing this variable truetype font file solved the dialog box problem. It appears that the font cache with a variable font conflicts with VS Codium.

But I have so many fonts that I cannot even check if it’s true. And I need them, so it will not work for me.

This error is somehow related to electron apps integration. The same occours in slack and MS Teams.

For the snap on Fedora 35 it didn’t help. @freeman-h what OS do you use?