figma-linux icon indicating copy to clipboard operation
figma-linux copied to clipboard

Figma canvas renders completely blank

Open azuredusk10 opened this issue 1 year ago • 19 comments

  • App version: 0.11.3

  • The output of screenfetch: OS: Fedora 39 ThirtyNine Kernel: x86_64 Linux 6.6.14-200.fc39.x86_64 Uptime: 57m Packages: 3146 Shell: bash 5.2.26 Resolution: 3840x2160 DE: GNOME 45.2 WM: Mutter WM Theme: Adwaita GTK Theme: Adwaita [GTK2/3] Icon Theme: Adwaita Font: Cantarell 11 Disk: 1.3T / 1.9T (68%) CPU: 12th Gen Intel Core i5-1240P @ 16x 4.4GHz [65.0°C] GPU: Mesa Intel(R) Graphics (ADL GT2) RAM: 13200MiB / 31802MiB

  • Type of installed package (Snap, AppImage, deb, rpm, pacman): Flatpak

Bug description When opening any file, none of the elements are rendered. Only the file background colour and any comments on the file are shown.

The dashboard displays correctly, however.

Screenshots image

image

image

Additional context This problem has occurred for about 2 months

azuredusk10 avatar Feb 06 '24 12:02 azuredusk10

Same issue here. Both Figma and figjam.

OS: Fedora 39 ThirtyNine Kernel: x86_64 Linux 6.6.14-200.fc39.x86_64 Uptime: 1h 13m Packages: 2171 Shell: pkcommand-not-found Resolution: No X Server GNOME 45.2 WM: Mutter WM Theme: Adwaita GTK Theme: Adwaita [GTK2/3] Icon Theme: Adwaita Font: Cantarell 11 Disk: 34G / 465G (8%) CPU: Intel Core i5-5350U @ 4x 2.9GHz [79.0°C] GPU: Mesa Intel(R) HD Graphics 6000 (BDW GT3) RAM: 5223MiB / 7841MiB

Captura desde 2024-02-08 13-06-27

shelvaldes avatar Feb 08 '24 19:02 shelvaldes

installed via rpm package

shelvaldes avatar Feb 08 '24 19:02 shelvaldes

Same happening to me. These are my logs:

