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] tauri web works, but app fails on archlinux(6.13.6-arch1-1), nvidia-dkms 570.124.04-1 #12951

Open
chanmaoganda opened this issue Mar 11, 2025 · 6 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

@chanmaoganda
Copy link

Describe the bug

Image

Reproduction

just use yarn create tauri-app

then run tauri app using WEBKIT_DISABLE_DMABUF_RENDERER=1 yarn run tauri dev

web app works, but linux app fails to render

Expected behavior

No response

Full tauri info output

Info GET https://docs.rs/crate/tauri/
    Info Request { method: GET, uri: https://docs.rs/crate/tauri/, version: HTTP/1.1, headers: {"accept-encoding": "gzip", "user-agent": "ureq/3.0.2", "accept": "*/*", "host": "docs.rs"} }
    Info Response { status: 400, version: HTTP/1.1, headers: {"server": "CloudFront", "date": "Tue, 11 Mar 2025 05:19:12 GMT", "content-type": "text/html", "content-length": "915", "connection": "close", "<NOTICE>": "4 HEADERS ARE REDACTED"} }
    Info GET https://docs.rs/crate/tauri-build/
    Info Request { method: GET, uri: https://docs.rs/crate/tauri-build/, version: HTTP/1.1, headers: {"accept-encoding": "gzip", "user-agent": "ureq/3.0.2", "accept": "*/*", "host": "docs.rs"} }
    Info Response { status: 400, version: HTTP/1.1, headers: {"server": "CloudFront", "date": "Tue, 11 Mar 2025 05:19:13 GMT", "content-type": "text/html", "content-length": "915", "connection": "close", "<NOTICE>": "4 HEADERS ARE REDACTED"} }
    Info GET https://docs.rs/crate/wry/
    Info Request { method: GET, uri: https://docs.rs/crate/wry/, version: HTTP/1.1, headers: {"accept-encoding": "gzip", "user-agent": "ureq/3.0.2", "accept": "*/*", "host": "docs.rs"} }
    Info Response { status: 400, version: HTTP/1.1, headers: {"server": "CloudFront", "date": "Tue, 11 Mar 2025 05:19:13 GMT", "content-type": "text/html", "content-length": "915", "connection": "close", "<NOTICE>": "4 HEADERS ARE REDACTED"} }
    Info GET https://docs.rs/crate/tao/
    Info Request { method: GET, uri: https://docs.rs/crate/tao/, version: HTTP/1.1, headers: {"accept-encoding": "gzip", "user-agent": "ureq/3.0.2", "accept": "*/*", "host": "docs.rs"} }
    Info Response { status: 400, version: HTTP/1.1, headers: {"server": "CloudFront", "date": "Tue, 11 Mar 2025 05:19:13 GMT", "content-type": "text/html", "content-length": "915", "connection": "close", "<NOTICE>": "4 HEADERS ARE REDACTED"} }
    Info GET https://docs.rs/crate/tauri-plugin-opener/
    Info Request { method: GET, uri: https://docs.rs/crate/tauri-plugin-opener/, version: HTTP/1.1, headers: {"accept-encoding": "gzip", "user-agent": "ureq/3.0.2", "accept": "*/*", "host": "docs.rs"} }
    Info Response { status: 400, version: HTTP/1.1, headers: {"server": "CloudFront", "date": "Tue, 11 Mar 2025 05:19:13 GMT", "content-type": "text/html", "content-length": "915", "connection": "close", "<NOTICE>": "4 HEADERS ARE REDACTED"} }

[✔] Environment
    - OS: Arch Linux Unknown x86_64 (X64) (KDE on wayland)
    ✔ webkit2gtk-4.1: 2.46.6
    ✔ rsvg2: 2.59.2
    ✔ rustc: 1.85.0 (4d91de4e4 2025-02-17)
    ✔ cargo: 1.85.0 (d73d2caf9 2024-12-31)
    ✔ rustup: 1.28.1 (f9edccde0 2025-03-05)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (overridden by environment variable RUSTUP_TOOLCHAIN)
    - node: 23.9.0
    - yarn: 1.22.22
    - npm: 11.2.0
    Info GET https://docs.rs/crate/tauri-cli/
    Info Request { method: GET, uri: https://docs.rs/crate/tauri-cli/, version: HTTP/1.1, headers: {"accept-encoding": "gzip", "user-agent": "ureq/3.0.2", "accept": "*/*", "host": "docs.rs"} }
    Info Response { status: 400, version: HTTP/1.1, headers: {"server": "CloudFront", "date": "Tue, 11 Mar 2025 05:19:13 GMT", "content-type": "text/html", "content-length": "915", "connection": "close", "<NOTICE>": "4 HEADERS ARE REDACTED"} }

[-] Packages
    - tauri 🦀: 2.3.1
    - tauri-build 🦀: 2.0.6
    - wry 🦀: 0.50.4
    - tao 🦀: 0.32.8
    - tauri-cli 🦀: 2.3.1
    - @tauri-apps/api : 2.3.0
    - @tauri-apps/cli : 2.3.1

[-] Plugins
    - tauri-plugin-opener 🦀: 2.2.6
    - @tauri-apps/plugin-opener : 2.2.6

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: Vue.js
    - bundler: Vite

Stack trace


Additional context

No response

@chanmaoganda chanmaoganda added status: needs triage This issue needs to triage, applied to new issues type: bug labels Mar 11, 2025
@FabianLars
Copy link
Member

then run tauri app using WEBKIT_DISABLE_DMABUF_RENDERER=1 yarn run tauri dev

What about WEBKIT_DISABLE_COMPOSITING_MODE=1 ?

@chanmaoganda
Copy link
Author

seems not working for setting WEBKIT_DISABLE_COMPOSITING_MODE=1 stand alone.
setting both also makes no sense

Image

@chanmaoganda
Copy link
Author

what can i do to provide with debug info?

@FabianLars
Copy link
Member

what can i do to provide with debug info?

no idea 🤷

last thing that comes to mind would be the GDK_BACKEND=x11 env var

@chanmaoganda
Copy link
Author

it is a nvidia issue XD
i tried on another laptop with archlinux, wayland, it works well...

@FabianLars
Copy link
Member

yeah, webkitgtk and nvidia don't go well together but normally you can work around it somehow 🤔

@FabianLars FabianLars added the status: upstream This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes label Mar 12, 2025
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

2 participants