hyprwm / Hypr

Hypr is a tiling window manager written in modern C++.
BSD 3-Clause "New" or "Revised" License
1.1k stars 33 forks source link

Jetbrains IDEs rendering artifacts and unresponsive #83

Closed hplar closed 2 years ago

hplar commented 2 years ago

Please describe the bug Jetbrains IDEs are not rendering properly and only show an unresponsive window with visual artifacting.

Steps to reproduce: Open (any?) Jetbrains IDE. I tried CLion (221.5787.29) and IntelliJ (221.5787.30)

Expected behavior I expected CLion or IntelliJ to open and display normally.

Screenshots hyper_intellij

Log: https://pastebin.com/zDtxViJp

Coredump N/A

System

❯ sudo inxi -bsfCFGm
System:    Host: void Kernel: 5.15.45_1 x86_64 bits: 64 Console: pty pts/2 Distro: Void Linux
Machine:   Type: Laptop System: ASUSTeK product: ROG Zephyrus G14 GA401IV_GA401IV v: 1.0 serial: LCNRKD013994513
           Mobo: ASUSTeK model: GA401IV v: 1.0 serial: TI0ZMC0DHM UEFI: American Megatrends v: GA401IV.220 date: 03/14/2022
Battery:   ID-1: BAT0 charge: 68.5 Wh (100.0%) condition: 68.5/76.0 Wh (90.1%) volts: 15.8 min: 15.8
Memory:    RAM: total: 38.68 GiB used: 2.79 GiB (7.2%)
           Array-1: capacity: 64 GiB note: est. slots: 2 EC: None
           Device-1: DIMM 0 size: 8 GiB speed: 3200 MT/s
           Device-2: DIMM 0 size: 32 GiB speed: 3200 MT/s
CPU:       Info: 8-Core model: AMD Ryzen 9 4900HS with Radeon Graphics bits: 64 type: MT MCP cache: L2: 4 MiB
           Speed: 1397 MHz min/max: 1400/3000 MHz Core speeds (MHz): 1: 1397 2: 1397 3: 1512 4: 1397 5: 1526 6: 1397 7: 1397
           8: 1752 9: 1397 10: 1397 11: 1397 12: 1397 13: 1585 14: 1397 15: 1420 16: 1427
           Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 bmi2 bpext cat_l3 cdp_l3 clflush
           clflushopt clwb clzero cmov cmp_legacy constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total cqm_occup_llc
           cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht
           hw_pstate ibpb ibrs ibs irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx
           nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq pdpe1gb perfctr_core
           perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good
           sep sev sev_es sha_ni skinit smap smca sme smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor svm svm_lock
           syscall tce topoext tsc tsc_scale umip v_spec_ctrl v_vmsave_vmload vgif vmcb_clean vme vmmcall wbnoinvd wdt xgetbv1
           xsave xsavec xsaveerptr xsaveopt xsaves
Graphics:  Device-1: NVIDIA TU106M [GeForce RTX 2060 Max-Q] driver: nvidia v: 515.48.07
           Device-2: Advanced Micro Devices [AMD/ATI] Renoir driver: amdgpu v: kernel
           Display: server: X.Org 1.21.1.3 driver: loaded: amdgpu,nvidia unloaded: modesetting resolution: 1: 2560x1440~60Hz
           2: 2560x1440~60Hz
           OpenGL: renderer: AMD RENOIR (DRM 3.42.0 5.15.45_1 LLVM 12.0.1) v: 4.6 Mesa 21.3.7
Audio:     Device-1: NVIDIA TU106 High Definition Audio driver: snd_hda_intel
           Device-2: Advanced Micro Devices [AMD/ATI] driver: snd_hda_intel
           Device-3: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A
           Device-4: Advanced Micro Devices [AMD] Family 17h HD Audio driver: snd_hda_intel
           Sound Server-1: ALSA v: k5.15.45_1 running: yes
Network:   Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi
           IF: wlp2s0 state: up mac: 44:af:28:34:95:09
           IF-ID-1: docker0 state: down mac: 02:42:8c:90:7a:ab
Bluetooth: Device-1: Intel type: USB driver: btusb
           Report: rfkill ID: hci0 state: up address: see --recommends
Drives:    Local Storage: total: 953.87 GiB used: 20.63 GiB (2.2%)
           ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN530 SDBPNPZ-1T00-1002 size: 953.87 GiB
Partition: ID-1: / size: 124.93 GiB used: 6.89 GiB (5.5%) fs: ext4 dev: /dev/dm-1
           ID-2: /boot/efi size: 63.98 GiB used: 352 KiB (0.0%) fs: vfat dev: /dev/nvme0n1p1
           ID-3: /home size: 386.61 GiB used: 13.09 GiB (3.4%) fs: ext4 dev: /dev/dm-6
Swap:      ID-1: swap-1 type: partition size: 48 GiB used: 0 KiB (0.0%) dev: /dev/dm-5
Sensors:   System Temperatures: cpu: 63.0 C mobo: N/A gpu: amdgpu temp: 48.0 C
           Fan Speeds (RPM): cpu: 2600
Info:      Processes: 365 Uptime: 49m Shell: Zsh inxi: 3.3.07
hplar commented 2 years ago

@vaxerski fyi

I just stumbled upon this reddit post.

When using the env var _JAVA_AWT_WM_NONREPARENTING=1 the IDEs actually render properly. Not sure if this is of any use to you.

vaxerski commented 2 years ago

that's a java issue. Idk why, happens all across linux.

hplar commented 2 years ago

Strange, I don't see this behavior on i3wm or Gnome for example. If you are aware of this and you can't/won't fix it, feel free to close.

vaxerski commented 2 years ago

maybe they force the envvar by default. I'm not planning on fixing this, but maybe forcing it isnt a bad idea

hplar commented 2 years ago

Or perhaps just put it in the wiki? So there are no unforeseen side-effects with other applications and it's documented.

vaxerski commented 2 years ago

there aren't really any side effects to that, afaik. But yeah we can go with the wiki