[175089:0209/151607.649527:ERROR:gl_utils.cc(398)] [.WebGL-0x136006f30700] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture. [175089:0209/151607.649685:ERROR:gl_utils.cc(398)] [.WebGL-0x136006f30700] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture. [175089:0209/151607.649779:ERROR:gl_utils.cc(398)] [.WebGL-0x136006f30700] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture. [175089:0209/151607.649853:ERROR:gl_utils.cc(398)] [.WebGL-0x136006f30700] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture. [175089:0209/151607.649923:ERROR:gl_utils.cc(398)] [.WebGL-0x136006f30700] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture. [175089:0209/151607.649994:ERROR:logger.cc(46)] Too many GL errors, not reporting any more for this context. use --disable-gl-error-limit to see all errors. [175089:0209/151609.082461:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

Host: XMG CORE (REN/E21) Standard Kernel: 6.7.4-arch1-1 CPU: AMD Ryzen 7 4800H with Radeon Graphics (16) @ 2.900GHz GPU: AMD ATI Radeon RX Vega 6 dGPU: NVIDIA GeForce RTX 3060 Mobile / Max-Q

In my case, switching to my dGPU solves it. ( prime-run figma-linux )

edit: apparently i lied. It only works randomly half the time. The other half it hangs at the loading screen.

DominickVale avatar Feb 09 '24 14:02 DominickVale

Very similar issue here with the same log errors as above, directly after a large Arch system update. Happens on both bin and git AUR packages

I've also tried various chromium flags, none of which seem to resolve the issue use-vulkan ignore-gpu-blacklist enable-gpu-rasterization enable-unsafe-webgpu

Figma itself works perfectly fine through up-to-date Firefox (122.0.1) and Chrome (121.0.6167.160)

Specific Behavior When opening a FigJam file it's always completely blank, however Design files often display broken and unpredictable visual artifacts, which seem to be mangled renderings of the file itself. 2024-02-12_18-28

Specs: OS: EndeavourOS Linux x86_64 Host: MS-7C37 1.0 Kernel: 6.7.4-arch1-1 DE: Plasma 5.27.10 CPU: AMD Ryzen 9 3900X (24) @ 3.800GHz GPU: AMD Radeon RX 7900 XT

Result of the chrome://gpu page about-gpu-2024-02-12T23-24-05-566Z.txt

luna-skye avatar Feb 12 '24 23:02 luna-skye

Downgrading to 0.11.2 seems to have fixed this in my case.

I know it's been closed and should have been fixed with the two bumps in Electron version at 5602de4 and da70945, resolving the issue in 0.11.3, but I'm wondering if #354 could be related to this somehow.

luna-skye avatar Feb 13 '24 08:02 luna-skye

Same problem, I'm using the flatpak version.

Phosphorus-M avatar Feb 21 '24 19:02 Phosphorus-M

Same problem here (MANJARO). In my case all black maybe for my dark mode, but I changed the themes and always I can see black.

OS: Manjaro Linux x86_64 
Kernel: 6.6.16-2-MANJARO 
Uptime: 2 hours, 43 mins 
Packages: 1229 (pacman), 12 (flatpak), 12 (snap)
Shell: zsh 5.9 
Resolution: 3440x1440 
DE: Xfce 4.18 
WM: Xfwm4 
WM Theme: Matcha-sea 
Theme: Matcha-dark-sea [GTK2/3] 
Icons: Papirus-Maia [GTK2], Adwaita [GTK3] 
Terminal: kitty 
CPU: 13th Gen Intel i7-13700K (24) @ 5.300GHz 
GPU: Intel Raptor Lake-S GT1 [UHD Graphics 770] 
Memory: 12408MiB / 31838MiB 

image

SoyDiego avatar Feb 23 '24 09:02 SoyDiego

The same issue is happening in Fedora38. Any updates?

Besuf avatar Feb 24 '24 21:02 Besuf

For Flatpak users who need a workaround until this is fixed, here's the terminal command to downgrade to Figma for linux v 0.11.2, the latest version where the canvas appears to be rendering correctly.

sudo flatpak update --commit=c161b0f7054c56e21ab68ef22c09ca722b7518658c21c286aafcdf2ce57b490c io.github.Figma_Linux.figma_linux

Not sure what the command will be for other package formats like Snap

azuredusk10 avatar Feb 26 '24 15:02 azuredusk10

For Flatpak users who need a workaround until this is fixed, here's the terminal command to downgrade to Figma for linux v 0.11.2, the latest version where the canvas appears to be rendering correctly.

sudo flatpak update --commit=c161b0f7054c56e21ab68ef22c09ca722b7518658c21c286aafcdf2ce57b490c io.github.Figma_Linux.figma_linux

Not sure what the command will be for other package formats like Snap

I installed but didn't help I'm getting the same issue :(

Besuf avatar Feb 26 '24 23:02 Besuf

this just happened to me after a large Arch update, the way I fixed it was by closing the app then deleting the settings folder:

rm -rf ~/.config/figma-linux/

it will ask you to login again after reopening, but figma functionality will be back.

darionco avatar Feb 28 '24 06:02 darionco

Deleting settings folder worked for me.

I wonder how did the configuration folder managed to corrupt the canvas area?

raluvy95 avatar Feb 28 '24 15:02 raluvy95

@darionco Your solution worked, this happened to me after a Fedora 39 update.

Red3nzo avatar Feb 28 '24 18:02 Red3nzo

this just happened to me after a large Arch update, the way I fixed it was by closing the app then deleting the settings folder:

rm -rf ~/.config/figma-linux/

it will ask you to login again after reopening, but figma functionality will be back.

This also worked for me. Thank you!

azuredusk10 avatar Feb 28 '24 20:02 azuredusk10

Bad news. Deleting the settings folder via that command worked at first, but after closing and reopening the app, the canvas no longer renders. Closing the app, clearing the settings folder again and reopening the app doesn't fix the issue for me. I'm using the latest Flatpak version v 0.11.3 on Fedora 39

azuredusk10 avatar Feb 28 '24 21:02 azuredusk10

this just happened to me after a large Arch update, the way I fixed it was by closing the app then deleting the settings folder:

rm -rf ~/.config/figma-linux/

it will ask you to login again after reopening, but figma functionality will be back.

Thanks for the solution. Worked in Manjaro XFCE @darionco

Bad news. Deleting the settings folder via that command worked at first, but after closing and reopening the app, the canvas no longer renders. Closing the app, clearing the settings folder again and reopening the app doesn't fix the issue for me. I'm using the latest Flatpak version v 0.11.3 on Fedora 39

I closed the app and opened again and continue working perfectly for me.

SoyDiego avatar Feb 29 '24 07:02 SoyDiego

I closed the app and opened again and continue working perfectly for me.

Good to know, thank you. I uninstalled Figma for Linux from the Software app on Fedora and chose to delete all data when prompted. I reinstalled the app, and after re-authenticating, it's working as normal, even after closing and opening the app.

Edit: for users running the Flatpak version, the config folder is in a different directory. Instead of uninstalling and and reinstalling like I did, you can remove just the config folder using this command to fix this problem:

rm -rf ~/.var/app/io.github.Figma_Linux.figma_linux/config

azuredusk10 avatar Feb 29 '24 11:02 azuredusk10

this just happened to me after a large Arch update, the way I fixed it was by closing the app then deleting the settings folder:

rm -rf ~/.config/figma-linux/

Worked as well in Ubuntu 22.04. thank you!

ahmedmoktaar avatar Feb 29 '24 22:02 ahmedmoktaar

this just happened to me after a large Arch update, the way I fixed it was by closing the app then deleting the settings folder:

rm -rf ~/.config/figma-linux/

Worked with me as well in Kali.

HousseinDroubi avatar Mar 02 '24 03:03 HousseinDroubi

this just happened to me after a large Arch update, the way I fixed it was by closing the app then deleting the settings folder:

rm -rf ~/.config/figma-linux/

Worked as well in Ubuntu 22.04. thank you!

For those who installed figma-linux from snap store, the config file lays here:

 ~/snap/figma-linux/current/.config/figma-linux

POPOBE97 avatar Mar 20 '24 07:03 POPOBE97

This issue keeps reoccuring after system updates on Fedora. Running the command after the system update makes the canvas render correctly again, but it is inconvenient if trying to pull something up quickly in a meeting.

azuredusk10 avatar Mar 25 '24 11:03 azuredusk10

for anyone suffering from this issue consistently, you can just delete the GPUCache folder within the config folder to fix the issue without having to log in again:

rm -rf ~/.config/figma-linux/GPUCache

for snap store installations (thanks @POPOBE97):

rm -rf ~/snap/figma-linux/current/.config/figma-linux/GPUCache

@azuredusk10

darionco avatar Mar 30 '24 09:03 darionco

for anyone suffering from this issue consistently, you can just delete the GPUCache folder within the config folder to fix the issue without having to log in again:

rm -rf ~/.config/figma-linux/GPUCache

for snap store installations (thanks @POPOBE97):

rm -rf ~/snap/figma-linux/current/.config/figma-linux/GPUCache

@azuredusk10

Thank you @darionco. It worked with me on EndeavourOS. Solved problem that happened with me about 3 months! For anyone used rm -rf ~/.config/figma-linux/, you can try this if that not solve yours.

arahiko-ayami avatar Mar 31 '24 19:03 arahiko-ayami

After some digging I found issue #40366 in the electron repo, which links to this bug in the chromium bug tracker.

According to that bug, the issue has been fixed and was released in chromium 121, which in turn was released in electron 29 (it uses chromium M122). Figma-Linux is still using electron 27. Updating to electron 29 should fix this issue.

I don't imagine that updating a core library two major versions is an easy task unless the breaking changes of both electron 28 and electron 29 do not affect this project. That would be lucky... anyway, I might try to update electron for this project some day, but I can't promise I'll have the time.

darionco avatar Apr 02 '24 17:04 darionco

Turns out that it seems to be a lot simpler than I originally thought, a simple update just works for the way I use figma. I've opened PR #367, in case anyone else wants to test it.

darionco avatar Apr 02 '24 20:04 darionco

@ChugunovRoman Do you know when you'll be able to release a new version with @darionco 's patch applied? Looking forward to having this bug fixed, whenever it's possible for you. Thank you

azuredusk10 avatar Apr 29 '24 12:04 azuredusk10

this just happened to me after a large Arch update, the way I fixed it was by closing the app then deleting the settings folder:

rm -rf ~/.config/figma-linux/

it will ask you to login again after reopening, but figma functionality will be back.

Worked as well in Debian Trixie (Testing Channel). thank you!

mralaminahamed avatar May 01 '24 04:05 mralaminahamed