Open PietroValerio opened 1 month ago
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Multiple log files found, using: https://github.com/user-attachments/files/17041292/ros2log.zip
Detected appx version: 2.2.4.0
/logs
the logs are already provided
We need logs provided by the collect-wsl-logs script.
/logs
Ok I see that those are already included, the zip files are just changed.
Is systemd enabled in your distribution ? Does disabling it solve the issue ?
Ok I see that those are already included, the zip files are just changed.
Is systemd enabled in your distribution ? Does disabling it solve the issue ?
systemd is enabled, can you explain better on how i disable it?
You can disable systemd via /etc/wsl.conf
[boot]
systemd=false
Disabling systemd solves the issue apparently
Windows Version
Microsoft Windows [Version 10.0.22631.4169]
WSL Version
2.2.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.153.1-2
Distro Version
Ubuntu 24.04
Other Software
xcb version 2.4-8build2 ros2 version jazzy xeyes version 1.3.0 xcalc version 1.1.2
Repro Steps
For xcb: -
sudo apt install xcb
xcb
on terminalFor ros2: For installation follow this:
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
sudo apt update && sudo apt upgrade
sudo apt install ros-jazzy-desktop
ros2 run turtlesim turtlesim_node
For xcalc: -
sudo apt install x11-apps
xcalc
on terminalFor xeyes: -
sudo apt install x11-apps
xeyes
on terminalExpected Behavior
The window should open and the program should be displayed as a linux window on windows
Actual Behavior
for xcb, xcalc, xeyes the output is:
Error: Can't open display: :0
for ros2 the output is:
the logs collected with collect logs tool ros2log.zip xcalc_log.zip xcb_log.zip
strace logs ros_strace.zip strace_xcalc.txt strace_xcb.txt
current workaround found(that doesn't survive reboot):
sudo rm -rf /tmp/.X11-unix && ln -s /mnt/wslg/.X11-unix /tmp/
Diagnostic Logs
No response