Hyprland
Hyprland copied to clipboard
JetBrains XWayland crash when moving cursor fast over menu/quick items
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.
How to reproduce
when moving the cursor fast over the menu items
hyprland begins to stutter and at some point it just crashes
Crash reports, logs, images, videos
No response
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.
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.
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:1to your config.
I hope it can help you.
@PoltyPoltou this absolutely doesn't solve the issue
If you have something like this and resize the tree view smaller than the text
resize to
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
try this
windowrulev2 = windowdance, class:^(.*jetbrains.*)$
windowrulev2 = noinitialfocus, class:^(.*jetbrains.*)$, title:^(win.*)$
windowrulev2 = nofocus, class:^(.*jetbrains.*)$, title:^(win.*)$
can I get an ASan trace from this? https://wiki.hyprland.org/Crashes-and-Bugs/#building-the-wayland-stack-with-asan
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
that is not an asan trace
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.
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.
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
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