mattermost-community / focalboard

Focalboard is an open source, self-hosted alternative to Trello, Notion, and Asana.
https://www.focalboard.com
Other
22.02k stars 1.99k forks source link

Bug: App starts but window doesn't render #4910

Open vvzen opened 1 year ago

vvzen commented 1 year ago

The app starts but a blank window is displayed and nothing is rendered.

Steps to reproduce the behavior

$ wget https://github.com/mattermost/focalboard/releases/download/v7.11.3/focalboard-linux.tar.gz
$ tar -xvf focalboard-linux.tar.gz 
$ cd focalboard-app
$ ./focalboard-app 

Expected behavior

App starts fine.

Screenshots (optional)

ksnip_202310_21-132349

Edition and Platform

Additional context (optional)

$ uname -a
Linux vv-arch-box 6.5.4-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 21 Sep 2023 11:06:39 +0000 x86_64 GNU/Linux

NVIDIA drivers: 535.104.05 NVML Version: 12.535.104.05

Add any other context about the problem here, and any notes about the severity:

Additional errors logged in the terminal:

Overriding existing handler for signal 10. Set JSC_SIGNAL_FOR_GC if you want WebKit to use a different signal
src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)

Failed to create GBM buffer of size 1024x768: Invalid argument
src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)

Failed to create GBM buffer of size 1024x768: Invalid argument
src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)

Failed to create GBM buffer of size 1024x768: Invalid argument
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1
vvzen commented 1 year ago

Googling the main NVIDIA error, it seems similar to:

vvzen commented 1 year ago

Setting __NV_PRIME_RENDER_OFFLOAD to 1 seems to fix it:

$ export __NV_PRIME_RENDER_OFFLOAD=1
$ ./focalboard-app 
# ..stuff works..
ralpheichelberger commented 1 year ago

I have the same problem - I get a white window, no matter the size or if fullscreen. I can't really say what changed - maybe it was after an update of my NixOS 23.05 with a NVIDIA GeForce RTX 2060 and driver version 535.86.05 (0a:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2060 Rev. A] (rev a1) )

src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)

Failed to create GBM buffer of size 562x1000: Invalid argument
src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)

Failed to create GBM buffer of size 562x1000: Invalid argument
src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)

Failed to create GBM buffer of size 562x1000: Invalid argument
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1

PS: works fine with Indel HD Graphics on another device..

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 510 (rev 06)

I also found a workaround on Redit: https://www.reddit.com/r/rust/comments/16tzu8w/tauri_issue/ just start the Tauri app with environment variable __NV_PRIME_RENDER_OFFLOAD=1