Wayland VRAM memory leak when resizing XWayland clients
System information
System: Host: Erik-Arch-Desktop Kernel: 5.15.2-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
Desktop: sway 1.6-cbecc5cb dm: SDDM Distro: Arch Linux
CPU: Info: 8-Core model: AMD Ryzen 7 5800X bits: 64 type: MT MCP arch: Zen 3 rev: 0 cache: L2: 4 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 121600
Speed: 3696 MHz min/max: 2200/3800 MHz boost: enabled Core speeds (MHz): 1: 3696 2: 3709 3: 2866 4: 3105 5: 2732
6: 3716 7: 3420 8: 3368 9: 2461 10: 3351 11: 3254 12: 4629 13: 3705 14: 3029 15: 2739 16: 2880
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT]
vendor: XFX Limited XFX Speedster MERC 319 driver: amdgpu v: kernel bus-ID: 13:00.0 chip-ID: 1002:73bf
Device-2: Logitech HD Pro Webcam C920 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 5-1:2 chip-ID: 046d:082d
Display: wayland server: X.Org 1.21.1.2 compositor: sway driver: loaded: amdgpu unloaded: modesetting
alternate: ati,fbdev,vesa resolution: 1: 2560x1440~170Hz 2: 1920x1080~60Hz s-dpi: 96
OpenGL: renderer: AMD Radeon RX 6800 XT (sienna_cichlid LLVM 13.0.0 DRM 3.42 5.15.2-zen1-1-zen)
v: 4.6 Mesa 22.0.0-devel (git-e6b4678fdb) direct render: Yes
- OS: Arch Linux
- GPU: AMD Radeon 6800 XT
- Kernel version: Linux 5.15.2-zen1-1-zen
- Mesa version: Mesa 22.0.0-devel (git-e6b4678f)
- Desktop manager and compositor: Sway 1.6-cbecc5cb (Nov 16 2021, branch 'master')
Describe the issue
Please describe what you are doing, what you expect and what you're seeing instead. How frequent is the issue? Is it a one time occurrence? Does it appear multiple times but randomly? Can you easily reproduce it?
"It doesn't work" usually is not a helpful description of an issue. The more detail about how things are going wrong, the better.
Resizing XWayland windows fills the vram until it spills over into the system ram. It does not affect native Wayland software like Firefox (Wayland), any GTK program and alacritty while affecting Firefox(X11), KDE System Monitor, Chromium, etc... This happens on all Wayland WMs/DEs like KDE Plasma (Wayland), Sway and Wayfire.
Regression
Does not affect the latest stable mesa 21.2.5-1
.
Log files as attachment
Video
Edited by Erik Reider