microsoft / microsoft/wslg

Xwayland process stuck and begins to consume 100% CPU with NVIDIA GPU

Open
#552 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug GPU
Dominant language
C++
Stars
11.9k
Forks
429
PR merge metrics
No merged PRs in 30d

Description

Environment

Microsoft Windows [Version 10.0.22000.258]
Release: 20.04`
WLSg 1.0.26

Steps to reproduce

wsl --shutdown
Open Ubuntu Prompt
$ glxinfo

WSL logs:

versions.txt
weston.log
stderr.log
dmesg.txt

Expected behavior

output from glxinfo

Actual behavior

It's hung.

Additional info:

In this machine I have an RTX 3060 and a GT710. If I disable the RTX 3060, then I do get output from glxinfo. I have tried this machine with only the RTX3060 installed. In that case it also fails

/dev/dxg is present

jaga@JAGA:/mnt/wslg$ ls /mnt/wslg/.X11-unix/
X0

system distro# ps -aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 2944 1780 ? Sl 20:20 0:00 /init
root 2 0.0 0.0 3032 2036 ? Sl 20:20 0:00 /init
root 6 0.0 0.0 2944 144 ? S 20:20 0:00 /init
root 7 0.0 0.1 14040 6136 ? S 20:20 0:00 /usr/bin/WSLGd
wslg 10 0.0 0.6 856596 34676 ? Sl 20:20 0:00 /usr/bin/weston --backend=rdp-backend.so --xwayland --s
wslg 12 0.0 0.0 2856 4 ? S 20:20 0:00 /tools/init /mnt/c/Program Files/WindowsApps/MicrosoftC
message+ 13 0.0 0.0 7164 3716 ? S 20:20 0:00 /usr/bin/dbus-daemon --syslog --nofork --nopidfile --sy
wslg 14 0.0 0.1 233900 6872 ? Sl 20:20 0:00 /usr/bin/pulseaudio --log-target=file:/mnt/wslg/pulseau
wslg 18 0.0 0.0 7032 372 ? Ss 20:20 0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 5 --pr
wslg 20 0.0 0.1 14948 7772 ? S 20:20 0:00 /usr/libexec/weston-rdprail-shell
root 47 0.0 0.0 2964 80 ? Ss 20:20 0:00 /init
root 48 0.0 0.0 2964 96 ? R 20:20 0:00 /init
root 49 0.0 0.0 7772 4516 pts/0 Ss 20:20 0:00 -bash
root 73 0.0 0.0 3052 88 ? Ss 20:20 0:00 /init
root 74 0.0 0.0 3052 104 ? S 20:20 0:00 /init
wslg 75 0.0 0.0 10056 5044 pts/0 Ss 20:20 0:00 -bash
wslg 88 0.0 0.0 5660 1684 pts/0 S+ 20:20 0:00 glxinfo
wslg 89 99.3 0.7 219300 44308 ? Rl 20:20 11:06 /usr/bin/Xwayland :0 -rootless -core -listen 73 -wm 74
root 95 0.0 0.0 3228 2004 pts/0 R+ 20:31 0:00 ps -aux

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the attached versions.txt, weston.log, stderr.log, and dmesg.txt files, then reproduce the issue with wsl --shutdown, Ubuntu, and glxinfo on the RTX 3060 setup. Trace the interaction between glxinfo and the Xwayland process shown consuming 100% CPU; done means glxinfo returns output without Xwayland hanging or spinning.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux, ubuntu
Domain
computer-graphics, operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.