microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.26k stars 812 forks source link

Xserver not running #11874

Closed wang1zhen closed 4 weeks ago

wang1zhen commented 1 month ago

Windows Version

Microsoft Windows [Version 10.0.22631.3958]

WSL Version

2.2.4.0

Are you using WSL 1 or WSL 2?

Kernel Version

5.15.153.1

Distro Version

Debian bookworm

Other Software

systemd enabled

Repro Steps

wsl -d Debian ls -la /tmp/.X11-unix

Expected Behavior

As per This link /tmp/.X11-unix should be linked to /mnt/wslg/.X11-unix

Actual Behavior

/tmp/.X11-unix does not exist.

After ln -s /mnt/wslg/.X11-unix /tmp/.X11-unix, ls /tmp/.X11-unix gives nothing output.

Diagnostic Logs

=cat /mnt/wslg/weston.log= ``` Date: 2024-08-03 JST [22:59:27.095] weston 9.0.0 https://wayland.freedesktop.org Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/ Build: 9.0.0-210-gf227edd6 [22:59:27.095] Command line: /usr/bin/weston --backend=rdp-backend.so --modules=wslgd-notify.so --xwayland --socket=wayland-0 --shell=rdprail-shell.so --log=/mnt/wslg/weston.log --logger-scopes=log,rdp-backend,rdprail-shell [22:59:27.095] OS: Linux, 5.15.153.1-microsoft-standard-WSL2, #1 SMP Fri Mar 29 23:14:13 UTC 2024, x86_64 [22:59:27.096] Using config file '/home/wslg/.config/weston.ini' [22:59:27.097] Output repaint window is 7 ms maximum. [22:59:27.097] Loading module '/usr/lib/libweston-9/rdp-backend.so' [22:59:27.104] using FreeRDP version 2.4.0 Date: 2024-08-03 JST [22:59:27.104] RDP backend: WESTON_RDP_DEBUG_LEVEL: 3 [22:59:27.104] RDP backend: rdp_monitor_refresh_rate: 60000 [22:59:27.104] RDP backend: timer resolution tv_sec:0 tv_nsec:1 [22:59:27.104] RDP backend: Environment dump - start [22:59:27.104] WSL2_DEFAULT_APP_ICON=/usr/share/icons/wsl/linux.png [22:59:27.104] SHELL=/bin/bash [22:59:27.104] WSL2_GUI_APPS_ENABLED=1 [22:59:27.104] WSL_DISTRO_NAME= [22:59:27.104] WSL2_VM_ID=94DC2CEF-781E-4859-A2A0-DC8023E024C9 [22:59:27.104] XCURSOR_PATH=/mnt/wslg/distro/usr/share/icons:/usr/share/icons [22:59:27.104] XCURSOR_SIZE=16 [22:59:27.104] WLOG_APPENDER=file [22:59:27.104] NAME=HP-G9 [22:59:27.104] PWD=/home/wslg [22:59:27.104] LOGNAME=wslg [22:59:27.104] WSL_FEATURE_FLAGS=cc [22:59:27.104] WSL2_USER_PROFILE=C:\Users\wang1zhen [22:59:27.104] WSL2_DISTRO_NAME=Debian [22:59:27.104] _=/usr/bin/weston [22:59:27.104] PULSE_AUDIO_RDP_SINK=/mnt/wslg/PulseAudioRDPSink [22:59:27.104] HOME=/home/wslg [22:59:27.104] WSLG_SERVICE_ID=00000001-FACB-11E6-BD58-64006A7986D3 [22:59:27.104] WAYLAND_DISPLAY=wayland-0 [22:59:27.104] USE_VSOCK=3 [22:59:27.104] WSL2_EXECUTION_ALIAS_PATH=C:\Program Files\WSL [22:59:27.104] WSL2_DEFAULT_APP_OVERLAY_ICON=/usr/share/icons/wsl/linux.png [22:59:27.104] USER=wslg [22:59:27.104] DISPLAY=:0 [22:59:27.104] SHLVL=0 [22:59:27.104] WSLGD_NOTIFY_SOCKET=/mnt/wslg/weston-notify.sock [22:59:27.104] WLOG_FILEAPPENDER_OUTPUT_FILE_PATH=/mnt/wslg [22:59:27.104] XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir [22:59:27.104] WSL2_SHARED_MEMORY_OB_DIRECTORY=WSL\94DC2CEF-781E-4859-A2A0-DC8023E024C9\wslg [22:59:27.104] XCURSOR_THEME=whiteglass [22:59:27.104] PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games [22:59:27.104] WESTON_DISABLE_ABSTRACT_FD=1 [22:59:27.104] WLOG_FILEAPPENDER_OUTPUT_FILE_NAME=wlog.log [22:59:27.104] PULSE_AUDIO_RDP_SOURCE=/mnt/wslg/PulseAudioRDPSource [22:59:27.104] PULSE_SERVER=unix:/mnt/wslg/PulseServer [22:59:27.104] WSL2_INSTALL_PATH=C:\Program Files\WSL [22:59:27.104] WSL2_SHARED_MEMORY_MOUNT_POINT=/mnt/shared_memory [22:59:27.104] WESTON_CONFIG_FILE=/home/wslg/.config/weston.ini [22:59:27.104] RDP backend: Environment dump - end [22:59:27.104] RDP backend: FreeRDP version: 2.4.0 [22:59:27.104] Using external fd for incoming connections: 3 [22:59:27.104] Default head is being added [22:59:27.104] Registered plugin API 'weston_rdprail_api_v1' of size 72 [22:59:27.104] RDPAPPLIST_MODULEDIR is set to /usr/lib/rdpapplist [22:59:27.105] RDP backend: use_rdpapplist = 1 [22:59:27.108] RDP backend: use_gfxredir = 1 [22:59:27.108] RDP backend: enable_hi_dpi_support = 1 [22:59:27.108] RDP backend: enable_fractional_hi_dpi_support = 0 [22:59:27.108] RDP backend: enable_fractional_hi_dpi_roundup = 0 [22:59:27.108] RDP backend: debug_desktop_scaling_factor = 0 [22:59:27.108] RDP backend: enable_window_zorder_sync = 1 [22:59:27.108] RDP backend: enable_window_snap_arrange = 1 [22:59:27.108] RDP backend: enable_window_shadow_remoting = 1 [22:59:27.108] RDP backend: enable_display_power_by_screenupdate = 0 [22:59:27.108] RDP backend: enable_distro_name_title = 1 [22:59:27.108] RDP backend: enable_copy_warning_title = 1 [22:59:27.108] Using VSOCK for incoming connections: 3 [22:59:27.110] Registered plugin API 'weston_rdp_output_api_v1' of size 24 [22:59:27.110] Head attaching: rdp-0, index:0, is_primary: 1 [22:59:27.110] Client desktop upper left coordinate (0,0) [22:59:27.110] disp_monitor_validate_and_compute_layout:---OUTPUT--- [22:59:27.110] rdpMonitor[0]: x:0, y:0, width:0, height:0, is_primary:1 [22:59:27.110] rdpMonitor[0]: weston x:0, y:0, width:0, height:0 [22:59:27.110] rdpMonitor[0]: physicalWidth:0, physicalHeight:0, orientation:0 [22:59:27.110] rdpMonitor[0]: desktopScaleFactor:0, deviceScaleFactor:0 [22:59:27.110] rdpMonitor[0]: scale:1, clientScale:1.00 [22:59:27.110] Head mode change:rdp-0 NEW width:0, height:0, scale:1, clientScale:1.000000 [22:59:27.110] move head/output rdp-0 (0,0) -> (0,0) [22:59:27.110] client origin (0,0) is (0,0) in Weston space [22:59:27.110] Output 'rdp-0' enabled with head(s) rdp-0 [22:59:27.110] Compositor capabilities: arbitrary surface rotation: yes screen capture uses y-flip: no presentation clock: CLOCK_MONOTONIC_RAW, id 4 presentation clock resolution: 0.000000001 s [22:59:27.110] Loading module '/usr/lib/weston/rdprail-shell.so' [22:59:27.117] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_DEBUG_LEVEL: 3. Date: 2024-08-03 JST [22:59:27.117] RDPRAIL-shell: allow-zap:0 [22:59:27.117] RDPRAIL-shell: allow-alt-f4-to-close-app:1 [22:59:27.117] RDPRAIL-shell: binding-modifier:none [22:59:27.117] RDPRAIL-shell: local-move:0 [22:59:27.117] RDPRAIL-shell: distro name:Debian (len:6) [22:59:27.118] RDPRAIL-shell: WSL2_DEFAULT_APP_ICON:/usr/share/icons/wsl/linux.png (loaded:yes) [22:59:27.118] RDPRAIL-shell: WSL2_DEFAULT_APP_OVERLAY_ICON:/usr/share/icons/wsl/linux.png (loaded:yes) [22:59:27.118] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_APPEND_DISTRONAME_STARTMEN:1 [22:59:27.118] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_BLEND_OVERLAY_ICON_APPLIST:1 [22:59:27.118] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_BLEND_OVERLAY_ICON_TASKBAR:1 [22:59:27.119] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_USE_WSLPATH:0 [22:59:27.119] rdp_rail_shell_initialize_notify: shell: distro name: Debian [22:59:27.119] app_list_monitor_thread: running in system-distro with user-distro: Debian [22:59:27.119] app_list_monitor_thread: open(/proc/self/ns/mnt) [22:59:27.119] app_list_monitor_thread: open(/proc/2/ns/mnt) [22:59:27.120] app_list_monitor_thread: inotify_add_watch(/usr/share/applications) [22:59:27.120] Loading module '/usr/lib/libweston-9/xwayland.so' [22:59:27.120] app_list_monitor_thread: monitor /usr/share/applications [22:59:27.121] app_list_monitor_thread: /usr/local/share/applications doesn't exist, skipping. [22:59:27.121] app_list_monitor_thread: /var/lib/snapd/desktop/applications doesn't exist, skipping. [22:59:27.121] app_list_monitor_thread: /var/lib/flatpak/exports/share/applications doesn't exist, skipping. [22:59:27.121] app list folder[0]: /usr/share/applications [22:59:27.121] Registered plugin API 'weston_xwayland_v1' of size 32 [22:59:27.121] Registered plugin API 'weston_xwayland_surface_v1' of size 48 [22:59:27.121] Not using abstract fd for Xwayland [22:59:27.122] xserver listening on display :0 [22:59:27.122] Loading module '/usr/lib/weston/wslgd-notify.so' [22:59:27.122] ../compositor/wslgd-notify.c: socket connected [22:59:27.122] desktop file: /usr/share/applications/btop.desktop is terminal based app [22:59:27.122] app list entry failed to update: Key:btop [22:59:27.122] free_app_entry(): (null): /usr/share/applications/btop.desktop [22:59:27.124] desktop file: /usr/share/applications/emacs.desktop [22:59:27.124] Name[en_US]:Emacs (GUI) (Debian) [22:59:27.124] Exec:/usr/bin/emacs [22:59:27.124] TryExec:/usr/bin/emacs [22:59:27.124] WorkingDir:(null) [22:59:27.124] Icon name:emacs [22:59:27.124] Icon SVG :0 [22:59:27.124] Icon file:/usr/share/icons/hicolor/128x128/apps/emacs.png [22:59:27.124] Icon image:0x7fbb8800c280 [22:59:27.124] app list entry updated: Key:emacs, Name:Emacs (GUI) (Debian) [22:59:27.124] desktop file: /usr/share/applications/python3.11.desktop has NoDisplay specified [22:59:27.124] app list entry failed to update: Key:11 [22:59:27.124] free_app_entry(): (null): /usr/share/applications/python3.11.desktop [22:59:27.124] desktop file: /usr/share/applications/emacs-mail.desktop has NoDisplay specified [22:59:27.124] app list entry failed to update: Key:emacs-mail [22:59:27.124] free_app_entry(): (null): /usr/share/applications/emacs-mail.desktop [22:59:27.125] desktop file: /usr/share/applications/emacsclient.desktop [22:59:27.125] Name[en_US]:Emacs (Client) (Debian) [22:59:27.125] Exec:sh -c "if [ -n \"\$*\" ]; then exec emacsclient --alternate-editor= --display=\"\$DISPLAY\" \"\$@\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh [22:59:27.125] TryExec:(null) [22:59:27.125] WorkingDir:(null) [22:59:27.125] Icon name:emacs [22:59:27.125] Icon SVG :0 [22:59:27.125] Icon file:/usr/share/icons/hicolor/128x128/apps/emacs.png [22:59:27.125] Icon image:0x7fbb8800dc40 [22:59:27.125] app list entry updated: Key:emacsclient, Name:Emacs (Client) (Debian) [22:59:27.125] desktop file: /usr/share/applications/emacs-term.desktop is terminal based app [22:59:27.125] app list entry failed to update: Key:emacs-term [22:59:27.125] free_app_entry(): (null): /usr/share/applications/emacs-term.desktop [22:59:27.125] desktop file: /usr/share/applications/emacsclient-mail.desktop has NoDisplay specified [22:59:27.125] app list entry failed to update: Key:emacsclient-mail [22:59:27.125] free_app_entry(): (null): /usr/share/applications/emacsclient-mail.desktop [22:59:27.125] desktop file: /usr/share/applications/vim.desktop is terminal based app [22:59:27.125] app list entry failed to update: Key:vim [22:59:27.125] free_app_entry(): (null): /usr/share/applications/vim.desktop [22:59:27.126] desktop file: /usr/share/applications/syncthing-start.desktop [22:59:27.126] Name[en_US]:Start Syncthing (Debian) [22:59:27.126] Exec:/usr/bin/syncthing serve --no-browser --logfile=default [22:59:27.126] TryExec:(null) [22:59:27.126] WorkingDir:(null) [22:59:27.126] Icon name:syncthing [22:59:27.126] Icon SVG :0 [22:59:27.126] Icon file:/usr/share/icons/hicolor/128x128/apps/syncthing.png [22:59:27.126] Icon image:0x7fbb8800b7d0 [22:59:27.126] app list entry updated: Key:syncthing-start, Name:Start Syncthing (Debian) [22:59:27.127] desktop file: /usr/share/applications/syncthing-ui.desktop [22:59:27.127] Name[en_US]:Syncthing Web UI (Debian) [22:59:27.127] Exec:/usr/bin/syncthing --browser-only [22:59:27.127] TryExec:(null) [22:59:27.127] WorkingDir:(null) [22:59:27.127] Icon name:syncthing [22:59:27.127] Icon SVG :0 [22:59:27.127] Icon file:/usr/share/icons/hicolor/128x128/apps/syncthing.png [22:59:27.127] Icon image:0x7fbb88020c50 [22:59:27.127] app list entry updated: Key:syncthing-ui, Name:Syncthing Web UI (Debian) [22:59:27.127] app list folder[1]: /usr/local/share/applications [22:59:27.127] app list folder[2]: /var/lib/snapd/desktop/applications [22:59:27.127] app list folder[3]: /var/lib/flatpak/exports/share/applications [22:59:27.167] Spawned Xwayland server, pid 33 [22:59:27.671] Client: ClientStatus:0x3f5 [22:59:27.671] - TS_RAIL_CLIENTSTATUS_ALLOWLOCALMOVESIZE [22:59:27.671] - TS_RAIL_CLIENTSTATUS_ZORDER_SYNC [22:59:27.671] - TS_RAIL_CLIENTSTATUS_WINDOW_RESIZE_MARGIN_SUPPORTED [22:59:27.671] - TS_RAIL_CLIENTSTATUS_HIGH_DPI_ICONS_SUPPORTED [22:59:27.671] - TS_RAIL_CLIENTSTATUS_APPBAR_REMOTING_SUPPORTED [22:59:27.671] - TS_RAIL_CLIENTSTATUS_POWER_DISPLAY_REQUEST_SUPPORTED [22:59:27.671] - TS_RAIL_CLIENTSTATUS_GET_APPID_RESPONSE_EX_SUPPORTED [22:59:27.671] - TS_RAIL_CLIENTSTATUS_BIDIRECTIONAL_CLOAK_SUPPORTED [22:59:27.671] Client HandShake buildNumber:22631 [22:59:27.682] Server AppList caps version:4 [22:59:27.682] appListProviderName:Debian [22:59:27.682] appListProviderUniqueId:00000001-FACB-11E6-BD58-64006A7986D3 [22:59:27.702] Client: gfxredir_caps: length:28 [22:59:27.702] Client: gfxredir_caps[0]: signature:0x53504143 [22:59:27.702] Client: gfxredir_caps[0]: version:0x1 [22:59:27.702] Client: gfxredir_caps[0]: length:12 [22:59:27.702] Client: gfxredir_caps[1]: signature:0x53504143 [22:59:27.703] Client: gfxredir_caps[1]: version:0x2000 [22:59:27.703] Client: gfxredir_caps[1]: length:16 [22:59:27.703] Client: gfxredir_caps[1]: supportedFeatures:0x0 [22:59:27.703] Client: gfxredir selected caps: version:0x2000 [22:59:27.763] Client: GrfxCaps count:0xb [22:59:27.763] Client: GrfxCaps[0] version:0x80004 length:4 flags:0x0 [22:59:27.763] Version : RDPGFX_CAPVERSION_8 [22:59:27.763] Client: GrfxCaps[1] version:0x80105 length:4 flags:0x0 [22:59:27.763] Version : RDPGFX_CAPVERSION_81 [22:59:27.763] Client: GrfxCaps[2] version:0xa0002 length:4 flags:0x0 [22:59:27.763] Version : RDPGFX_CAPVERSION_10 [22:59:27.763] Client: GrfxCaps[3] version:0xa0200 length:4 flags:0x0 [22:59:27.763] Version : RDPGFX_CAPVERSION_102 [22:59:27.763] Client: GrfxCaps[4] version:0xa0301 length:4 flags:0x0 [22:59:27.763] Version : RDPGFX_CAPVERSION_103 [22:59:27.763] Client: GrfxCaps[5] version:0xa0400 length:4 flags:0x0 [22:59:27.763] Version : RDPGFX_CAPVERSION_104 [22:59:27.763] Client: GrfxCaps[6] version:0xa0502 length:4 flags:0x0 [22:59:27.763] Version : RDPGFX_CAPVERSION_105 [22:59:27.763] Client: GrfxCaps[7] version:0xa0600 length:4 flags:0x0 [22:59:27.763] Version : RDPGFX_CAPVERSION_106 [22:59:27.763] Client: GrfxCaps[8] version:0xa0701 length:4 flags:0x0 [22:59:27.763] Version : UNKNOWN(657153) [22:59:27.763] Client: GrfxCaps[9] version:0xb0101 length:4 flags:0x0 [22:59:27.763] Version : UNKNOWN(721153) [22:59:27.763] Client: GrfxCaps[10] version:0xb0200 length:4 flags:0x400 [22:59:27.763] Version : UNKNOWN(721408) [22:59:27.774] xf_peer_adjust_monitor_layout: [22:59:27.774] DesktopWidth:2560, DesktopHeight:1440 [22:59:27.774] UseMultimon:0 [22:59:27.774] ForceMultimon:0 [22:59:27.774] MonitorCount:0 [22:59:27.774] HasMonitorAttributes:0 [22:59:27.774] HiDefRemoteApp:1 [22:59:27.774] disp_monitor_sanity_check_layout:---INPUT--- [22:59:27.774] rdpMonitor[0]: x:0, y:0, width:2560, height:1440, is_primary:1 [22:59:27.774] rdpMonitor[0]: physicalWidth:527, physicalHeight:296, orientation:0 [22:59:27.774] rdpMonitor[0]: desktopScaleFactor:125, deviceScaleFactor:100 [22:59:27.774] rdpMonitor[0]: scale:1, client scale :1.00 [22:59:27.774] kbd_layout:0x804 kbd_type:0x7 kbd_subType:0x0 kbd_functionKeys:0xc [22:59:27.774] convert_rdp_keyboard_to_xkb_rule_names: matching model=pc105 layout=(null) variant=(null) options=(null) [22:59:27.784] Client desktop upper left coordinate (0,0) [22:59:27.784] disp_monitor_validate_and_compute_layout:---OUTPUT--- [22:59:27.784] rdpMonitor[0]: x:0, y:0, width:2560, height:1440, is_primary:1 [22:59:27.784] rdpMonitor[0]: weston x:0, y:0, width:2560, height:1440 [22:59:27.784] rdpMonitor[0]: physicalWidth:527, physicalHeight:296, orientation:0 [22:59:27.784] rdpMonitor[0]: desktopScaleFactor:0, deviceScaleFactor:100 [22:59:27.784] rdpMonitor[0]: scale:1, clientScale:1.00 [22:59:27.784] Head mode change:rdp-0 NEW width:2560, height:1440, scale:1, clientScale:1.000000 [22:59:27.784] move head/output rdp-0 (0,0) -> (0,0) [22:59:27.784] client origin (0,0) is (0,0) in Weston space [22:59:27.784] Client ExecOrder:0x00000008, Program:dummy-entry, WorkingDir:(null), RemoteApplicationArguments:(null) [22:59:27.784] Client ExecOrder launching dummy-entry [22:59:27.784] launching 'dummy-entry' [22:59:27.784] Client: ClientSysparam: filterKeys [22:59:27.784] Client: ClientSysparam: toggleKeys:62 [22:59:27.784] Client: ClientSysparam: stickyKeys:510 [22:59:27.784] Client: ClientSysparam: caretWidth:1 [22:59:27.784] Client: ClientSysparam: highContrast [22:59:27.784] Client: ClientSysparam: taskbarPos:(left:0, top:0, right:75, bottom:1440) [22:59:27.784] Client: ClientSysparam: mouseButtonSwap:0 [22:59:27.784] Client: ClientSysparam: keyboardPref:0 [22:59:27.784] Client: ClientSysparam: dragFullWindows:1 [22:59:27.784] Client: ClientSysparam: keyboardCues:0 [22:59:27.784] Client: ClientSysparam: workArea:(left:75, top:0, right:2560, bottom:1440) [22:59:27.784] Translated workarea:(75,0)-(2560,1440) at rdp-0:(0,0)-(2560,1440) [22:59:27.784] Client AppList caps version:4 [22:59:27.784] Client AppList client language id: en_US [22:59:27.784] Client: ClientSysparam: filterKeys [22:59:27.784] Client: ClientSysparam: toggleKeys:62 [22:59:27.784] Client: ClientSysparam: stickyKeys:510 [22:59:27.784] Client: ClientSysparam: caretWidth:1 [22:59:27.784] Client: ClientSysparam: highContrast [22:59:27.784] app_list_monitor_thread: startRdpNotifyEvent is signalled. 0 - en_US [22:59:27.784] compositor: executing 'dummy-entry' failed: No such file or directory [22:59:27.784] rdp_rail_notify_app_list(): rdp_peer 0x5563c5f27220 [22:59:27.784] inSync: 1 [22:59:27.784] syncStart: 1 [22:59:27.784] syncEnd: 0 [22:59:27.784] Client: ClientSysparam: taskbarPos:(left:0, top:0, right:75, bottom:1440) [22:59:27.784] newAppId: 1 [22:59:27.784] Client: ClientSysparam: mouseButtonSwap:0 [22:59:27.785] Client: ClientSysparam: keyboardPref:0 [22:59:27.785] Client: ClientSysparam: dragFullWindows:1 [22:59:27.785] deleteAppId: 0 [22:59:27.785] Client: ClientSysparam: keyboardCues:0 [22:59:27.785] Client: ClientSysparam: workArea:(left:75, top:0, right:2560, bottom:1440) [22:59:27.785] Translated workarea:(75,0)-(2560,1440) at rdp-0:(0,0)-(2560,1440) [22:59:27.785] deleteAppProvider: 0 [22:59:27.785] associateWindowId: 0 [22:59:27.785] appId: syncthing-ui [22:59:27.785] appGroup: (null) [22:59:27.785] appExecPath: /usr/bin/syncthing --browser-only [22:59:27.785] appWorkingDir: (null) [22:59:27.785] appDesc: Syncthing Web UI (Debian) [22:59:27.785] appIcon: 0x7fbb88020c50 [22:59:27.785] appProvider: (null) [22:59:27.785] appWindowId: 0x0 [22:59:27.785] Client ExecOrder program terminated [22:59:27.785] rdp_rail_notify_app_list(): rdp_peer 0x5563c5f27220 [22:59:27.785] inSync: 1 [22:59:27.785] syncStart: 0 [22:59:27.785] syncEnd: 0 [22:59:27.785] newAppId: 1 [22:59:27.785] deleteAppId: 0 [22:59:27.785] deleteAppProvider: 0 [22:59:27.785] associateWindowId: 0 [22:59:27.785] appId: emacsclient [22:59:27.785] appGroup: (null) [22:59:27.785] appExecPath: sh -c "if [ -n \"\$*\" ]; then exec emacsclient --alternate-editor= --display=\"\$DISPLAY\" \"\$@\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh [22:59:27.785] appWorkingDir: (null) [22:59:27.785] appDesc: Emacs (Client) (Debian) [22:59:27.785] dummy-entry exited with status 255 [22:59:27.785] appIcon: 0x7fbb8800dc40 [22:59:27.785] appProvider: (null) [22:59:27.785] appWindowId: 0x0 [22:59:27.785] rdp_rail_notify_app_list(): rdp_peer 0x5563c5f27220 [22:59:27.785] inSync: 1 [22:59:27.785] syncStart: 0 [22:59:27.785] syncEnd: 0 [22:59:27.785] newAppId: 1 [22:59:27.785] deleteAppId: 0 [22:59:27.785] deleteAppProvider: 0 [22:59:27.785] associateWindowId: 0 [22:59:27.785] appId: emacs [22:59:27.785] appGroup: (null) [22:59:27.785] appExecPath: /usr/bin/emacs [22:59:27.785] appWorkingDir: (null) [22:59:27.785] appDesc: Emacs (GUI) (Debian) [22:59:27.785] appIcon: 0x7fbb8800c280 [22:59:27.785] appProvider: (null) [22:59:27.785] appWindowId: 0x0 [22:59:27.785] rdp_rail_notify_app_list(): rdp_peer 0x5563c5f27220 [22:59:27.785] inSync: 1 [22:59:27.785] syncStart: 0 [22:59:27.785] syncEnd: 1 [22:59:27.785] newAppId: 1 [22:59:27.785] deleteAppId: 0 [22:59:27.785] deleteAppProvider: 0 [22:59:27.785] associateWindowId: 0 [22:59:27.785] appId: syncthing-start [22:59:27.785] appGroup: (null) [22:59:27.785] appExecPath: /usr/bin/syncthing serve --no-browser --logfile=default [22:59:27.785] appWorkingDir: (null) [22:59:27.785] appDesc: Start Syncthing (Debian) [22:59:27.785] appIcon: 0x7fbb8800b7d0 [22:59:27.785] appProvider: (null) [22:59:27.785] appWindowId: 0x0 [22:59:27.815] Pulse Audio Sink listener socket on /mnt/wslg/PulseAudioRDPSink [22:59:28.683] xfixes version: 5.0 [22:59:28.696] created wm, root 1272 [22:59:28.696] xfixes selection notify event: owner 2097153 [22:59:28.696] our window, skipping [22:59:28.702] RDP Sink version (1 - 1) [23:01:44.100] xfixes selection notify event: owner 2097153 [23:01:44.100] our window, skipping [23:01:44.103] xfixes selection notify event: owner 2097153 [23:01:44.103] our window, skipping [23:01:55.002] xfixes selection notify event: owner 2097153 [23:01:55.002] our window, skipping [23:01:55.010] xfixes selection notify event: owner 2097153 [23:01:55.010] our window, skipping [23:02:44.380] xfixes selection notify event: owner 2097153 [23:02:44.380] our window, skipping [23:02:44.384] xfixes selection notify event: owner 2097153 [23:02:44.384] our window, skipping [23:02:52.311] xfixes selection notify event: owner 2097153 [23:02:52.311] our window, skipping [23:02:52.313] RDP clipboard_data_source_send new (0x7fbb68000b50:published:fd 95) vs prev (0x7fbb68000d70:cancel pending:fd 94): outstanding RDP data request (client to server) [23:02:52.313] xfixes selection notify event: owner 2097153 [23:02:52.313] our window, skipping [23:03:10.951] xfixes selection notify event: owner 2097153 [23:03:10.951] our window, skipping [23:03:10.953] xfixes selection notify event: owner 2097153 [23:03:10.953] our window, skipping [23:03:28.835] xfixes selection notify event: owner 2097153 [23:03:28.835] our window, skipping [23:03:28.837] xfixes selection notify event: owner 2097153 [23:03:28.837] our window, skipping [23:04:49.907] xfixes selection notify event: owner 2097153 [23:04:49.907] our window, skipping [23:05:10.909] xfixes selection notify event: owner 2097153 [23:05:10.909] our window, skipping [23:05:23.578] xfixes selection notify event: owner 2097153 [23:05:23.578] our window, skipping [23:05:23.580] xfixes selection notify event: owner 2097153 [23:05:23.580] our window, skipping [23:09:42.410] xfixes selection notify event: owner 2097153 [23:09:42.410] our window, skipping [23:09:42.414] xfixes selection notify event: owner 2097153 [23:09:42.414] our window, skipping [23:10:09.020] app_list_monitor_thread: file removed (emacs.desktop) [23:10:09.020] rdp_rail_notify_app_list(): rdp_peer 0x5563c5f27220 [23:10:09.020] inSync: 0 [23:10:09.020] syncStart: 0 [23:10:09.020] syncEnd: 0 [23:10:09.020] newAppId: 0 [23:10:09.020] deleteAppId: 1 [23:10:09.020] deleteAppProvider: 0 [23:10:09.020] associateWindowId: 0 [23:10:09.020] appId: emacs [23:10:09.020] appGroup: (null) [23:10:09.020] appExecPath: (null) [23:10:09.020] appWorkingDir: (null) [23:10:09.020] appDesc: (null) [23:10:09.020] appIcon: (nil) [23:10:09.020] appProvider: (null) [23:10:09.020] appWindowId: 0x0 [23:10:09.020] free_app_entry(): Emacs (GUI) (Debian): /usr/share/applications/emacs.desktop [23:10:09.020] app_list_monitor_thread: file removed (emacs-term.desktop) [23:10:11.999] app_list_monitor_thread: file created/updated (emacs-mail.desktop) [23:10:11.999] desktop file: /usr/share/applications/emacs-mail.desktop has NoDisplay specified [23:10:11.999] app list entry failed to update: Key:emacs-mail [23:10:11.999] free_app_entry(): (null): /usr/share/applications/emacs-mail.desktop [23:10:12.000] app_list_monitor_thread: file created/updated (emacsclient-mail.desktop) [23:10:12.000] desktop file: /usr/share/applications/emacsclient-mail.desktop has NoDisplay specified [23:10:12.000] app list entry failed to update: Key:emacsclient-mail [23:10:12.000] free_app_entry(): (null): /usr/share/applications/emacsclient-mail.desktop [23:10:12.001] app_list_monitor_thread: file created/updated (emacsclient.desktop) [23:10:12.001] desktop file: /usr/share/applications/emacsclient.desktop [23:10:12.001] Name[en_US]:Emacs (Client) (Debian) [23:10:12.001] Exec:sh -c "if [ -n \"\$*\" ]; then exec /usr/bin/emacsclient --alternate-editor= --reuse-frame \"\$@\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh [23:10:12.001] TryExec:(null) [23:10:12.001] WorkingDir:(null) [23:10:12.001] Icon name:emacs [23:10:12.001] Icon SVG :0 [23:10:12.001] Icon file:/usr/share/icons/hicolor/128x128/apps/emacs.png [23:10:12.001] Icon image:0x7fbb8800bcc0 [23:10:12.001] app list entry updated: Key:emacsclient, Name:Emacs (Client) (Debian) [23:10:12.001] free_app_entry(): Emacs (Client) (Debian): /usr/share/applications/emacsclient.desktop [23:10:12.001] rdp_rail_notify_app_list(): rdp_peer 0x5563c5f27220 [23:10:12.001] inSync: 0 [23:10:12.001] syncStart: 0 [23:10:12.001] syncEnd: 0 [23:10:12.001] newAppId: 0 [23:10:12.001] deleteAppId: 0 [23:10:12.001] deleteAppProvider: 0 [23:10:12.001] associateWindowId: 0 [23:10:12.001] appId: emacsclient [23:10:12.001] appGroup: (null) [23:10:12.001] appExecPath: sh -c "if [ -n \"\$*\" ]; then exec /usr/bin/emacsclient --alternate-editor= --reuse-frame \"\$@\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh [23:10:12.001] appWorkingDir: (null) [23:10:12.001] appDesc: Emacs (Client) (Debian) [23:10:12.001] appIcon: 0x7fbb8800bcc0 [23:10:12.001] appProvider: (null) [23:10:12.001] appWindowId: 0x0 [23:10:14.739] app_list_monitor_thread: file created/updated (emacs-term.desktop) [23:10:14.739] desktop file: /usr/share/applications/emacs-term.desktop is terminal based app [23:10:14.739] app list entry failed to update: Key:emacs-term [23:10:14.739] free_app_entry(): (null): /usr/share/applications/emacs-term.desktop [23:10:14.740] app_list_monitor_thread: file created/updated (emacs.desktop) [23:10:14.740] desktop file: /usr/share/applications/emacs.desktop [23:10:14.740] Name[en_US]:Emacs (GUI) (Debian) [23:10:14.740] Exec:/usr/bin/emacs [23:10:14.740] TryExec:/usr/bin/emacs [23:10:14.740] WorkingDir:(null) [23:10:14.740] Icon name:emacs [23:10:14.740] Icon SVG :0 [23:10:14.740] Icon file:/usr/share/icons/hicolor/128x128/apps/emacs.png [23:10:14.740] Icon image:0x7fbb8800c020 [23:10:14.740] app list entry updated: Key:emacs, Name:Emacs (GUI) (Debian) [23:10:14.740] rdp_rail_notify_app_list(): rdp_peer 0x5563c5f27220 [23:10:14.740] inSync: 0 [23:10:14.740] syncStart: 0 [23:10:14.740] syncEnd: 0 [23:10:14.740] newAppId: 1 [23:10:14.740] deleteAppId: 0 [23:10:14.740] deleteAppProvider: 0 [23:10:14.740] associateWindowId: 0 [23:10:14.740] appId: emacs [23:10:14.740] appGroup: (null) [23:10:14.740] appExecPath: /usr/bin/emacs [23:10:14.740] appWorkingDir: (null) [23:10:14.740] appDesc: Emacs (GUI) (Debian) [23:10:14.740] appIcon: 0x7fbb8800c020 [23:10:14.740] appProvider: (null) [23:10:14.740] appWindowId: 0x0 [23:10:20.071] rdp_rail_wake_handler is called on peer_ctx:0x5563c5f27220 [23:10:20.071] launching '/usr/libexec/weston-rdprail-shell' [23:10:20.127] !!!cursor role is added after creation - WindowId:0x3 [23:10:20.167] app_list_monitor_thread: loadIconEvent is signalled. emacs [23:10:20.167] app_list_monitor_thread: entry 0x7fbb88020fd0, image 0x7fbb8800c020 [23:10:20.168] rdp_rail_notify_app_list(): rdp_peer 0x5563c5f27220 [23:10:20.168] inSync: 0 [23:10:20.168] syncStart: 0 [23:10:20.168] syncEnd: 0 [23:10:20.168] newAppId: 0 [23:10:20.168] deleteAppId: 0 [23:10:20.168] deleteAppProvider: 0 [23:10:20.168] associateWindowId: 1 [23:10:20.168] appId: emacs [23:10:20.168] appGroup: (null) [23:10:20.168] appExecPath: /usr/bin/emacs [23:10:20.168] appWorkingDir: (null) [23:10:20.168] appDesc: Emacs (GUI) (Debian) [23:10:20.168] appIcon: (nil) [23:10:20.168] appProvider: (null) [23:10:20.168] appWindowId: 0x4 [23:10:20.168] Client: ClientGetAppidReq: pid:1190 appId:emacs WindowId:0x4 [23:10:25.385] app_list_monitor_thread: loadIconEvent is signalled. emacs [23:10:25.385] app_list_monitor_thread: entry 0x7fbb88020fd0, image 0x7fbb8800c020 [23:10:25.386] rdp_rail_notify_app_list(): rdp_peer 0x5563c5f27220 [23:10:25.386] inSync: 0 [23:10:25.386] syncStart: 0 [23:10:25.386] syncEnd: 0 [23:10:25.386] newAppId: 0 [23:10:25.386] deleteAppId: 0 [23:10:25.386] deleteAppProvider: 0 [23:10:25.386] associateWindowId: 1 [23:10:25.386] appId: emacs [23:10:25.386] appGroup: (null) [23:10:25.386] appExecPath: /usr/bin/emacs [23:10:25.386] appWorkingDir: (null) [23:10:25.386] appDesc: Emacs (GUI) (Debian) [23:10:25.386] appIcon: (nil) [23:10:25.386] appProvider: (null) [23:10:25.386] appWindowId: 0xa [23:10:25.386] Client: ClientGetAppidReq: pid:1210 appId:emacs WindowId:0xa [23:10:25.386] Client: LanguageImeInfo: ProfileType: 1 (TF_PROFILETYPE_INPUTPROCESSOR) [23:10:25.386] Client: LanguageImeInfo: LanguageID: 0x804 [23:10:25.386] Client: LanguageImeInfo: LanguageProfileCLSID: GUID_CHSIME : 81d4e9c9-1d3b-41bc-9e6c-4b40bf79e35e [23:10:25.386] Client: LanguageImeInfo: ProfileGUID: GUID_PROFILE_SIMPLEFAST : fa550b04-5ad7-411f-a5ac-ca038ec515d7 [23:10:25.386] Client: LanguageImeInfo: KeyboardLayout: 0x0 [23:13:05.383] xfixes selection notify event: owner 2097153 [23:13:05.383] our window, skipping [23:13:05.386] xfixes selection notify event: owner 2097153 [23:13:05.386] our window, skipping [23:13:09.938] xfixes selection notify event: owner 2097153 [23:13:09.938] our window, skipping [23:13:17.184] xfixes selection notify event: owner 2097153 [23:13:17.184] our window, skipping [23:13:17.191] RDP clipboard_data_source_send new (0x7fbb68000e70:published:fd 97) vs prev (0x7fbb68000b20:cancel pending:fd 94): outstanding RDP data request (client to server) [23:13:17.191] xfixes selection notify event: owner 2097153 [23:13:17.191] our window, skipping [23:13:37.629] xfixes selection notify event: owner 2097153 [23:13:37.629] our window, skipping [23:13:37.632] RDP clipboard_data_source_send new (0x7fbb68000e70:published:fd 97) vs prev (0x7fbb68000ac0:cancel pending:fd 94): outstanding RDP data request (client to server) [23:13:37.632] xfixes selection notify event: owner 2097153 [23:13:37.632] our window, skipping [23:13:56.884] xfixes selection notify event: owner 2097153 [23:13:56.884] our window, skipping [23:13:56.886] xfixes selection notify event: owner 2097153 [23:13:56.886] our window, skipping [23:14:06.872] xfixes selection notify event: owner 2097153 [23:14:06.872] our window, skipping ```
github-actions[bot] commented 1 month ago

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs Download and execute [collect-wsl-logs.ps1](https://github.com/Microsoft/WSL/blob/master/diagnostics/collect-wsl-logs.ps1) in an **administrative powershell prompt**: ``` Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1 Set-ExecutionPolicy Bypass -Scope Process -Force .\collect-wsl-logs.ps1 ``` The script will output the path of the log file once done. If this is a networking issue, please use [collect-networking-logs.ps1](https://github.com/Microsoft/WSL/blob/master/diagnostics/collect-networking-logs.ps1), following the instructions [here](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues) Once completed please upload the output files to this Github issue. [Click here for more info on logging](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs-recommended-method) If you choose to email these logs instead of attaching to the bug, please send them to wsl-gh-logs@microsoft.com with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

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!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

wang1zhen commented 1 month ago

WslLogs-2024-08-03_23-36-02.zip the collected logs are uploaded here.

github-actions[bot] commented 1 month ago
Diagnostic information ``` .wslconfig found Detected appx version: 2.2.4.0 ```
wang1zhen commented 1 month ago

Some more checks: the /tmp/.X11-unix/X0 exists a few seconds after the debian wsl is invoked, but later it disappeared.

image

and /mnt/wslg/.X11-unix/X0 file exists, but the /tmp/.X11-unix is no longer linked to /mnt/wslg/.X11-unix.

Manually run

sudo rmdir /tmp/.X11-unix && ln -s /mnt/wslg/.X11-unix /tmp/.X11-unix

fixes the problem, but I think it is a workaround, maybe other permanent fix would be favorable.

OneBlue commented 1 month ago

@wang1zhen: Is systemd enabled if you distro ? If so, do you see the same behavior is you disable it ?

wang1zhen commented 1 month ago

@OneBlue Yes, systemd was enabled for Debian, and once I turn it off then restart, this problem is also resolved. However, I need systemd for some specific use cases, I will stick to this solution for now.

OneBlue commented 1 month ago

Ok then there's most likely a systemd unit that clears this file. Most likely systemd-tmpfiles or similar. You might have to disable units via systemctl --disable <unit> to root cause which one is causing the file to be deleted.

microsoft-github-policy-service[bot] commented 4 weeks ago

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue.

Thank you!