https://bugs.kde.org/show_bug.cgi?id=512434

            Bug ID: 512434
           Summary: System freezes for a few seconds when interacting with
                    x11 app using xwayland inside a docker container
    Classification: Plasma
           Product: kwin
      Version First 6.5.3
       Reported In:
          Platform: CachyOS
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: xwayland
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
System freezes for a few seconds when interacting with Burpsuite’s menu bar
inside a Docker container using XWayland.

STEPS TO REPRODUCE
1. Build the docker image with the following Dockerfile
```
FROM artixlinux/artixlinux:base-openrc

WORKDIR /workspace

RUN pacman -Syu --noconfirm
RUN pacman -S --noconfirm jdk21-openjdk wget libxrandr libxtst fontconfig
ttf-firacode-nerd
RUN wget
"https://portswigger.net/burp/releases/download?product=community&version=2025.9.5&type=Jar";
-O BurpSuiteCommunity.jar

ENTRYPOINT ["/bin/bash"]
```

Build command:
`sudo docker buildx build -t xwayland-test -f Dockerfile .`

2. Create a container using that image
Allow X access for GUI:
`xhost +local:`

Run the container:
`sudo docker run -ti -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -e
XDG_RUNTIME_DIR=/tmp -e WAYLAND_DISPLAY=$WAYLAND_DISPLAY -v
$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:/tmp/$WAYLAND_DISPLAY --name xwayland
xwayland-test`

3. Start burpsuite in the container:
`_JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true' java -jar
BurpSuiteCommunity.jar` 

OBSERVED RESULT
When hovering over or clicking the items in Burp’s main menu bar (Burp /
Project / Intruder etc), or when a new window/dialog spawns, the entire system
freezes for a few seconds.
Quitting the application also triggers the freeze.

EXPECTED RESULT
X11 applications running inside a Docker container via XWayland should not
freeze the system.

SOFTWARE/OS VERSIONS

Operating System: CachyOS Linux
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.0
Kernel Version: 6.17.8-2-cachyos (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
`journalctl -f` logs during freeze events.
Nov 21 17:26:27 cachyos kwin_wayland[27697]: The main thread was hanging
temporarily!
Nov 21 17:26:29 cachyos systemd[1420]:
[email protected]: Consumed 2.470s
CPU time, 182.1M memory peak.
Nov 21 17:26:31 cachyos kwin_wayland[27697]: The main thread was hanging
temporarily!
Nov 21 17:30:16 cachyos kwin_wayland[27697]: The main thread was hanging
temporarily!
Nov 21 17:30:20 cachyos kwin_wayland[27697]: The main thread was hanging
temporarily!
Nov 21 17:30:25 cachyos kwin_wayland[27697]: The main thread was hanging
temporarily!
Nov 21 17:30:28 cachyos kwin_wayland[27697]: The main thread was hanging
temporarily!
Nov 21 17:30:32 cachyos kwin_wayland[27697]: The main thread was hanging
temporarily!
Nov 21 17:30:35 cachyos kwin_wayland[27697]: 0x1: GL_INVALID_VALUE in
glTexSubImage2D(xoffset 0 + width 48 > 10)
Nov 21 17:30:39 cachyos kwin_wayland[27697]: The main thread was hanging
temporarily!

Video showing the freezes:
https://youtu.be/9wH5EgBtB0M

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to