Figma-Linux / figma-linux

Figma is the first interface design tool based in the browser, making it easier for teams to create software. Join us in https://t.me/figma_linux
GNU General Public License v2.0
2.55k stars 156 forks source link

Crash on startup: libva error #337

Closed talentlessguy closed 11 months ago

talentlessguy commented 11 months ago
OS: Garuda Linux x86_64
Host: ROG Zephyrus G16 GU603VV_GU603VV 1.0
Kernel: 6.4.6-arch1-1-g14
Uptime: 16 hours, 19 mins
Packages: 1920 (pacman)
Shell: fish 3.6.1
Resolution: 2560x1600
DE: Plasma 5.27.6
WM: KWin
Theme: [Plasma], Graphite-Dark-nord [GTK2/3]
Icons: [Plasma], Tela-circle-nord-dark [GTK2/3]
Terminal: konsole
Terminal Font: FiraCode Nerd Font Mono 12
CPU: 13th Gen Intel i9-13900H (20) @ 2.600GHz
GPU: Intel Raptor Lake-P [Iris Xe Graphics]
GPU: NVIDIA GeForce RTX 4060 Max-Q / Mobile
Memory: 6948MiB / 31717MiB

pacman

Bug description

When I run figma-linux it crashes immediately with this output:

uncaughtException:  TypeError: Cannot read property 'scaleFigmaUI' of undefined
at new WindowManager (/opt/figma-linux/resources/app.asar/main/main.js:1:25963)
at Function.get instance [as instance] (/opt/figma-linux/resources/app.asar/main/main.js:1:27255)
at App.ready (/opt/figma-linux/resources/app.asar/main/main.js:1:32206)
at App.emit (events.js:315:20)
libva error: /usr/lib/dri/i965_drv_video.so init failed

and then hangs.

Additional context

It manages to open with sudo

$ sudo figma-linux --no-sandbox

(figma-linux:1447987): GLib-GIO-CRITICAL **: 18:10:59.463: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(figma-linux:1447987): GLib-GIO-CRITICAL **: 18:10:59.463: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(figma-linux:1447987): GLib-GIO-CRITICAL **: 18:10:59.463: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
[8/2/2023, 6:10:59 PM]:[INFO] - [wm] already signed in? false
libva error: /usr/lib/dri/i965_drv_video.so init failed

My vainfo output:

$ vainfo --display x11
Trying display: x11
vainfo: VA-API version: 1.19 (libva 2.19.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.3.0 ()

Related thread: https://github.com/intel/libva/issues/375

talentlessguy commented 11 months ago

I deleted ~/.config/figma-linux and reinstalled - it works now