buzz icon indicating copy to clipboard operation
buzz copied to clipboard

buzz-desktop crashes on launch under Hyprland (Wayland) with “Error 71 (Protocol error)”

Open Ampsicora opened this issue 4 months ago • 2 comments

Describe the bug Buzz Desktop starts but immediately exits with a Wayland protocol error. No window appears.

Steps to reproduce

  1. Install buzz-bin from the AUR on an Arch-based system (e.g. Omarchy) running Hyprland.
  2. Launch the app from the terminal or application menu: buzz-desktop
  3. See the error and the process exits (no window opens).

Expected behavior The app should open and stay open under Hyprland / pure Wayland without requiring extra environment variables.

Version and platform

  • Buzz version: 0.4.26-1 (installed via buzz-bin AUR package)
  • OS: Omarchy (Arch Linux) + Hyprland (Wayland)

Logs / additional context

buzz-desktop: persisted identity pubkey af845d68184c0da0e2a213e29c1ec52cb9a5000b65ef8a1cead9e7aaf12088ca
buzz-desktop: media proxy listening on 127.0.0.1:32883
buzz-desktop: repos dir resolved at boot — no configured override, REPOS is the default real dir
buzz-desktop: downloading STT model from https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-nemo-parakeet_tdt_ctc_110m-en-36000-int8.tar.bz2
buzz-desktop: downloading Pocket TTS decoder.onnx from https://huggingface.co/csukuangfj2/sherpa-onnx-pocket-tts-2026-01-26/resolve/96d1e53ce3311ca6c2c6a35e2062d36b4cec6fa3/decoder.onnx
Gdk-Message: 12:36:42.883: Error 71 (Protocol error) dispatching to Wayland display.

Workaround

  1. Copy the desktop file to your user directory:Bash cp /usr/share/applications/Buzz.desktop ~/.local/share/applications/

  2. Edit it: nano ~/.local/share/applications/Buzz.desktop

  3. Change the Exec= line to: Exec=env GDK_BACKEND=x11 WEBKIT_DISABLE_DMABUF_RENDERER=1 buzz-desktop

  4. Launch Buzz app

This is a known class of WebKitGTK / Tauri issues on some Wayland compositors (especially Hyprland). Forcing the X11 backend works reliably.

Ampsicora avatar Jul 27 '26 11:07 Ampsicora

I tried alot but wasn't able to get it to work.

Reproducing on CachyOS / Arch Linux (Hyprland(Caelestia-Shell) + Wayland, AMD Radeon RX 6600XT).

Tested on Buzz 0.5.9 (amd64 AppImage as well as native usr/bin/buzz-desktop extracted from the .deb release). The backend Rust
services start, but WebKitWebProcess crashes immediately during GTK webview instantiation:


  buzz-desktop: WebKit rendering left as-is — WEBKIT_DMABUF_RENDERER_FORCE_SHM=1 set in the environment
  buzz-mesh: installed tokio runtime with 8 MiB worker stacks
  buzz-desktop: persisted identity pubkey 0bc2196d5f3637bf3459c07d9dc02661f234298a500716515fa9a073c2ff77d5
  buzz-desktop: media proxy listening on 127.0.0.1:45013
  (WebKitWebProcess:13515): GLib-GObject-CRITICAL **: invalid (NULL) pointer instance
  (WebKitWebProcess:13515): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
  (WebKitWebProcess:13515): GLib-GObject-CRITICAL **: invalid (NULL) pointer instance
  (WebKitWebProcess:13515): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

• Flags tried without effect: GDK_BACKEND=x11, GDK_BACKEND=wayland, WEBKIT_DISABLE_COMPOSITING_MODE=1,        
WEBKIT_DMABUF_RENDERER_FORCE_SHM=1.    
• System WebKitGTK: libwebkit2gtk-4.1.so.0 (WebKitGTK 2.44+).    

Fai-Nim avatar Aug 11 '26 09:08 Fai-Nim

Confirming a related native crash on Arch Linux / Hyprland / Wayland with the current source-built Buzz Desktop 0.5.15.

Environment

  • Buzz Desktop: 0.5.15, source-built local installation
  • OS: Arch Linux / Omarchy
  • Kernel: 7.1.8-arch1-3
  • Session: Hyprland / Wayland
  • GPU: NVIDIA GeForce RTX 4060
  • NVIDIA driver: 610.57.04 (nvidia-open-dkms)
  • WebKitGTK: webkit2gtk-4.1 2.52.5-2
  • GTK: 3.24.52-1

Actual behavior

Buzz is unstable during normal use and repeatedly exits through native WebKit/GTK crashes. This predates local Thread Rail UI work.

A preserved WebKit renderer core shows:

Signal: SIGSEGV
Thread: SkiaGPUWorker
#0 libnvidia-eglcore.so.610.57.04
#1 libwebkit2gtk-4.1.so.0
...

A separate Buzz parent-process core shows SIGSEGV through the GTK/Tauri/Wry event loop, with WebKitGTK frames present.

The launcher already uses Buzz’s strongest current safe-rendering path:

WEBKIT_DMABUF_RENDERER_FORCE_SHM=1
WEBKIT_DISABLE_COMPOSITING_MODE=1
buzz-desktop --safe-rendering

The renderer still crashes under this configuration.

I also observed system memory/GPU pressure on the host, so that may increase crash frequency, but the preserved pre-rail renderer crash is specifically NVIDIA EGL/Skia -> WebKitGTK rather than an OOM kill.

I can provide sanitized frame-only backtraces and re-test a diagnostic build, but I will not upload raw core files because they may contain private process memory.

EmpireOperating avatar Aug 21 '26 01:08 EmpireOperating