Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clion viusal glitches and freezing #7913

Open
1 task done
kareemAbd0 opened this issue Sep 25, 2024 · 5 comments
Open
1 task done

clion viusal glitches and freezing #7913

kareemAbd0 opened this issue Sep 25, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@kareemAbd0
Copy link

kareemAbd0 commented Sep 25, 2024

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

Yes

System Info and Version

System/Version info
hyprctl systeminfo -c                                                                                                                                                          ✔ 
Hyprland, built from branch  at commit 9a09eac79b85c846e3a865a9078a3f8ff65a9259  (props: bump version to 0.42.0).
Date: Wed Aug 7 19:17:10 2024
Tag: v0.42.0, commits: 5069

flags: (if any)


System Information:
System name: Linux
Node name: KareemsPC
Release: 6.9.12-3-MANJARO
Version: #1 SMP PREEMPT_DYNAMIC Wed Aug  7 16:19:28 UTC 2024


GPU information: 
00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 620 [8086:5917] (rev 07) (prog-if 00 [VGA controller])


os-release: NAME="Manjaro Linux"
PRETTY_NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch
BUILD_ID=rolling
ANSI_COLOR="32;1;24;144;200"
HOME_URL="https://manjaro.org/"
DOCUMENTATION_URL="https://wiki.manjaro.org/"
SUPPORT_URL="https://forum.manjaro.org/"
BUG_REPORT_URL="https://docs.manjaro.org/reporting-bugs/"
PRIVACY_POLICY_URL="https://manjaro.org/privacy-policy/"
LOGO=manjarolinux


plugins:

======Config-Start======


Config File: /home/kareem/.config/hypr/hyprland.conf: Read Succeeded
########################################################################################
#AUTOGENERATED HYPR CONFIG.
#PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT,
#OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
########################################################################################

#
# Please note not all available settings / options are set here.
# For a full list, see the wiki
#

#autogenerated = 1 # remove this line to remove the warning

# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=HDMI-A-1,1920x1080@60,0x0,1
monitor=eDP-1,1920x1080@60,1920x0,1


workspace =1,monitor:HDMI-A-1
workspace =2, monitor:eDP-1
workspace =3,monitor:HDMI-A-1
workspace =5,monitor:HDMI-A-1
workspace =6,monitor:HDMI-A-1
workspace =7,monitor:HDMI-A-1
workspace =8,monitor:HDMI-A-1
workspace =9,monitor:HDMI-A-1
workspace =10,monitor:HDMI-A-1
# See https://wiki.hyprland.org/Configuring/Keywords/ for more

# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox

exec-once = hyprpaper
exec-once = hypridle


#make the default workspace on HDMI-A-1 monitor
exec-once = hyprctl dispatch workspace 1

exec-once = dunst
exec-once = waybar

exec-once = nm-applet
exec-once = xhost si:localuser:root

#exec-once = ~/.local/bin/dynamic-borders.sh

# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf

# Set programs that you use
#$terminal = alacritty
$terminal = kitty
#$fileManager = dolphin
$fileManager = nautilus 
#$menu = rofi -show drun
$menu =  ~/.config/rofi/launchers/type-1/launcher.sh

$powermenu = ~/.config/rofi/powermenu/type-1/powermenu.sh

# Some default env vars.
env = XCURSOR_SIZE,24
env=XCURSOR_THEME,breeze


#windowrules

windowrulev2 = maxsize 1000 600,class:(jetbrains-clion)
#windowrulev2 = minsize 300 400,class:^(jetbrains-)(.*)$,title:^(\s*)$

# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
general {
# See https://wiki.hyprland.org/Configuring/Variables/ for more

	gaps_in = 5
		gaps_out = 10

		border_size = 3
		col.active_border = rgba(f0f0f0ff)

		layout = dwindle
		windowrulev2 = noborder, onworkspace:w[t1]

# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
		allow_tearing = false

}

group{
	groupbar {
#blue
		col.active = 0xaf2297a7
		col.inactive = 0xa0656b73




	}
	col.border_active = rgba(00000000)





}

input {
	kb_layout = us,ara
		kb_variant =
		kb_model =
		kb_options = grp:alt_shift_toggle
		kb_rules =


		follow_mouse = 1

		touchpad {
			natural_scroll = yes


		}

	sensitivity = 0.35 # -1.0 - 1.0, 0 means no modification.
}


decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more

	rounding = 8

		blur {
			enabled = true
				size = 7
				passes = 2
		}

	drop_shadow = yes
		shadow_range = 4
		shadow_render_power = 3
		col.shadow = rgba(1a1a1aee)
}

animations {
	enabled = yes

# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more

		bezier = myBezier, 0.05, 0.9, 0.1, 1.05

		animation = windows, 1, 7, myBezier
		animation = windowsOut, 1, 7, default, popin 80%
		animation = border, 1, 10, default
		animation = borderangle, 0, 8, default
		animation = fade, 1, 7, default
		animation = workspaces, 0, 5, default
}

dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more




	pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
	preserve_split = yes # you probably want this




       # no_gaps_when_only = 1
}




master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
#new_is_master = true
}

gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
	workspace_swipe = off
}



misc {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
	force_default_wallpaper = 0 # Set to 0 to disable the anime mascot wallpapers
}

# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
#device:epic-mouse-v1 {
#    sensitivity = -0.5
#}












# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
#windowrulev2 = nomaximizerequest, class:.* # You'll probably like this.


# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, RETURN, exec, $terminal
bind = $mainMod, Z, killactive,
     bind = $mainMod SHIFT,E, exit,
     bind = $mainMod SHIFT,F, exec, $fileManager
     bind = $mainMod,Q, togglefloating,
     bind = $mainMod, X, exec, $menu
     bind = SUPER_SHIFT,P, exec, $powermenu
     bind = $mainMod, P, pseudo, # dwindle
     bind = $mainMod, T, togglesplit, # dwindle
     bind = $mainMod, W, togglegroup
     bind = $mainMod, A ,exec, hyprctl dispatch changegroupactive b
     bind = $mainMod, D, exec, hyprctl dispatch changegroupactive f
     bind=SUPER,F,fullscreen


     bind = $mainMod, G, exec, firefox
# Move focus with mainMod + arrow keys
     bind = $mainMod, left, movefocus, l
     bind = $mainMod, right, movefocus, r
     bind = $mainMod, up, movefocus, u
     bind = $mainMod, down, movefocus, d

     bind = $mainMod, h, movefocus, l
     bind = $mainMod, l, movefocus, r
     bind = $mainMod, k, movefocus, u
     bind = $mainMod, j, movefocus, d
# Switch workspaces with mainMod + [0-9]
     bind = $mainMod, 1, workspace, 1
     bind = $mainMod, 2, workspace, 2
     bind = $mainMod, 3, workspace, 3
     bind = $mainMod, 4, workspace, 4
     bind = $mainMod, 5, workspace, 5
     bind = $mainMod, 6, workspace, 6
     bind = $mainMod, 7, workspace, 7
     bind = $mainMod, 8, workspace, 8
     bind = $mainMod, 9, workspace, 9
     bind = $mainMod, 0, workspace, 10

# Move active window to a workspace with mainMod + SHIFT + [0-9]
     bind = $mainMod SHIFT, 1, movetoworkspace, 1
     bind = $mainMod SHIFT, 2, movetoworkspace, 2
     bind = $mainMod SHIFT, 3, movetoworkspace, 3
     bind = $mainMod SHIFT, 4, movetoworkspace, 4
     bind = $mainMod SHIFT, 5, movetoworkspace, 5
     bind = $mainMod SHIFT, 6, movetoworkspace, 6
     bind = $mainMod SHIFT, 7, movetoworkspace, 7
     bind = $mainMod SHIFT, 8, movetoworkspace, 8
     bind = $mainMod SHIFT, 9, movetoworkspace, 9
     bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Example special workspace (scratchpad)
     bind = $mainMod, S, togglespecialworkspace, magic
     bind = $mainMod SHIFT, S, movetoworkspace, special:magic

# Scroll through existing workspaces with mainMod + scroll
     bind = $mainMod, mouse_down, workspace, e+1
     bind = $mainMod, mouse_up, workspace, e-1

# Move/resize windows with mainMod + LMB/RMB and dragging
     bindm = $mainMod, mouse:272, movewindow
     bindm = $mainMod, mouse:273, resizewindow

