Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vvzen opened this issue Oct 21, 2023 · 3 comments
Open

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

vvzen opened this issue Oct 21, 2023 · 3 comments
Labels
Bug Something isn't working Triage

Comments

@vvzen
Copy link

vvzen commented Oct 21, 2023

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

  • Edition: Personal Desktop / Personal Server / Mattermost Boards (plugin)
  • Version: v7.11.3

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:

  • Sev 1: Affects critical functionality without a workaround

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 vvzen added Bug Something isn't working Triage labels Oct 21, 2023
@vvzen
Copy link
Author

vvzen commented Oct 21, 2023

@vvzen
Copy link
Author

vvzen commented Oct 21, 2023

Setting __NV_PRIME_RENDER_OFFLOAD to 1 seems to fix it:

$ export __NV_PRIME_RENDER_OFFLOAD=1
$ ./focalboard-app 
# ..stuff works..

@ralpheichelberger
Copy link

ralpheichelberger commented Oct 27, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Triage
Projects
None yet
Development

No branches or pull requests

2 participants