Figma-Linux / figma-linux-font-helper

Font Helper for Figma for Linux x64 platform
GNU General Public License v2.0
409 stars 34 forks source link

figma-linux-font-helper not start anymore #27

Open diegosomar opened 2 years ago

diegosomar commented 2 years ago

Hi! Yesterday I opened Figma (browser) and "ARIAL" was no longer available. The same occours with all my local fonts. I tested in 3 browsers: MS Edge, Google Chrome and Firefox.

Local fonts were on the service's list but the status was 404 (on each local font). The fonthelper.service was running.

Some hours ago, the problem was resolved. I thought it was some bug of Figma itself and it was fixed on their server. But today, the fonthelper.service not start anymore.

I use the fonthelper.service up to 2 years. This problem suddenly occours.

My Service Log (after reboot the pc)

> sudo systemctl status fonthelper.service
● fonthelper.service - Font Helper for Figma
     Loaded: loaded (/lib/systemd/system/fonthelper.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2022-05-04 11:14:22 -03; 49s ago
    Process: 1340 ExecStart=/opt/FontHelper/fonthelper (code=exited, status=101)
   Main PID: 1340 (code=exited, status=101)

May 04 11:14:22 diegoramosNTBK fonthelper[1340]: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("expected `,` or `]`", line: 7, column: 5)', src/libcore/result.rs:1165:5
May 04 11:14:22 diegoramosNTBK fonthelper[1340]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
May 04 11:14:22 diegoramosNTBK systemd[1]: fonthelper.service: Main process exited, code=exited, status=101/n/a
May 04 11:14:22 diegoramosNTBK systemd[1]: fonthelper.service: Failed with result 'exit-code'.
May 04 11:14:22 diegoramosNTBK systemd[1]: fonthelper.service: Scheduled restart job, restart counter is at 5.
May 04 11:14:22 diegoramosNTBK systemd[1]: Stopped Font Helper for Figma.
May 04 11:14:22 diegoramosNTBK systemd[1]: fonthelper.service: Start request repeated too quickly.
May 04 11:14:22 diegoramosNTBK systemd[1]: fonthelper.service: Failed with result 'exit-code'.
May 04 11:14:22 diegoramosNTBK systemd[1]: Failed to start Font Helper for Figma.
> sudo systemctl start fonthelper.service
> sudo systemctl status fonthelper.service
● fonthelper.service - Font Helper for Figma
     Loaded: loaded (/lib/systemd/system/fonthelper.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2022-05-04 11:15:32 -03; 3s ago
    Process: 4585 ExecStart=/opt/FontHelper/fonthelper (code=exited, status=101)
   Main PID: 4585 (code=exited, status=101)

May 04 11:15:32 diegoramosNTBK systemd[1]: fonthelper.service: Scheduled restart job, restart counter is at 5.
May 04 11:15:32 diegoramosNTBK systemd[1]: Stopped Font Helper for Figma.
May 04 11:15:32 diegoramosNTBK systemd[1]: fonthelper.service: Start request repeated too quickly.
May 04 11:15:32 diegoramosNTBK systemd[1]: fonthelper.service: Failed with result 'exit-code'.
May 04 11:15:32 diegoramosNTBK systemd[1]: Failed to start Font Helper for Figma.

My Environment

OS: Ubuntu 20.04.4 LTS x86_64
Kernel: 5.13.0-40-generic 
DE: GNOME

> /opt/FontHelper/fonthelper -v
0.1.5

Does anyone know what could have happened to the service not working anymore?

marchellodev commented 2 years ago

In my case the problem was due to a missed comma in the config file

divine-comedian commented 7 months ago

I had a similar issue - my solution was a clean uninstall then reinstall - since there is no uninstall script it's a bit tricky but I uninstalled using the commands suggested in this comment - https://github.com/Figma-Linux/figma-linux-font-helper/issues/11#issuecomment-1670917457

I reinstalled again from curl and now it works!