Hyprland: Xwayland rootful crashes when receiving mouse input

Hyprland Version

Hyprland, built from branch main at commit f69c5469d79f31f77f4662731ac6255e285febed dirty (readme: refactor and update a bit). Tag: v0.29.0-21-gf69c5469 flags: (if any)

Bug or Regression?

Bug

Description

Running Xwayland rootful crashes with the following logs when the mouse moves within the window.

Xwayland:

XWAYLAND: wl_display@1: error 1: invalid arguments for wl_shm@4.create_pool
(EE) failed to dispatch Wayland events: Invalid argument
X connection to :3 broken (explicit kill or server shutdown).

Hyprland:

New XDG Surface created. (class: org.freedesktop.Xwayland)
Registered signal for owner 5595769bd3a0: 559576962c20 -> 5595769bd420 (owner: XDG Window)
Registered signal for owner 5595769bd3a0: 559576962d90 -> 00:12:04.672 [INFO] [wayland] file descriptor expected, object (4), message create_pool(nhi)
00:12:04.672 [INFO] [wayland] error in client communication (pid 5964)
00:12:04.674 [ERROR] [render/allocator/gbm.c:50] gbm_bo_get_fd_for_plane failed
00:12:04.674 [ERROR] [render/swapchain.c:110] Failed to allocate buffer

Any GTK app that i tested triggers the crash. Xterm for some reason doesn’t.

How to reproduce

> Run Xwayland -decorate -noreset :3 > Run a X11 window manager. Tested i3 and openbox. > Run any GTK app inside Xwayland > Crash > why

Crash reports, logs, images, videos

No response

About this issue

  • Original URL
  • State: open
  • Created 10 months ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

I blame hypr-chan.

go fuck yourself.