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] DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed #7910

Closed
GaZaTu opened this issue Sep 28, 2023 · 2 comments
Closed

[bug] DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed #7910

GaZaTu opened this issue Sep 28, 2023 · 2 comments
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues status: upstream This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes type: bug

Comments

@GaZaTu
Copy link

GaZaTu commented Sep 28, 2023

Describe the bug

Since updating my arch system yesterday i cannot run any tauri application regardless of the tauri versions (just an empty window opens).
I already tried downgrading linux-zen and all nvidia packages but that did not change anything.

edit: I know this is most likely not really a an issue with tauri itself but it is odd that only tauri apps are affected. Everything else (Qt, Firefox, Games) works fine.

edit2: the .AppImage i built before this error started happening still works for some reason.

edit3: if i build an .AppImage now without changing anything it will also be broken.

Reproduction

No response

Expected behavior

No response

Platform and versions

[✔] Environment
    - OS: EndeavourOS Rolling Release X64
    ✔ webkit2gtk-4.1: 2.42.1
    ✔ rsvg2: 2.57.0
    ✔ rustc: 1.70.0 (90c541806 2023-05-31)
    ✔ Cargo: 1.70.0 (ec8a8a0ca 2023-04-25)
    ✔ rustup: 1.26.0 (2023-05-04)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 16.20.2
    - npm: 10.1.0

[-] Packages
    - tauri [RUST]: 2.0.0-alpha.8
    - tauri-build [RUST]: 2.0.0-alpha.4
    - wry [RUST]: 0.27.3
    - tao [RUST]: 0.18.3
    - @tauri-apps/api [NPM]: 2.0.0-alpha.3
    - @tauri-apps/cli [NPM]: 2.0.0-alpha.8

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://127.0.0.1:5173/
    - framework: SolidJS
    - bundler: Rollup

Stack trace

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 1000x800: 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 1000x800: 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 1000x800: Invalid argument
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1

Additional context

pacman.log: https://gist.github.com/GaZaTu/355c137900ae3bc1bbb5b371eece4aec

@GaZaTu GaZaTu added status: needs triage This issue needs to triage, applied to new issues type: bug labels Sep 28, 2023
@FabianLars FabianLars added status: upstream This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes platform: Linux labels Sep 28, 2023
@GaZaTu
Copy link
Author

GaZaTu commented Sep 28, 2023

ok i found the culprit: webkit2gtk or webkit2gtk-4.1

i downgraded both from 2.42.1 to 2.40.5 and now everything works again.

@GaZaTu GaZaTu closed this as completed Sep 28, 2023
@russmatney
Copy link

I just hit this as well, just to share an alternate solution - using either WEBKIT_DISABLE_DMABUF_RENDERER=1 or __NV_PRIME_RENDER_OFFLOAD=1 when running tauri solved it with the 2.42.1 versions of webkit2gtk.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues status: upstream This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes type: bug
Projects
None yet
Development

No branches or pull requests

3 participants