Window stuck to virtual desktop, can't remove without killing Xorg

Hi, I’m running EndeavourOS KDE with KDE Plasma Version 5.22.3, KDE Frameworks Version 5.84.0 and Qt Version 5.15.2.

System info
System:
  Kernel: 5.10.52-1-lts x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-linux-lts 
  root=UUID=1ade638b-2046-4deb-abf6-5d158ba55143 rw quiet loglevel=3 
  nowatchdog 
  Desktop: KDE Plasma 5.22.3 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: EndeavourOS base: Arch Linux 
Machine:
  Type: Laptop System: HP product: HP Laptop 14-bw0xx v: N/A serial: <filter> 
  Chassis: type: 10 serial: <filter> 
  Mobo: HP model: 8324 v: 22.27 serial: <filter> UEFI: AMI v: F.28 
  date: 04/09/2019 
Battery:
  ID-1: BAT0 charge: 28.0 Wh (100.0%) condition: 28.0/28.0 Wh (100.0%) 
  volts: 16.6 min: 14.6 model: HP Primary type: Li-ion serial: N/A 
  status: Full cycles: 252 
CPU:
  Info: Dual Core model: AMD E2-9000e RADEON R2 4 COMPUTE CORES 2C+2G bits: 64 
  type: MCP arch: Excavator family: 15 (21) model-id: 70 (112) stepping: 0 
  microcode: 6006705 cache: L2: 1024 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 5989 
  Speed: 1096 MHz min/max: 1100/1500 MHz boost: enabled Core speeds (MHz): 
  1: 1096 2: 1096 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
  disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: AMD Stoney [Radeon R2/R3/R4/R5 Graphics] vendor: Hewlett-Packard 
  driver: amdgpu v: kernel bus-ID: 00:01.0 chip-ID: 1002:98e4 class-ID: 0300 
  Device-2: Sunplus Innovation HP TrueVision HD Camera type: USB 
  driver: uvcvideo bus-ID: 1-1.3:3 chip-ID: 1bcf:2c9b class-ID: 0e02 
  Display: x11 server: X.org 1.20.12 compositor: kwin_x11 driver: 
  loaded: amdgpu,ati unloaded: fbdev,modesetting,vesa 
  resolution: <missing: xdpyinfo> 
  Message: Unable to show advanced data. Required tool glxinfo missing. 
Audio:
  Device-1: AMD vendor: Hewlett-Packard driver: snd_hda_intel v: kernel 
  bus-ID: 00:01.1 chip-ID: 1002:15b3 class-ID: 0403 
  Device-2: AMD Family 15h Audio vendor: Hewlett-Packard driver: snd_hda_intel 
  v: kernel bus-ID: 00:09.2 chip-ID: 1022:157a class-ID: 0403 
  Sound Server-1: ALSA v: k5.10.52-1-lts running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: no 
  Sound Server-4: PipeWire v: 0.3.32 running: yes 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: N/A modules: r8169 port: e000 
  bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200 
  Device-2: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi 
  v: kernel port: e000 bus-ID: 03:00.0 chip-ID: 8086:24fb class-ID: 0280 
  IF: wlan0 state: up mac: <filter> 
Bluetooth:
  Device-1: Intel Wireless-AC 3168 Bluetooth type: USB driver: btusb v: 0.8 
  bus-ID: 1-1.4:4 chip-ID: 8087:0aa7 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running 
  rfk-block: hardware: no software: yes address: see --recommends 
Drives:
  Local Storage: total: 465.76 GiB used: 201.26 GiB (43.2%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital 
  model: WD5000LPCX-60VHAT0 size: 465.76 GiB block-size: physical: 4096 B 
  logical: 512 B speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter> rev: 1A01 
  scheme: GPT 
Partition:
  ID-1: / raw-size: 32 GiB size: 31.2 GiB (97.50%) used: 17.19 GiB (55.1%) 
  fs: ext4 dev: /dev/sda4 maj-min: 8:4 
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%) 
  used: 89 MiB (34.8%) fs: vfat dev: /dev/sda1 maj-min: 8:1 
  ID-3: /home raw-size: 200.54 GiB size: 196.89 GiB (98.18%) 
  used: 79.29 GiB (40.3%) fs: ext4 dev: /dev/sda5 maj-min: 8:5 
Swap:
  Kernel: swappiness: 10 (default 60) cache-pressure: 100 (default) 
  ID-1: swap-1 type: file size: 2 GiB used: 79.3 MiB (3.9%) priority: -2 
  file: /swapfile 
Sensors:
  System Temperatures: cpu: 41.0 C mobo: N/A gpu: amdgpu temp: 41.0 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 169 Uptime: 6h 28m wakeups: 3 Memory: 3.28 GiB 
  used: 1.7 GiB (51.7%) Init: systemd v: 249 tool: systemctl Compilers: 
  gcc: 11.1.0 Packages: 1214 pacman: 1207 lib: 257 flatpak: 7 Shell: Bash 
  v: 5.1.8 running-in: yakuake inxi: 3.3.05 

Issue:
2 programs I use are Nethack-qt and OSM Scout Server, installed via yay & flatpak, respectively. Yesterday, when I closed OSM Scout Server, the program itself closed, but the window stuck to the screen. KSysGuard showed no sign of the program either. I didn’t try to reproduce it, but left it for next weekend. Today, I was playing Nethack-qt and it showed the same behaviour.

Observed behaviour:
Cannot remove this zombie window shadow without killing Xorg. It doesn’t appear on other virtual desktops though.

Expected behaviour:
The window shouldn’t exist like this in the first place :angry:
It should be gone after showing me my result

What I’ve tried:

  1. kquitapp5 plasmashell && kstart5 plasmashell
  2. kill Xorg (only workaround atm, though it kills my other apps)
  3. searched google, but nothing remotely related to this issue

How do I get rid of this zombie window? And how do I prevent this from occurring in the future?

I have not seen that issue but I would try removing xf86-video-ati and see if that helps. I don’t think you need that for a GCN 3.0 gpu.

1 Like

I don’t wanna mess with drivers anymore, I borked my Manjaro install that way in the past.
Another workaround is to run kwin_x11 --replace &. Also, the behaviour could not be reproduced in linux kernel 5.13.