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] Error 71 (Protocol error) dispatching to Wayland display. #10702

Open
Lunasciel opened this issue Aug 20, 2024 · 8 comments
Open

[bug] Error 71 (Protocol error) dispatching to Wayland display. #10702

Lunasciel opened this issue Aug 20, 2024 · 8 comments
Labels
platform: Linux status: upstream This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes type: bug

Comments

@Lunasciel
Copy link

Describe the bug

Application won't start anymore.

Error:
Gdk-Message: 23:55:52.007: Error 71 (Protocol error) dispatching to Wayland display.

Reproduction

Execute yarn tauri dev under Linux and try to start your Application

Expected behavior

Normal starting without errors

Full tauri info output

> tauri info


[✔] Environment
    - OS: Linux Rolling Release X64
    ✔ webkit2gtk-4.0: 2.44.3
    ✔ rsvg2: 2.58.3
    ✔ rustc: 1.80.0 (051478957 2024-07-21)
    ✔ cargo: 1.80.0 (376290515 2024-07-16)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 22.6.0
    - yarn: 1.22.22
    - npm: 10.8.2

[-] Packages
    - tauri [RUST]: 1.7.1
    - tauri-build [RUST]: 1.5.3
    - wry [RUST]: 0.24.10
    - tao [RUST]: 0.16.9
    - @tauri-apps/api [NPM]: 1.6.0
    - @tauri-apps/cli [NPM]: 1.6.0

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: React
    - bundler: Vite

Stack trace

No response

Additional context

I haven't changed anything in the project since the last time and everything still worked.

@Lunasciel Lunasciel added status: needs triage This issue needs to triage, applied to new issues type: bug labels Aug 20, 2024
@7RST1
Copy link

7RST1 commented Aug 27, 2024

Looks like the bug has made it's way to GitButler. Getting this exact error trying to start it.

Thought it was this error at first, but the problem persists after removing the window-state file

Edit: this is giving me nvidia-problem vibes. Are you using nvidia?

@TheBill2001
Copy link

TheBill2001 commented Aug 27, 2024

this is giving me nvidia-problem vibes. Are you using nvidia?

Can confirm on my end that it is related to NVIDIA. I got the same error on my NVIDIA-only machine.

Here is the log with WAYLAND_DEBUG=1, https://pastebin.pl/view/5fd8b401

[2610755.730] {Display Queue} wl_display#1.error(wp_linux_drm_syncobj_surface_v1#50, 4, "explicit sync is used, but no acquire point is set")
Gdk-Message: 04:05:57.352: Error 71 (Protocol error) dispatching to Wayland display.

Edit: My machine is running Arch Linux, NVIDIA 560.35.03, NVIDIA EGL Wayland 1.1.16.

@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 2, 2024
@Weshnaw
Copy link

Weshnaw commented Sep 3, 2024

I recently migrated over to wayland, and came across this same issue (though in a tauri v2 app)

A temporary solution is to use

WEBKIT_DISABLE_DMABUF_RENDERER=1 pnpm tauri dev

found from here

@ColonelThirtyTwo
Copy link

This happens for me when running Webkit2gtk's MiniBrowser example app, so it's likely an upstream issue. I've filed https://bugs.webkit.org/show_bug.cgi?id=280210 .

@Zamoca42
Copy link

Zamoca42 commented Sep 28, 2024

fixed some of the issues causing “Error 71 (Protocol error)” in tauri-apps/tao#979.
I believe the update will be applied in the next version after tao 0.30.2.

@AmeerArsala
Copy link

is this fixed?

maciekbartczak added a commit to maciekbartczak/KafkaInspector that referenced this issue Oct 27, 2024
@lll-Death-lll
Copy link

__NV_DISABLE_EXPLICIT_SYNC=1 also fixes the issue for me
Full WAYLAND_DEBUG=1 output: https://pastebin.com/DSN7mq9G

@roomtin
Copy link

roomtin commented Jan 22, 2025

Also have this in Arch Linux + Nvidia.

Tauri Info:

[✔] Environment
- OS: Arch Linux Rolling Release x86_64 (X64) (gnome on wayland)
✔ webkit2gtk-4.1: 2.46.5
✔ rsvg2: 2.59.2
✔ rustc: 1.84.0 (9fc6b4312 2025-01-07)
✔ cargo: 1.84.0 (66221abde 2024-11-19)
✔ rustup: 1.27.1 (2024-05-07)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
- node: 18.20.5
- yarn: 1.22.22
- npm: 11.0.0

[-] Packages
- tauri 🦀: 2.2.3
- tauri-build 🦀: 2.0.5
- wry 🦀: 0.48.1
- tao 🦀: 0.31.1
- tauri-cli 🦀: 2.2.5

[-] Plugins
- tauri-plugin-opener 🦀: 2.2.5

[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/

I was able to get around it by running the above suggested:
WEBKIT_DISABLE_DMABUF_RENDERER=1 cargo tauri dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Linux 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

10 participants