hyprwm / Hyprland

Hyprland is a highly customizable dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
18.02k stars 754 forks source link

Animated X11 cursor crashes Xwayland #4244

Open 0x42697262 opened 6 months ago

0x42697262 commented 6 months ago

Hyprland Version

Hyprland, built from branch HEAD at commit d74607e414dcd16911089a6d4b6aeb661c880923 (props: bump ver to 0.33.1). Tag: v0.33.1

flags: (if any)

Bug or Regression?

Bug

Description

Xwayland crashes when using an X11 cursor for Hyprland. The crash happens randomly as it can be any minute or any hours. The crash only occurs on Hyprland but not on these compositors that I have tested for days:

After the crash, xwayland does not run anymore unless i restart hyprland.

Some other issues i've read regarding the xwayland crash:

My temporary solution to this is to nest Hyprland and run xwayland apps there. Then the more likely solution is to not use animated cursors that is built for X11.

Running file left_ptr to one of the cursors shows:

left_ptr: X11 cursor

I took the cursor here (iirc): https://store.kde.org/p/1847757 but I am not sure since it has been years since I've used this cursor on x11.

How to reproduce

  1. Get the cursor and set your cursor to Koishi-Komeiji for system-wide, local, and gtk. Or get it here
  2. Open any xwayland apps (i like to use obisdian, rofi (yes rofi), and godot).
  3. Wait.
  4. Crash, and cannot open any xwayland apps anymore.

Crash reports, logs, images, videos

XWAYLAND: wl_display@1: error 1: invalid arguments for wl_shm@4.create_pool
(EE) failed to dispatch Wayland events: Invalid argument

i got no other logs for this since hyprland (even built on debug mode) cannot show the reason for the crash (i think?)

vaxerski commented 6 months ago

main is not a version, please post output of hyprctl version.

0x42697262 commented 6 months ago

main is not a version, please post output of hyprctl version.

my bad, updated the description (v0.33.1)

also here it is:

Hyprland, built from branch HEAD at commit d74607e414dcd16911089a6d4b6aeb661c880923  (props: bump ver to 0.33.1).
Tag: v0.33.1

flags: (if any)
vaxerski commented 6 months ago

have you tested -git?

0x42697262 commented 6 months ago

have you tested -git?

i've been using -git for a long time and same issues before. I just recently moved to extra in arch repo just recently (december 15) once i knew about it. So, i can safely say the -git has some issues. as for the new git versions, not sure but my friend tried using the same cursor and they also got a crash (he also uses -git)

yumio7 commented 3 months ago

Ironically, just ported a theme of the same artist's Momiji Inubashiri cursor (also animated) to xcursor, and I'm now suddenly running into this very same issue.

Hyprland, built from branch HEAD at commit c5e28ebcfe00a510922779b2c568cfa52a317445 (props: bump ver 0.37.1).

yumio7 commented 3 months ago

Setting a different cursor in my env with hyprland config solved the issue. Even if the cursor is applied everywhere else. So I think this is most certainly a Hyprland bug.