# Move/resize windows with mainMod + arrow keys or hjkl

     bind = SUPER_SHIFT, left, movewindow, l
     bind = SUPER_SHIFT, right, movewindow, r
     bind = SUPER_SHIFT , up, movewindow, u
     bind = SUPER_SHIFT, down, movewindow, d
     bind = SUPER_SHIFT, h, movewindow, l
     bind = SUPER_SHIFT, l, movewindow, r
     bind = SUPER_SHIFT, k, movewindow, u
     bind = SUPER_SHIFT, j, movewindow, d



     bind = $mainMod CTRL, h, resizeactive, -40 0
     bind = $mainMod CTRL, l, resizeactive, 40 0
     bind = $mainMod CTRL, k, resizeactive, 0 -40
     bind = $mainMod CTRL, j, resizeactive, 0 40



     bindm = $mainMod, R, resizewindow


# plugins

     plugin:hyprfocus {
	    enabled = yes

		    keyboard_focus_animation = flash
		    mouse_focus_animation = flash

		    bezier = bezIn, 0.5,0.0,1.0,0.5
		    bezier = bezOut, 0.0,0.5,0.5,1.0

		    flash {
			    flash_opacity = 0.7

				    in_bezier = bezIn
				    in_speed = 0.5

				    out_bezier = bezOut
				    out_speed = 3
		    }

	    shrink {
		    shrink_percentage = 0.80

			    in_bezier = bezIn
			    in_speed = 0.5

			    out_bezier = bezOut
			    out_speed = 3
	    }
     }




# extra binds
bind = , xf86audioraisevolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5%

bind = , xf86audiolowervolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5%

bind = , XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle

bind = , XF86MonBrightnessUp, exec, brightnessctl set +10%

bind = , XF86MonBrightnessDown, exec, brightnessctl set 10%-



bind = SUPER_SHIFT, S, exec, grim -g "$(slurp)" - | wl-copy

bind = SUPER , c, exec, /opt/clion/bin/clion.sh

bind = SUPER_SHIFT_CONTROL , l, exec, hyprlock


#power off bind
bind = $mainMod SUPER_SHIFT_CONTROL,P, exec, poweroff

======Config-End========

Description

Clion has visual glitches that sometimes freeze when using some pop-ups, also scrolling through sub menus is very slow, shift shift pop up also does the same thing but I added some window rule that sets it to some size and the drift is less than the video, I will attach it to demonstrate a nonexclusive example, also it works perfectly on sway

the app runs on native Wayland since it's using the default JRE 21 runtime with the following VM options

-Didea.suppressed.plugins.set.selector=radler
-Dawt.toolkit.name=WLToolkit

this used to work fine but the slowness in the submenu was always present

also my clion window rule does not affect anything regarding the bugs

2024-09-26.01-06-49-cut.mp4

there is a freeze at the end of the video, only killing the app closes it.

again it works perfectly on sway

How to reproduce

clion and clion-jre from the aur, add the vm VM options present in the descriptions

Crash reports, logs, images, videos

No response

@kareemAbd0 kareemAbd0 added the bug Something isn't working label Sep 25, 2024
@vaxerski
Copy link
Member

I would still err on the side of caution as the wayland support in intellij is experimental, and it seems to be the only app affected...?

I don't see the visual glitches in your video, only an escaping window (lol how)

@kareemAbd0
Copy link
Author

the whole program freezes after the window escapes with only killall able to close it

I know it's experimental but as I mentioned it works perfectly on sway, plasma wayland, older hyprland with the same settings

so, it is probably a hyprland issue, some other sub-windows open in comically huge sizes and start to expand and escape to the side, the app freezes after

removing the VM options makes the app run on xwayland with very off submenu locations

@vaxerski
Copy link
Member

older hyprland? please bisect then :) https://wiki.hyprland.org/Crashes-and-Bugs/#bisecting-an-issue

@kareemAbd0
Copy link
Author

so I had this window rule that prevents certain pop-ups from opening in large sizes because it can't be sized down for some reason.

windowrulev2 = maxsize 1000 600,class:(jetbrains-clion)

removing this fixed the running away and then freezing window problem, but the slow mouse menu items highlight is still present, which was always an issue on Hyprland.

the weird thing is that when trying to record the menu highlighting issue it was always fixed while recording and not after (lol how again ) .

feel free to close this if you want since the original was due to some window rule, unless you think the other is worth investigating

@hdm9527
Copy link

hdm9527 commented Sep 26, 2024

so I had this window rule that prevents certain pop-ups from opening in large sizes because it can't be sized down for some reason.

This problem is related to xwayland title #7401. Zooming with shortcut keys works fine, but zooming with the mouse will expand the sub-window. Set this value to true, and you can zoom with the mouse as well.

return false;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants