Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fonts rendering as square boxes #2628

Open
thatnerdjosh opened this issue Dec 29, 2019 · 20 comments
Open

Fonts rendering as square boxes #2628

thatnerdjosh opened this issue Dec 29, 2019 · 20 comments
Labels
desktop Desktop Application upstream An issue with a dependency that needs to get addressed upstream

Comments

@thatnerdjosh
Copy link

Not sure if this is a GTK issue of some sort but I am getting this issue in the file browser and the about screen... see the attached screenshot

2019-12-30-060408_1920x1080_scrot

@meacu1pa
Copy link

meacu1pa commented Jan 9, 2020

having the same issue with the snap version on Fedora 31

Update
starting Bitwarden via terminal throws 2x:
Gtk-Message: 17:51:44.424: Failed to load module "pk-gtk-module"

when file browser opens:
Gtk-Message: 17:52:30.530: GtkDialog mapped without a transient parent. This is discouraged.

Update
did a bit of research, still not sure what's the reason, but sudo dnf install PackageKit-gtk3-module didn't fix it - not sure how to proceed

@thatnerdjosh
Copy link
Author

If I remember correctly, this was because a missing font

@ghost
Copy link

ghost commented May 30, 2021

I have the same issue. Anyone knows which font is support by BitWarden?

@thatnerdjosh
Copy link
Author

Does it work if you install noto-fonts

@changemenemo
Copy link

changemenemo commented Jun 1, 2021

No it doesn't have under fedora 34.
And I would like to link my ticket to yours guys because I ve discussed this matter on the forum for snap rafters with the dev itself

bitwarden/desktop#906

The problem is still there in 1.26.5

@barnabuskev
Copy link

Bug there under snap version 1.26.5 linux mint

@Hinton
Copy link
Member

Hinton commented Aug 18, 2021

This issue seems related to https://forum.snapcraft.io/t/snapped-app-not-loading-fonts-on-fedora-and-arch/12484

Which suggests it's an upstream issue with snap, which might be fixed in core20. Unfortunately we depend on electron-builder to handle generation of snap packages for us, which is still using core18.

There are a few suggested workarounds and if someone has the opportunity it would be nice to check if those resolves the issue.

@Bolche
Copy link

Bolche commented Nov 30, 2021

For me, the workarounds shown have not solved the issue

@cnmicha
Copy link

cnmicha commented Mar 29, 2022

Opening a terminal, executing cd /var/lib/snapd/snap/bitwarden/current and then ./bitwarden works for me.

Here is a patched desktop entry file, place it at /home/$USER/.local/share/applications/bitwarden_bitwarden.desktop:

[Desktop Entry]
Version=1.1
Type=Application
Name=Bitwarden
GenericName=Password Manager
Comment=A secure and free password manager for all of your devices.
Icon=/var/lib/snapd/snap/bitwarden/current/meta/gui/icon.png
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/bitwarden_bitwarden.desktop ./bitwarden %U
Path=/var/lib/snapd/snap/bitwarden/current
Actions=
MimeType=x-scheme-handler/bitwarden;
Categories=Utility;
StartupWMClass=Bitwarden

This also made Bitwarden respect the OS theming settings (dark mode) as a cool side effect.

Bitwarden version 1.32.1

Source: https://forum.manjaro.org/t/advice-for-a-developer-on-how-to-fix-font-issues-with-snap/54299/3

@cnmicha
Copy link

cnmicha commented May 4, 2022

@Hinton Are there any news yet regarding the snap core version used by electron-builder?

@Hinton
Copy link
Member

Hinton commented May 5, 2022

@cnmicha not to my knowledge. electron-builder doesn't support specifying a core version.

@Hinton Hinton added upstream An issue with a dependency that needs to get addressed upstream desktop Desktop Application labels May 5, 2022
@Hinton Hinton transferred this issue from bitwarden/desktop May 5, 2022
@im007
Copy link

im007 commented Mar 5, 2023

Still an issue on Fedora 37 using KDE Plasma 5.27.2, workaround above did not work. Got the following errors:

(bitwarden:30986): Gtk-WARNING **: 19:14:10.432: Theme parsing error: gtk.css:3536:25: 'font-feature-settings' is not a valid property name
Gtk-Message: 19:14:10.445: Failed to load module "colorreload-gtk-module"
Gtk-Message: 19:14:10.445: Failed to load module "window-decorations-gtk-module"
Gtk-Message: 19:14:10.445: Failed to load module "appmenu-gtk-module"

@thatLeaflet
Copy link

thatLeaflet commented Mar 11, 2023

@cnmicha not to my knowledge. electron-builder doesn't support specifying a core version.

Based on the first bullet point of this page, it seems to be possible to change the core version. But I could be mistaken, I've never used election builder.

It would be nice to see Bitwarden update to core22, for both potential security and practical reasons (Bitwarden is the only snap I use that depends on core18).

