Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Update Figma Linux to 0.11.4 #56

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shdwchn10
Copy link

This PR contains changes from #51, #52, #53 and #55 and supersedes them. It also fixes this sandbox error.

Basically we have working Flatpak Figma now (I hope CI won't fail).

@flathubbot
Copy link
Contributor

Started test build 128511

@flathubbot
Copy link
Contributor

Build 128511 successful
To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/111496/io.github.Figma_Linux.figma_linux.flatpakref

@shdwchn10
Copy link
Author

shdwchn10 commented Jun 16, 2024

image
Now I get this error on Intel HD Graphics 630 and AMD VanGogh (Steam Deck) both on Fedora Silverblue 41. Removal of the --enable-webgl-image-chromium flag fixes the error for both of them. I will push fix now.

UPD: Details about affected systems (inxi -SG --no-host):

System:
  Kernel: 6.8.11-300.fc40.x86_64 arch: x86_64 bits: 64
  Desktop: GNOME v: 46.2 Distro: Fedora Linux 40.20240613.0 (Silverblue)
Graphics:
  Device-1: Intel HD Graphics 630 driver: i915 v: kernel
  Device-2: NVIDIA GM107GLM [Quadro M1200 Mobile] driver: nouveau v: kernel
  Display: wayland server: X.Org v: 24.1 with: Xwayland v: 24.1.0
    compositor: gnome-shell driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: iris gpu: i915 resolution: 1920x1080~60Hz
  API: OpenGL v: 4.6 vendor: intel mesa v: 24.0.9 renderer: Mesa Intel HD
    Graphics 630 (KBL GT2)
System:
  Kernel: 6.8.12-301.fsync.fc40.x86_64 arch: x86_64 bits: 64
  Desktop: GNOME v: 46.2 Distro: Fedora Linux 40.20240611.0 (Silverblue)
Graphics:
  Device-1: AMD VanGogh [AMD Custom GPU 0405] driver: amdgpu v: kernel
  Display: wayland server: X.Org v: 23.2.6 with: Xwayland v: 23.2.6
    compositor: gnome-shell driver: dri: radeonsi gpu: amdgpu
    resolution: 1920x1080~60Hz
  API: OpenGL v: 4.6 vendor: amd mesa v: 24.0.8 renderer: AMD Custom GPU
    0405 (radeonsi vangogh LLVM 18.1.1 DRM 3.57 6.8.12-301.fsync.fc40.x86_64)
  API: Vulkan v: 1.3.283 drivers: N/A surfaces: xcb,xlib,wayland

This fixes WebGL error which was found at least on AMDGPU and i915 platforms. See: flathub#56 (comment)
@flathubbot
Copy link
Contributor

Started test build 128513

@flathubbot
Copy link
Contributor

Build 128513 successful
To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/111498/io.github.Figma_Linux.figma_linux.flatpakref

@shdwchn10
Copy link
Author

Now it works
image

@illiafox
Copy link

I have the same issue on Quadro P600 with nvidia driver

$ inxi -SG --no-host
System:
  Kernel: 6.9.3-1-default arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.0.5 Distro: openSUSE Tumbleweed 20240613
Graphics:
  Device-1: NVIDIA GP107GLM [Quadro P600 Mobile] driver: nvidia v: 550.90.07
  Device-2: Lite-On HP Wide Vision HD Camera driver: uvcvideo type: USB
  Display: x11 server: X.Org v: 21.1.12 with: Xwayland v: 24.1.0 driver: X:
    loaded: nvidia unloaded: fbdev,modesetting,vesa gpu: nvidia,nvidia-nvswitch
    resolution: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: nvidia,swrast
    platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.90.07
    renderer: Quadro P600/PCIe/SSE2
  API: Vulkan v: 1.3.283 drivers: N/A surfaces: xcb,xlib

With --enable-webgl-image-chromium:

image

Log (click to expand)
$ /usr/bin/flatpak run --branch=test --arch=x86_64 --command=figma-linux --file-forwarding io.github.Figma_Linux.figma_linux --enable-oop-rasterization --ignore-gpu-blacklist -enable-experimental-canvas-features --enable-accelerated-2d-canvas --force-gpu-rasterization --enable-fast-unload --enable-accelerated-vpx-decode=3 --enable-tcp-fastopen --javascript-harmony --enable-checker-imaging --v8-cache-options=code --v8-cache-strategies-for-cache-storage=aggressive --enable-zero-copy --ui-enable-zero-copy --enable-native-gpu-memory-buffers --enable-webgl-image-chromium --enable-accelerated-video --enable-gpu-rasterization
[6/17/2024, 10:33:03 AM]:[INFO] - [wm] already signed in?,true
[6/17/2024, 10:33:05 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setThemePreference
[6/17/2024, 10:33:05 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setWorkspaceProperties
[44:0617/103306.147155:ERROR:shared_image_factory.cc(988)] Could not find SharedImageBackingFactory with params: usage: Gles2Read|Gles2FramebufferHint|RasterRead|DisplayRead|Scanout|Gles2Write, format: RGBA_8888, share_between_threads: 0, gmb_type: empty, debug_label: WebGLDrawingBuffer_Pid:117
[44:0617/103306.147230:ERROR:shared_image_stub.cc(351)] SharedImageStub: Unable to create shared image
[117:0617/103306.148115:ERROR:command_buffer_proxy_impl.cc(323)] GPU state invalid after WaitForGetOffsetInRange.
[6/17/2024, 10:33:06 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setWorkspaceProperties
[6/17/2024, 10:33:06 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setLocales
[6/17/2024, 10:33:06 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,getKeyboardLayout
[6/17/2024, 10:33:07 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setThemePreference
[6/17/2024, 10:33:08 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setWorkspaceProperties
[44:0617/103308.787618:ERROR:shared_image_factory.cc(988)] Could not find SharedImageBackingFactory with params: usage: Gles2Read|Gles2FramebufferHint|RasterRead|DisplayRead|Scanout|Gles2Write, format: RGBA_8888, share_between_threads: 0, gmb_type: empty, debug_label: WebGLDrawingBuffer_Pid:159
[44:0617/103308.787741:ERROR:shared_image_stub.cc(351)] SharedImageStub: Unable to create shared image
[159:0617/103308.789330:ERROR:command_buffer_proxy_impl.cc(323)] GPU state invalid after WaitForGetOffsetInRange.
[6/17/2024, 10:33:08 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setWorkspaceProperties
[6/17/2024, 10:33:08 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setLocales
[6/17/2024, 10:33:08 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,getKeyboardLayout
[44:0617/103309.133895:ERROR:shared_image_factory.cc(988)] Could not find SharedImageBackingFactory with params: usage: Gles2Read|Gles2FramebufferHint|RasterRead|DisplayRead|Scanout|Gles2Write, format: RGBA_8888, share_between_threads: 0, gmb_type: empty, debug_label: WebGLDrawingBuffer_Pid:65
[44:0617/103309.134015:ERROR:shared_image_stub.cc(351)] SharedImageStub: Unable to create shared image
[65:0617/103309.135854:ERROR:command_buffer_proxy_impl.cc(323)] GPU state invalid after WaitForGetOffsetInRange.
[44:0617/103309.174856:ERROR:shared_image_factory.cc(988)] Could not find SharedImageBackingFactory with params: usage: Gles2Read|Gles2FramebufferHint|RasterRead|DisplayRead|Scanout|Gles2Write, format: RGBA_8888, share_between_threads: 0, gmb_type: empty, debug_label: WebGLDrawingBuffer_Pid:137
[44:0617/103309.174956:ERROR:shared_image_stub.cc(351)] SharedImageStub: Unable to create shared image
[137:0617/103309.180256:ERROR:command_buffer_proxy_impl.cc(323)] GPU state invalid after WaitForGetOffsetInRange.
[6/17/2024, 10:33:09 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,getActiveNSScreens
[6/17/2024, 10:33:09 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setWorkspaceProperties
[6/17/2024, 10:33:09 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setWorkspaceProperties
[6/17/2024, 10:33:09 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setWorkspaceProperties
[44:0617/103309.737824:ERROR:shared_image_factory.cc(988)] Could not find SharedImageBackingFactory with params: usage: Gles2Read|Gles2FramebufferHint|RasterRead|DisplayRead|Scanout|Gles2Write, format: RGBA_8888, share_between_threads: 0, gmb_type: empty, debug_label: WebGLDrawingBuffer_Pid:187
[44:0617/103309.737931:ERROR:shared_image_stub.cc(351)] SharedImageStub: Unable to create shared image
[187:0617/103309.739274:ERROR:command_buffer_proxy_impl.cc(323)] GPU state invalid after WaitForGetOffsetInRange.
[6/17/2024, 10:33:15 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,setThemePreference
[44:0617/103316.164038:ERROR:shared_image_factory.cc(988)] Could not find SharedImageBackingFactory with params: usage: Gles2Read|Gles2FramebufferHint|RasterRead|DisplayRead|Scanout|Gles2Write, format: RGBA_8888, share_between_threads: 0, gmb_type: empty, debug_label: WebGLDrawingBuffer_Pid:277
[44:0617/103316.164381:ERROR:shared_image_stub.cc(351)] SharedImageStub: Unable to create shared image
[277:0617/103316.165028:ERROR:command_buffer_proxy_impl.cc(323)] GPU state invalid after WaitForGetOffsetInRange.
[6/17/2024, 10:33:16 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,setTabPreviewData
[6/17/2024, 10:33:16 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setWorkspaceProperties
[6/17/2024, 10:33:16 AM]:[WARN] - The setWorkspaceName not implemented, workspaceName: ,
[6/17/2024, 10:33:16 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,setLocales
[6/17/2024, 10:33:16 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,setEditorType
[6/17/2024, 10:33:16 AM]:[WARN] - The setWorkspaceName not implemented, workspaceName: ,
[6/17/2024, 10:33:16 AM]:[WARN] - The setWorkspaceName not implemented, workspaceName: ,
[6/17/2024, 10:33:16 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,getKeyboardLayout
[6/17/2024, 10:33:16 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,setRealtimeToken
[44:0617/103316.746145:ERROR:shared_image_factory.cc(988)] Could not find SharedImageBackingFactory with params: usage: Gles2Read|Gles2FramebufferHint|RasterRead|DisplayRead|Scanout|Gles2Write, format: RGBA_8888, share_between_threads: 0, gmb_type: empty, debug_label: WebGLDrawingBuffer_Pid:0
[44:0617/103316.746401:ERROR:shared_image_stub.cc(351)] SharedImageStub: Unable to create shared image
[277:0617/103316.747005:ERROR:command_buffer_proxy_impl.cc(323)] GPU state invalid after WaitForGetOffsetInRange.
[6/17/2024, 10:33:17 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,getActiveNSScreens
[6/17/2024, 10:33:17 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,setRealtimeToken```

Without --enable-webgl-image-chromium: works fine

image

Log (click to expand)
$ /usr/bin/flatpak run --branch=test --arch=x86_64 --command=figma-linux --file-forwarding io.github.Figma_Linux.figma_linux --enable-oop-rasterization --ignore-gpu-blacklist -enable-experimental-canvas-features --enable-accelerated-2d-canvas --force-gpu-rasterization --enable-fast-unload --enable-accelerated-vpx-decode=3 --enable-tcp-fastopen --javascript-harmony --enable-checker-imaging --v8-cache-options=code --v8-cache-strategies-for-cache-storage=aggressive --enable-zero-copy --ui-enable-zero-copy --enable-native-gpu-memory-buffers --enable-accelerated-video --enable-gpu-rasterization
[6/17/2024, 10:30:42 AM]:[INFO] - [wm] already signed in?,true
[6/17/2024, 10:30:45 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setThemePreference
[6/17/2024, 10:30:45 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setWorkspaceProperties
[6/17/2024, 10:30:46 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setThemePreference
[6/17/2024, 10:30:48 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setWorkspaceProperties
[6/17/2024, 10:30:48 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setWorkspaceProperties
[6/17/2024, 10:30:48 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setLocales
[6/17/2024, 10:30:48 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,getKeyboardLayout
[6/17/2024, 10:30:48 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setWorkspaceProperties
[6/17/2024, 10:30:48 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,getActiveNSScreens
[6/17/2024, 10:31:00 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,setThemePreference
[6/17/2024, 10:31:01 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,setTabPreviewData
[6/17/2024, 10:31:01 AM]:[WARN] - [From web content: 2],[desktop] Unhandled message,setWorkspaceProperties
[2:0617/103102.304135:ERROR:atom_cache.cc(229)] Add WM_CHANGE_STATE to kAtomsToCache
[6/17/2024, 10:31:03 AM]:[WARN] - The setWorkspaceName not implemented, workspaceName: ,
[6/17/2024, 10:31:03 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,setLocales
[6/17/2024, 10:31:03 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,setEditorType
[6/17/2024, 10:31:03 AM]:[WARN] - The setWorkspaceName not implemented, workspaceName: ,
[6/17/2024, 10:31:03 AM]:[WARN] - The setWorkspaceName not implemented, workspaceName: ,
[6/17/2024, 10:31:03 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,getKeyboardLayout
[6/17/2024, 10:31:03 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,spellingGetLanguages
[6/17/2024, 10:31:04 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,setIsLibrary
[6/17/2024, 10:31:04 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,setIsTeamTemplate
[6/17/2024, 10:31:04 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,setRealtimeToken
[6/17/2024, 10:31:04 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,setRealtimeToken
[6/17/2024, 10:31:04 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,updateViewport
[6/17/2024, 10:31:05 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,getActiveNSScreens
[6/17/2024, 10:31:06 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,getActiveNSScreens
[6/17/2024, 10:31:06 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,getActiveNSScreens
[6/17/2024, 10:31:06 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,getActiveNSScreens
[6/17/2024, 10:31:06 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,getKeyboardLayout
[6/17/2024, 10:31:18 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,updateViewport
[6/17/2024, 10:31:22 AM]:[WARN] - [From web content: 8],[desktop] Unhandled message,updateViewport

@flexagoon
Copy link

@ChugunovRoman could you look at this please?

@mrdev023
Copy link

This MR can't be merge ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants