Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

JetBrains XWayland crash when moving cursor fast over menu/quick items

Open romanstingler opened this issue 1 year ago • 10 comments

Hyprland Version

System/Version info
Hyprland, built from branch main at commit 7e033e48ace5406a9bc442f7d403f9ce3af193f3 dirty (make: unbreak with non-GNU ln(1) after 78f9ba9fdd7e).


Bug or Regression?

Bug

Description

I know, I know, XWayland of JetBrains is bad, but crashes shouldn't happen.

hyprlandCrashReport1794.txt

How to reproduce

when moving the cursor fast over the menu items image hyprland begins to stutter and at some point it just crashes

Crash reports, logs, images, videos

No response

romanstingler avatar Jan 09 '24 10:01 romanstingler

Same happens on my Jetbrain IDEs. It's really annoying. When I put my cursor on side menus, it flickers really fast and IDE goes crash with not normal memory consumption. And also cursor doesn't work accurately on pop-up menus. it picks wrong pos

I'm using 4k HiDPi, GTK_SCALE=2, and 125% appearance on IDE.

namaek2 avatar Jan 10 '24 08:01 namaek2

The problem seems to have to do with the tooltip windows. Every action which has a tooltip creates a tooltip window which seems to be immediately closed again. The waybar window indicator switches between the IDE and win1234 with the number increasing on each frame.

shauser avatar Jan 11 '24 13:01 shauser

There are related issues that were opened on the subject : #2245 and #4257. It was fixed but other fixes broke it so it seems hard to maintain specific apps that are bad in xwayland.

The workaround that fixed lots of my issues with jetbrains IDE (tooltips that go crazy and the switcher not closing):

Thanks to #2315 (comment) it solved my issue with version v0.34.0 !

The workaround is to add windowrulev2 = noinitialfocus,class:^jetbrains-(?!toolbox),floating:1 to your config.

I hope it can help you.

PoltyPoltou avatar Jan 14 '24 09:01 PoltyPoltou

@PoltyPoltou this absolutely doesn't solve the issue

If you have something like this and resize the tree view smaller than the text 2024-01-16-17:59:41

resize to image

and you just hold the cursor on it, it starts flickering and crashes hyprland (takes about 5-10s)

Not super visible but the greenish border flickers and crashes (not recorded due to the flickering halts / crashes) the wf-recorder https://www.youtube.com/shorts/eE0Gj9Q1G3E

romanstingler avatar Jan 16 '24 17:01 romanstingler

try this

windowrulev2 = windowdance, class:^(.*jetbrains.*)$
windowrulev2 = noinitialfocus, class:^(.*jetbrains.*)$, title:^(win.*)$
windowrulev2 = nofocus, class:^(.*jetbrains.*)$, title:^(win.*)$

saswatax avatar Feb 02 '24 14:02 saswatax

can I get an ASan trace from this? https://wiki.hyprland.org/Crashes-and-Bugs/#building-the-wayland-stack-with-asan

vaxerski avatar Feb 02 '24 15:02 vaxerski

same happening with me. Adding windowrulev2 = noinitialfocus,class:^jetbrains-(?!toolbox),floating:1 to the config did not fix it

https://github.com/hyprwm/Hyprland/assets/88722240/b87996c7-da6b-4841-85fa-f14b788a56ad

danilo-alm avatar Feb 05 '24 22:02 danilo-alm

that is not an asan trace

vaxerski avatar Feb 06 '24 01:02 vaxerski

that is not an asan trace

Sorry, I didn't even see your comment. Can you inform me if it takes long to build Wayland and Hyprland? I have a laptop with a Ryzen 5 5500U and didn't want to start it and have to stop it because I needed to take my laptop somewhere.

edit: also, what is the proper way to test this? Should I just uninstall Hyprland and compile it (following this, ofc)? Will a chroot work...? Sorry, not familiar with building large things from source.

danilo-alm avatar Feb 06 '24 10:02 danilo-alm

try this

windowrulev2 = windowdance, class:^(.*jetbrains.*)$
windowrulev2 = noinitialfocus, class:^(.*jetbrains.*)$, title:^(win.*)$
windowrulev2 = nofocus, class:^(.*jetbrains.*)$, title:^(win.*)$

works for me. Thank you! I never had hyprland crash as others have, but the flickering and need to buttonmash to get any of those windows open was driving me mad.

JettScythe avatar Feb 22 '24 05:02 JettScythe

works for me. Thank you! I never had hyprland crash as others have, but the flickering and need to buttonmash to get any of those windows open was driving me mad.

It's work, but a new issue has arisen, I can't drag sidebar icon

https://github.com/hyprwm/Hyprland/assets/132195516/c8738651-8014-4f73-b23e-80b468dc04e2

Nyayurin avatar Feb 26 '24 02:02 Nyayurin

JetBrains IDE's now have experimental Wayland support Please try the versions in their Early Acess Program and see if they fix this issue. Relevant Download links: https://www.jetbrains.com/idea/nextversion/ https://www.jetbrains.com/pycharm/nextversion/ https://www.jetbrains.com/go/nextversion/

that and maybe this has been fixed by the rewrites

MightyPlaza avatar Jul 09 '24 20:07 MightyPlaza