@im007
Copy link

im007 commented Mar 12, 2023

I ended up switching to the AppImage version -- that works fine.

@kaincenteno
Copy link

Have only seen it when trying to delete a secret on the confirmation window

Screenshot from 2023-04-05 22-51-28

@bluppfisk
Copy link

If you've been messing around with removing font caches to no avail.. you may want to try the following (at least on Ubuntu). Go to settings / region & language / manage installed languages / pick a language / Apply System-Wide. I think my set-up was incomplete or mixed due to my installing an Chinese IME.

Rationale: due to some settings being set to Chinese, it was trying to pick a Chinese version of an installed font that either didn't exist or didn't provide the required glyphs.

@OnlyTuxUser
Copy link

Does it work if you install noto-fonts

THX
I had the same problem.
Installing noto-serif-fonts solve the problem.

@klondikemarlen
Copy link

I tried install the noto fonts, but to no avail. Installed via https://installati.one/install-fonts-noto-ubuntu-20-04/

@el95149
Copy link

el95149 commented Aug 26, 2023

Opening a terminal, executing cd /var/lib/snapd/snap/bitwarden/current and then ./bitwarden works for me.

Here is a patched desktop entry file, place it at /home/$USER/.local/share/applications/bitwarden_bitwarden.desktop:
..........

On KUbuntu 23.04 this worked by setting the work path property, in the desktop entry, to:

Path=/snap/bitwarden/current

Thank you very much!!!

@AdamVe
Copy link

AdamVe commented Jan 13, 2024

I have the same issue and nothing from this thread works for me :( I tried installing all fonts-noto or running from command line - still missing fonts in dialog. AppImage does not have this issue.

My installation:

Name       Version   Rev  Tracking       Publisher   Notes
bitwarden  2024.1.0  103  latest/stable  bitwarden✓  -

System:
Ubuntu 23.10

Running from terminal shows font related warnings:
bitwarden --trace-warnings

(bitwarden:71453): Gtk-WARNING **: 10:24:18.487: Theme parsing error: gtk.css:1422:23: 'font-feature-settings' is not a valid property name

(bitwarden:71453): Gtk-WARNING **: 10:24:18.489: Theme parsing error: gtk.css:3308:25: 'font-feature-settings' is not a valid property name

(bitwarden:71453): Gtk-WARNING **: 10:24:18.490: Theme parsing error: gtk.css:3770:23: 'font-feature-settings' is not a valid property name
(node:71453) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'init')
    at BiometricsService.<anonymous> (/snap/bitwarden/103/resources/app.asar/main.js:49684:55)
    at Generator.next (<anonymous>)
    at /snap/bitwarden/103/resources/app.asar/main.js:49650:71
    at new Promise (<anonymous>)
    at biometrics_service_awaiter (/snap/bitwarden/103/resources/app.asar/main.js:49646:12)
    at BiometricsService.init (/snap/bitwarden/103/resources/app.asar/main.js:49683:16)
    at Main.<anonymous> (/snap/bitwarden/103/resources/app.asar/main.js:55950:46)
    at Generator.next (<anonymous>)
    at fulfilled (/snap/bitwarden/103/resources/app.asar/main.js:55838:58)
    at emitUnhandledRejectionWarning (node:internal/process/promises:200:15)
    at processPromiseRejections (node:internal/process/promises:296:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:32)
(node:71453) TypeError: Cannot read properties of undefined (reading 'init')
    at BiometricsService.<anonymous> (/snap/bitwarden/103/resources/app.asar/main.js:49684:55)
    at Generator.next (<anonymous>)
    at /snap/bitwarden/103/resources/app.asar/main.js:49650:71
    at new Promise (<anonymous>)
    at biometrics_service_awaiter (/snap/bitwarden/103/resources/app.asar/main.js:49646:12)
    at BiometricsService.init (/snap/bitwarden/103/resources/app.asar/main.js:49683:16)
    at Main.<anonymous> (/snap/bitwarden/103/resources/app.asar/main.js:55950:46)
    at Generator.next (<anonymous>)
    at fulfilled (/snap/bitwarden/103/resources/app.asar/main.js:55838:58)

(bitwarden:71453): Gtk-WARNING **: 10:24:18.664: Theme parsing error: gtk.css:1422:23: 'font-feature-settings' is not a valid property name

(bitwarden:71453): Gtk-WARNING **: 10:24:18.667: Theme parsing error: gtk.css:3308:25: 'font-feature-settings' is not a valid property name

(bitwarden:71453): Gtk-WARNING **: 10:24:18.668: Theme parsing error: gtk.css:3770:23: 'font-feature-settings' is not a valid property name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop Desktop Application upstream An issue with a dependency that needs to get addressed upstream
Projects
None yet
Development

No branches or pull requests