Intel/mesa: XWayland causes a memory leak, and a GPU hang.
Check if a new version of Mesa is available which might have fixed the problem.
Running the latest package from the repo.
If you can, check if the latest development version (git main) works better.
This issue also happens in the git
branch build.
Check if your bug has already been reported here.
Looks like not alot of users affected by this issue
No bugs or errors are apparent even after reboot add to that the gpu freeze, hence there no coredumps
or dmesg
to attach, prime suspect are VA-API
and electron
apps.
System information
inxi -GSC -xx
System:
Host: Korialo-Arch Kernel: 6.3.8-arch1-1 arch: x86_64 bits: 64 compiler: gcc
v: 13.1.1 Desktop: Hyprland dm: SDDM Distro: Arch Linux
CPU:
Info: 8-core model: Intel Core i7-10870H bits: 64 type: MT MCP
arch: Comet Lake rev: 2 cache: L1: 512 KiB L2: 2 MiB L3: 16 MiB
Speed (MHz): avg: 3656 high: 4748 min/max: 800/5000 cores: 1: 4706 2: 2200
3: 4298 4: 4301 5: 4301 6: 4283 7: 4748 8: 2200 9: 2458 10: 4447 11: 2200
12: 2200 13: 2200 14: 4722 15: 4746 16: 4492 bogomips: 70421
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel CometLake-H GT2 [UHD Graphics] vendor: Gigabyte driver: i915
v: kernel arch: Gen-9.5 ports: active: eDP-1 empty: DP-1, DP-2, HDMI-A-1,
HDMI-A-2, HDMI-A-3 bus-ID: 00:02.0 chip-ID: 8086:9bc4
Device-2: NVIDIA GA104M [GeForce RTX 3080 Mobile / Max-Q 8GB/16GB]
vendor: Gigabyte driver: nvidia v: 535.54.03 arch: Ampere pcie:
speed: 2.5 GT/s lanes: 16 ports: active: none empty: DP-3,HDMI-A-4
bus-ID: 01:00.0 chip-ID: 10de:249c
Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.2
compositor: Hyprland driver: X: loaded: modesetting,nvidia
alternate: fbdev,intel,nouveau,nv,vesa dri: iris gpu: i915 display-ID: 1
Monitor-1: eDP-1 model: Sharp LQ173M1JW04 res: 1920x1080 dpi: 128
diag: 438mm (17.3")
API: OpenGL v: 4.6 Mesa 23.1.2 renderer: Mesa Intel UHD Graphics (CML GT2)
direct-render: Yes
- OS: (
NAME="Arch Linux" PRETTY_NAME="Arch Linux"
) - GPU: (
00:02.0 VGA compatible controller [0300]: Intel Corporation CometLake-H GT2 [UHD Graphics] [8086:9bc4] (rev 05)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104M [GeForce RTX 3080 Mobile / Max-Q 8GB/16GB] [10de:249c] (rev a1)
)
- Kernel version: (
Linux Korialo-Arch 6.3.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 14 Jun 2023 20:10:31 +0000 x86_64 GNU/Linux
) - Mesa version: (
OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.1.2
) - Xserver version (if applicable): (
X.Org X Server 1.21.1.8 X Protocol Version 11, Revision 0 Current Operating System: Linux Korialo-Arch 6.3.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 14 Jun 2023 20:10:31 +0000 x86_64 Kernel command line: initrd=\EFI\arch\intel-ucode.img initrd=\EFI\arch\initramfs-linux.img root=/dev/nvme0n1p2 rw quiet nvidia_drm.modeset=1 mitigations=off nowatchdog zswap.enabled=0
) - Desktop manager and compositor:
Hyprland
Describe the issue
I usually have multiple browser tabs and other apps running simultaneously, this issue appears if the browser -Brave
in my case - is running for multiple hours, the XWayland keeps consuming memory from ~ 100mb and keep increasing to multiple gigabytes, closing the browser leads XWayland stuck at 100% cpu indefinitely, trying to relaunch the browser fails - more like delayed - unless I kill the process, sometimes the gpu freezes but the audio keeps running, this leak also happens in X11 session.
Regression
I can't say it happened with mesa 22.x.x, this issue is more recent.
Log files as attachment
- Output of
dmesg
None, unfortunately.
- Backtrace
None. backtrace-xwayland.txt
I hope this going to useful.
- Gpu hang details
I don't know how to catch those.
Screenshots/video files (if applicable)
I'll update this later.
Any extra information would be greatly appreciated
I'm sorry if this issue description is not so indicative of the situation, maybe you could guide me through it, thanks in advance.
Here my browser command: brave --in-process-gpu --use-gl=egl --disable-features=UseChromeOSDirectVideoDecoder --enable-features=VaapiVideoDecodeLinuxGL --disable-gpu-vsync
chromium defaults to X11 some no need to change Ozone platform
flag sine harsware acceleration is on X11 only.
Also my media player command: mpv --hwdec=nvdec --vo=gpu-next --gpu-context=x11vk