Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSLg Crashes Randomly due to multi-thread race condition to access RDP id_manager #678

Open
manuth opened this issue Mar 9, 2022 · 19 comments
Labels
bug Something isn't working fixinbound

Comments

@manuth
Copy link

manuth commented Mar 9, 2022

Environment

Windows build number: Microsoft Windows NT 10.0.22000.0
Your Distribution version: 20.04
Your WSLg version: 1.0.26

Steps to reproduce

  • Run a ressource heavy GUI application (such as running an Ubuntu VM in virt-manager)
  • Try to use the GUI application and wait for it to crash

WSL logs:

  • Attach WSLg logs from /mnt/wslg

You can access the wslg logs using explorer at: \\wsl$\<Distro-Name>\mnt\wslg (e.g.: \\wsl$\Ubuntu-20.04\mnt\wslg)

Expected behavior

The GUI should at most lag.

Actual behavior

All GUI applications immediately close.
Following lines are written to the stderr.log when this happens:

The XKEYBOARD keymap compiler (xkbcomp) reports:
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 569, clipping.
>                   X11 cannot support keycodes above 255.
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 569, clipping.
>                   X11 cannot support keycodes above 255.
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server
[11:01:14:170] [340:340] [ERROR][com.freerdp.core.transport] - BIO_read returned a system error 11: Resource temporarily unavailable
[11:01:14:170] [340:340] [ERROR][com.freerdp.core] - transport_read_layer:freerdp_set_last_error_ex ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
[11:01:14:171] [340:340] [ERROR][com.freerdp.core.transport] - BIO_should_retry returned a system error 32: Broken pipe
[11:01:14:171] [340:340] [ERROR][com.freerdp.core.transport] - BIO_should_retry returned a system error 32: Broken pipe
[11:01:14:174] [340:340] [ERROR][com.freerdp.core.transport] - BIO_should_retry returned a system error 32: Broken pipe
[11:01:14:174] [340:340] [ERROR][com.freerdp.core.transport] - BIO_should_retry returned a system error 32: Broken pipe
[11:01:14:229] [340:340] [ERROR][com.freerdp.core.transport] - BIO_should_retry returned a system error 32: Broken pipe
[11:01:14:229] [340:340] [ERROR][com.freerdp.core.transport] - BIO_should_retry returned a system error 32: Broken pipe
(EE) failed to read Wayland events: Broken pipe
<4>WSLGd: /usr/bin/weston terminated with signal 11.
<4>WSLGd: /mnt/c/Windows/System32/mstsc.exe exited with status 0.
@manuth manuth added the bug Something isn't working label Mar 9, 2022
@RFHold
Copy link

RFHold commented Mar 17, 2022

seems to be the same as #589

@hideyukn88
Copy link
Member

@manuth, please update WSL to the latest version from aka.ms/wslstorepage, and if this still occurs after update, please share core dumps from /mnt/wslg/dumps, thanks!

@manuth
Copy link
Author

manuth commented Mar 18, 2022

@manuth, please update WSL to the latest version from aka.ms/wslstorepage, and if this still occurs after update, please share core dumps from /mnt/wslg/dumps, thanks!

I'm running the most recent version of WSL
However, I haven't uploaded /mnt/wslg/dumps so far. I'll post it as soon as it happens again.

Thanks for your help 😄

@speller
Copy link

speller commented Oct 13, 2022

I'm having a similar issue. Today I faced it twice. All wslg apps suddenly crash and can not be started again until the wsl subsystem is restarted. I've collected wsl logs but don't want to expose them publicly.

@hideyukn88
Copy link
Member

@speller, do you see any dumps at /mnt/wslg/dumps? and please make sure the WSL is the latest by wsl --version, which should show 0.70.0 as of today, thanks!

@speller
Copy link

speller commented Oct 13, 2022

Here are some logs from inside WSL:

/wslg/stderr.log:

/usr/bin/wslpath: /home/alex/.local/share/JetBrains/Toolbox/apps/PhpStorm/ch-0/222.4345.15/jbr/bin/java: No such file or directory
Exception: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)

/usr/bin/wslpath: /home/alex/.local/share/JetBrains/Toolbox/apps/PhpStorm/ch-0/222.4345.15/jbr/bin/java: No such file or directory
Exception: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)

/usr/bin/wslpath: /home/alex/.local/share/JetBrains/Toolbox/apps/PhpStorm/ch-0/222.4345.15/jbr/bin/java: No such file or directory
weston: ../libweston/backend-rdp/rdputil.c:300: rdp_id_manager_lookup: Assertion `id_manager->mutex_tid == rdp_get_tid()' failed.
Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
(EE) failed to write to XWayland fd: Broken pipe
X connection to :0 broken (explicit kill or server shutdown).
<4>WSLGd: /usr/bin/sh terminated with signal 6.
<4>WSLGd: /mnt/c/Users/mail/AppData/Local/Microsoft/WindowsApps/MicrosoftCorporationII.WindowsSubsystemForLinux_8wekyb3d8bbwe/msrdc.exe exited with status 0.
<4>WSLGd: /usr/bin/sh exited with status 1.
/usr/share/icons/hicolor/scalable/apps/org.gnome.Nautilus.svg: unrecognized file header 0x3c 0x3f 0x78 0x6d
could not load cursor 'grabbing'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
glamor: 'wl_drm' not supported
Missing Wayland requirements for glamor GBM backend
Failed to initialize glamor, falling back to sw
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server
[00:18:51:940] [4487:4487] [ERROR][com.freerdp.core.gcc] - Unknown GCC client data block: 0xC00C
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 569, clipping.
>                   X11 cannot support keycodes above 255.
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server 

/wslg/weston.log:

[00:17:11.747] Client: ClientGetAppidReq: WindowId:0xb8 does not have appId, or not top level window.
[00:17:14.981] app_list_monitor_thread: readlink failed /proc/310/exe:No such file or directory
[00:17:14.981] Client: ClientGetAppidReq: WindowId:0xb9 does not have appId, or not top level window.
Date: 2022-10-14 JST
[00:18:50.295] weston 9.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: 9.0.0-173-g2270ceb3
[00:18:50.295] Command line: /usr/bin/weston --backend=rdp-backend.so --modules=wslgd-notify.so --xwayland --log=/mnt/wslg/weston.log --socket=wayland-0 --shell=rdprail-shell.so --logger-scopes=log,rdp-backend,rdprail-shell
[00:18:50.295] OS: Linux, 5.15.68.1-microsoft-standard-WSL2, #1 SMP Mon Sep 19 19:14:52 UTC 2022, x86_64
[00:18:50.295] Using config file '/home/wslg/.config/weston.ini'
[00:18:50.296] Output repaint window is 7 ms maximum.
[00:18:50.296] Loading module '/usr/lib/libweston-9/rdp-backend.so'
[00:18:50.305] using FreeRDP version 2.4.0
Date: 2022-10-14 JST
[00:18:50.305] RDP backend: WESTON_RDP_DEBUG_LEVEL: 3
[00:18:50.305] RDP backend: rdp_monitor_refresh_rate: 60000
[00:18:50.305] RDP backend: timer resolution tv_sec:0 tv_nsec:1
[00:18:50.305] RDP backend: Environment dump - start
[00:18:50.305]   WSL2_DEFAULT_APP_ICON=/usr/share/icons/wsl/linux.png
[00:18:50.305]   SHELL=/bin/bash
[00:18:50.305]   WSL2_GUI_APPS_ENABLED=1
[00:18:50.305]   WSL_DISTRO_NAME=
[00:18:50.305]   WSL2_VM_ID=0FE39E6B-0064-4D5A-885B-6DF55365D238
[00:18:50.305]   XCURSOR_PATH=/usr/share/icons
[00:18:50.305]   XCURSOR_SIZE=16
[00:18:50.305]   NAME=DELL
[00:18:50.305]   PWD=/home/wslg
[00:18:50.305]   LOGNAME=wslg
[00:18:50.305]   WSL_FEATURE_FLAGS=d
[00:18:50.305]   WSL2_USER_PROFILE=C:\Users\mail
[00:18:50.305]   WSL2_DISTRO_NAME=Ubuntu-20.04
[00:18:50.305]   _=/usr/bin/weston
[00:18:50.305]   PULSE_AUDIO_RDP_SINK=/mnt/wslg/PulseAudioRDPSink
[00:18:50.305]   HOME=/home/wslg
[00:18:50.305]   WAYLAND_DISPLAY=wayland-0
[00:18:50.305]   USE_VSOCK=3
[00:18:50.305]   WSL2_EXECUTION_ALIAS_PATH=C:\Users\mail\AppData\Local\Microsoft\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_8wekyb3d8bbwe
[00:18:50.305]   WSL2_DEFAULT_APP_OVERLAY_ICON=/usr/share/icons/wsl/linux.png
[00:18:50.305]   USER=wslg
[00:18:50.305]   DISPLAY=:0
[00:18:50.305]   SHLVL=0
[00:18:50.305]   XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir
[00:18:50.305]   WSL2_SHARED_MEMORY_OB_DIRECTORY=WSL\0FE39E6B-0064-4D5A-885B-6DF55365D238\wslg
[00:18:50.305]   XCURSOR_THEME=whiteglass
[00:18:50.305]   PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
[00:18:50.305]   PULSE_AUDIO_RDP_SOURCE=/mnt/wslg/PulseAudioRDPSource
[00:18:50.305]   PULSE_SERVER=/mnt/wslg/PulseServer
[00:18:50.305]   WSL2_INSTALL_PATH=C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_0.70.0.0_x64__8wekyb3d8bbwe
[00:18:50.305]   WSL2_SHARED_MEMORY_MOUNT_POINT=/mnt/shared_memory
[00:18:50.305]   WESTON_CONFIG_FILE=/home/wslg/.config/weston.ini
[00:18:50.305] RDP backend: Environment dump - end
[00:18:50.305] RDP backend: FreeRDP version: 2.4.0
[00:18:50.305] Using external fd for incoming connections: 3
[00:18:50.305] Default head is being added
[00:18:50.305] Registered plugin API 'weston_rdprail_api_v1' of size 64
[00:18:50.305] RDPAPPLIST_MODULEDIR is set to /usr/lib/rdpapplist
[00:18:50.305] RDP backend: use_rdpapplist = 1
[00:18:50.314] RDP backend: use_gfxredir = 1
[00:18:50.314] RDP backend: enable_hi_dpi_support = 1
[00:18:50.314] RDP backend: enable_fractional_hi_dpi_support = 0
[00:18:50.314] RDP backend: enable_fractional_hi_dpi_roundup = 0
[00:18:50.314] RDP backend: debug_desktop_scaling_factor = 0
[00:18:50.314] RDP backend: enable_window_zorder_sync = 1
[00:18:50.314] RDP backend: enable_window_snap_arrange = 0
[00:18:50.314] RDP backend: enable_window_shadow_remoting = 1
[00:18:50.314] RDP backend: enable_display_power_by_screenupdate = 0
[00:18:50.314] RDP backend: enable_distro_name_title = 1
[00:18:50.314] RDP backend: enable_copy_warning_title = 1
[00:18:50.314] Using VSOCK for incoming connections: 3
[00:18:50.315] Registered plugin API 'weston_rdp_output_api_v1' of size 16
[00:18:50.315] Head attaching: rdp-0, index:0, is_primary: 1
[00:18:50.315] Client desktop upper left coordinate (0,0)
[00:18:50.315] disp_monitor_validate_and_compute_layout:---OUTPUT---
[00:18:50.315] 	rdpMonitor[0]: x:0, y:0, width:0, height:0, is_primary:1
[00:18:50.315] 	rdpMonitor[0]: weston x:0, y:0, width:0, height:0
[00:18:50.315] 	rdpMonitor[0]: physicalWidth:0, physicalHeight:0, orientation:0
[00:18:50.315] 	rdpMonitor[0]: desktopScaleFactor:0, deviceScaleFactor:0
[00:18:50.315] 	rdpMonitor[0]: scale:1, clientScale:1.00
[00:18:50.315] Head mode change:rdp-0 NEW width:0, height:0, scale:1, clientScale:1.000000
[00:18:50.315] move head/output rdp-0 (0,0) -> (0,0)
[00:18:50.315] client origin (0,0) is (0,0) in Weston space
[00:18:50.315] Output 'rdp-0' enabled with head(s) rdp-0
[00:18:50.315] 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
[00:18:50.316] Loading module '/usr/lib/weston/rdprail-shell.so'
[00:18:50.318] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_DEBUG_LEVEL: 3.
Date: 2022-10-14 JST
[00:18:50.318] RDPRAIL-shell: allow-zap:0
[00:18:50.318] RDPRAIL-shell: binding-modifier:none
[00:18:50.318] RDPRAIL-shell: local-move:0
[00:18:50.318] RDPRAIL-shell: distro name:Ubuntu-20.04 (len:12)
[00:18:50.319] RDPRAIL-shell: WSL2_DEFAULT_APP_ICON:/usr/share/icons/wsl/linux.png (loaded:yes)
[00:18:50.320] RDPRAIL-shell: WSL2_DEFAULT_APP_OVERLAY_ICON:/usr/share/icons/wsl/linux.png (loaded:yes)
[00:18:50.320] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_APPEND_DISTRONAME_STARTMEN:1
[00:18:50.320] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_BLEND_OVERLAY_ICON_APPLIST:1
[00:18:50.320] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_BLEND_OVERLAY_ICON_TASKBAR:1
[00:18:50.320] rdp_rail_shell_initialize_notify: shell: distro name: Ubuntu-20.04
[00:18:50.322] Loading module '/usr/lib/libweston-9/xwayland.so'
[00:18:50.322] app_list_monitor_thread: running in system-distro with user-distro: Ubuntu-20.04
[00:18:50.322] app_list_monitor_thread: open(/proc/self/ns/mnt)
[00:18:50.322] app_list_monitor_thread: open(/proc/2/ns/mnt)
[00:18:50.322] app_list_monitor_thread: inotify_add_watch(/usr/share/applications)
[00:18:50.322] app_list_monitor_thread: /usr/local/share/applications doesn't exist, skipping.
[00:18:50.331] app_list_monitor_thread: inotify_add_watch(/var/lib/snapd/desktop/applications)
[00:18:50.332] app list folder[0]: /usr/share/applications
[00:18:50.332] desktop file: /usr/share/applications/snap-handle-link.desktop has NoDisplay specified
[00:18:50.332] app list entry failed to update: Key:snap-handle-link
[00:18:50.332] free_app_entry(): (null): /usr/share/applications/snap-handle-link.desktop
[00:18:50.332] desktop file: /usr/share/applications/nautilus-autorun-software.desktop has NoDisplay specified
[00:18:50.332] app list entry failed to update: Key:nautilus-autorun-software
[00:18:50.332] free_app_entry(): (null): /usr/share/applications/nautilus-autorun-software.desktop
[00:18:50.333] find_icon_file: icon (preferences-desktop-font) search retry:(1) global:(1)
[00:18:50.333] desktop file: /usr/share/applications/org.gnome.FontManager.desktop
[00:18:50.333]     Name[en_US]:Font Manager (Ubuntu-20.04)
[00:18:50.333]     Exec:font-manager 
[00:18:50.333]     TryExec:(null)
[00:18:50.333]     WorkingDir:(null)
[00:18:50.333]     Icon name:preferences-desktop-font
[00:18:50.333]     Icon file:(null)
[00:18:50.333]     Icon image:(nil)
[00:18:50.333] app list entry updated: Key:FontManager, Name:Font Manager (Ubuntu-20.04)
[00:18:50.333] desktop file: /usr/share/applications/org.gnome.Nautilus.desktop
[00:18:50.333]     Name[en_US]:Files (Ubuntu-20.04)
[00:18:50.333]     Exec:nautilus --new-window 
[00:18:50.333]     TryExec:(null)
[00:18:50.333]     WorkingDir:(null)
[00:18:50.333]     Icon name:org.gnome.Nautilus
[00:18:50.333]     Icon file:/usr/share/icons/hicolor/scalable/apps/org.gnome.Nautilus.svg
[00:18:50.333]     Icon image:(nil)
[00:18:50.333] app list entry updated: Key:Nautilus, Name:Files (Ubuntu-20.04)
[00:18:50.333] Registered plugin API 'weston_xwayland_v1' of size 32
[00:18:50.333] Registered plugin API 'weston_xwayland_surface_v1' of size 48
[00:18:50.334] desktop file: /usr/share/applications/byobu.desktop is terminal based app
[00:18:50.334] app list entry failed to update: Key:byobu
[00:18:50.334] free_app_entry(): (null): /usr/share/applications/byobu.desktop
[00:18:50.334] desktop file: /usr/share/applications/qemu.desktop has NoDisplay specified
[00:18:50.334] app list entry failed to update: Key:qemu
[00:18:50.334] free_app_entry(): (null): /usr/share/applications/qemu.desktop
[00:18:50.334] unlinking stale lock file /tmp/.X0-lock
[00:18:50.334] desktop file: /usr/share/applications/gcr-viewer.desktop has NoDisplay specified
[00:18:50.334] app list entry failed to update: Key:gcr-viewer
[00:18:50.334] free_app_entry(): (null): /usr/share/applications/gcr-viewer.desktop
[00:18:50.334] xserver listening on display :0
[00:18:50.334] desktop file: /usr/share/applications/vim.desktop is terminal based app
[00:18:50.334] app list entry failed to update: Key:vim
[00:18:50.334] free_app_entry(): (null): /usr/share/applications/vim.desktop
[00:18:50.334] Loading module '/usr/lib/weston/wslgd-notify.so'
[00:18:50.334] desktop file: /usr/share/applications/ca.desrt.dconf-editor.desktop
[00:18:50.334] wet_module_init: socket path is not specified
[00:18:50.334]     Name[en_US]:dconf Editor (Ubuntu-20.04)
[00:18:50.334]     Exec:dconf-editor
[00:18:50.334]     TryExec:(null)
[00:18:50.334]     WorkingDir:(null)
[00:18:50.334]     Icon name:ca.desrt.dconf-editor
[00:18:50.334]     Icon file:/usr/share/icons/hicolor/48x48/apps/ca.desrt.dconf-editor.png
[00:18:50.334]     Icon image:0x7fcca000c030
[00:18:50.334] app list entry updated: Key:dconf-editor, Name:dconf Editor (Ubuntu-20.04)
[00:18:50.334] launching '/usr/libexec/weston-rdprail-shell'
[00:18:50.335] desktop file: /usr/share/applications/gcr-prompter.desktop has NoDisplay specified
[00:18:50.335] app list entry failed to update: Key:gcr-prompter
[00:18:50.335] free_app_entry(): (null): /usr/share/applications/gcr-prompter.desktop
[00:18:50.336] desktop file: /usr/share/applications/firefox.desktop
[00:18:50.336]     Name[en_US]:Firefox Web Browser (Ubuntu-20.04)
[00:18:50.336]     Exec:firefox 
[00:18:50.336]     TryExec:(null)
[00:18:50.336]     WorkingDir:(null)
[00:18:50.336]     Icon name:firefox
[00:18:50.336]     Icon file:/usr/share/icons/hicolor/128x128/apps/firefox.png
[00:18:50.336]     Icon image:0x7fcca000ce60
[00:18:50.336] app list entry updated: Key:firefox, Name:Firefox Web Browser (Ubuntu-20.04)
[00:18:50.336] desktop file: /usr/share/applications/io.snapcraft.SessionAgent.desktop has NoDisplay specified
[00:18:50.336] app list entry failed to update: Key:SessionAgent
[00:18:50.336] free_app_entry(): (null): /usr/share/applications/io.snapcraft.SessionAgent.desktop
[00:18:50.336] desktop file: /usr/share/applications/htop.desktop is terminal based app
[00:18:50.336] app list entry failed to update: Key:htop
[00:18:50.336] free_app_entry(): (null): /usr/share/applications/htop.desktop
[00:18:50.336] find_icon_file: icon (preferences-desktop-font) search retry:(1) global:(2)
[00:18:50.336] desktop file: /usr/share/applications/org.gnome.FontViewer.desktop
[00:18:50.336]     Name[en_US]:Font Viewer (Ubuntu-20.04)
[00:18:50.336]     Exec:/usr/libexec/font-manager/font-viewer 
[00:18:50.336]     TryExec:(null)
[00:18:50.336]     WorkingDir:(null)
[00:18:50.336]     Icon name:preferences-desktop-font
[00:18:50.336]     Icon file:(null)
[00:18:50.336]     Icon image:(nil)
[00:18:50.336] app list entry updated: Key:FontViewer, Name:Font Viewer (Ubuntu-20.04)
[00:18:50.336] desktop file: /usr/share/applications/info.desktop is terminal based app
[00:18:50.336] app list entry failed to update: Key:info
[00:18:50.336] free_app_entry(): (null): /usr/share/applications/info.desktop
[00:18:50.336] desktop file: /usr/share/applications/python3.8.desktop has NoDisplay specified
[00:18:50.336] app list entry failed to update: Key:8
[00:18:50.336] free_app_entry(): (null): /usr/share/applications/python3.8.desktop
[00:18:50.337] app list folder[1]: /usr/local/share/applications
[00:18:50.337] app list folder[2]: /var/lib/snapd/desktop/applications
[00:18:50.372] CreateWndow(): rdp_peer is not initalized
[00:18:50.384] Spawned Xwayland server, pid 4497
[00:18:51.063] xfixes version: 5.0
[00:18:51.120] created wm, root 648
[00:18:51.892] Client: ClientStatus:0x3f5
[00:18:51.892]      - TS_RAIL_CLIENTSTATUS_ALLOWLOCALMOVESIZE
[00:18:51.893]      - TS_RAIL_CLIENTSTATUS_ZORDER_SYNC
[00:18:51.893]      - TS_RAIL_CLIENTSTATUS_WINDOW_RESIZE_MARGIN_SUPPORTED
[00:18:51.893]      - TS_RAIL_CLIENTSTATUS_HIGH_DPI_ICONS_SUPPORTED
[00:18:51.893]      - TS_RAIL_CLIENTSTATUS_APPBAR_REMOTING_SUPPORTED
[00:18:51.893]      - TS_RAIL_CLIENTSTATUS_POWER_DISPLAY_REQUEST_SUPPORTED
[00:18:51.893]      - TS_RAIL_CLIENTSTATUS_GET_APPID_RESPONSE_EX_SUPPORTED
[00:18:51.893]      - TS_RAIL_CLIENTSTATUS_BIDIRECTIONAL_CLOAK_SUPPORTED
[00:18:51.893] Client HandShake buildNumber:22621
[00:18:51.920] Server AppList caps version:3
[00:18:51.941] Client: gfxredir_caps: length:28
[00:18:51.942] Client: gfxredir_caps[0]: signature:0x53504143
[00:18:51.942] Client: gfxredir_caps[0]: version:0x1
[00:18:51.942] Client: gfxredir_caps[0]: length:12
[00:18:51.942] Client: gfxredir_caps[1]: signature:0x53504143
[00:18:51.942] Client: gfxredir_caps[1]: version:0x2000
[00:18:51.942] Client: gfxredir_caps[1]: length:16
[00:18:51.942] Client: gfxredir_caps[1]: supportedFeatures:0x0
[00:18:51.942] Client: gfxredir selected caps: version:0x2000
[00:18:51.952] Client: GrfxCaps count:0xa
[00:18:51.952] Client: GrfxCaps[0] version:0x80004 length:4 flags:0x0
[00:18:51.952] 	Version : RDPGFX_CAPVERSION_8
[00:18:51.952] Client: GrfxCaps[1] version:0x80105 length:4 flags:0x0
[00:18:51.952] 	Version : RDPGFX_CAPVERSION_81
[00:18:51.952] Client: GrfxCaps[2] version:0xa0002 length:4 flags:0x0
[00:18:51.952] 	Version : RDPGFX_CAPVERSION_10
[00:18:51.952] Client: GrfxCaps[3] version:0xa0200 length:4 flags:0x0
[00:18:51.952] 	Version : RDPGFX_CAPVERSION_102
[00:18:51.952] Client: GrfxCaps[4] version:0xa0301 length:4 flags:0x0
[00:18:51.952] 	Version : RDPGFX_CAPVERSION_103
[00:18:51.952] Client: GrfxCaps[5] version:0xa0400 length:4 flags:0x0
[00:18:51.952] 	Version : RDPGFX_CAPVERSION_104
[00:18:51.952] Client: GrfxCaps[6] version:0xa0502 length:4 flags:0x0
[00:18:51.952] 	Version : RDPGFX_CAPVERSION_105
[00:18:51.952] Client: GrfxCaps[7] version:0xa0600 length:4 flags:0x0
[00:18:51.953] 	Version : RDPGFX_CAPVERSION_106
[00:18:51.953] Client: GrfxCaps[8] version:0xa0701 length:4 flags:0x0
[00:18:51.953] 	Version : UNKNOWN(657153)
[00:18:51.953] Client: GrfxCaps[9] version:0xb0101 length:4 flags:0x0
[00:18:51.953] 	Version : UNKNOWN(721153)
[00:18:51.968] xf_peer_adjust_monitor_layout:
[00:18:51.968]   DesktopWidth:3840, DesktopHeight:2160
[00:18:51.968]   UseMultimon:0
[00:18:51.968]   ForceMultimon:0
[00:18:51.968]   MonitorCount:0
[00:18:51.968]   HasMonitorAttributes:0
[00:18:51.968]   HiDefRemoteApp:1
[00:18:51.968] disp_monitor_sanity_check_layout:---INPUT---
[00:18:51.968] 	rdpMonitor[0]: x:0, y:0, width:3840, height:2160, is_primary:1
[00:18:51.968] 	rdpMonitor[0]: physicalWidth:597, physicalHeight:336, orientation:0
[00:18:51.968] 	rdpMonitor[0]: desktopScaleFactor:150, deviceScaleFactor:140
[00:18:51.969] 	rdpMonitor[0]: scale:1, client scale :1.00
[00:18:51.969] kbd_layout:0xe0010411 kbd_type:0x7 kbd_subType:0x2 kbd_functionKeys:0xc
[00:18:51.969] convert_rdp_keyboard_to_xkb_rule_names: matching model=pc105 layout=jp variant=(null) options=(null)
[00:18:52.022] Client desktop upper left coordinate (0,0)
[00:18:52.022] disp_monitor_validate_and_compute_layout:---OUTPUT---
[00:18:52.022] 	rdpMonitor[0]: x:0, y:0, width:3840, height:2160, is_primary:1
[00:18:52.022] 	rdpMonitor[0]: weston x:0, y:0, width:3840, height:2160
[00:18:52.022] 	rdpMonitor[0]: physicalWidth:597, physicalHeight:336, orientation:0
[00:18:52.022] 	rdpMonitor[0]: desktopScaleFactor:0, deviceScaleFactor:140
[00:18:52.022] 	rdpMonitor[0]: scale:1, clientScale:1.00
[00:18:52.022] Head mode change:rdp-0 NEW width:3840, height:2160, scale:1, clientScale:1.000000
[00:18:52.023] move head/output rdp-0 (0,0) -> (0,0)
[00:18:52.023] client origin (0,0) is (0,0) in Weston space
[00:18:52.023] Client ExecOrder:0x00000008, Program:dummy-entry, WorkingDir:(null), RemoteApplicationArguments:(null)
[00:18:52.023] Client ExecOrder launching dummy-entry
[00:18:52.023] launching 'dummy-entry'
[00:18:52.024] Client: ClientSysparam: filterKeys
[00:18:52.025] Client: ClientSysparam: toggleKeys:62
[00:18:52.025] Client: ClientSysparam: stickyKeys:506
[00:18:52.025] Client: ClientSysparam: caretWidth:1
[00:18:52.025] Client: ClientSysparam: highContrast
[00:18:52.025] Client: ClientSysparam: taskbarPos:(left:0, top:2088, right:3840, bottom:2160)
[00:18:52.025] Client: ClientSysparam: mouseButtonSwap:0
[00:18:52.025] Client: ClientSysparam: keyboardPref:0
[00:18:52.025] Client: ClientSysparam: dragFullWindows:1
[00:18:52.025] Client: ClientSysparam: keyboardCues:0
[00:18:52.025] Client: ClientSysparam: workArea:(left:0, top:0, right:3840, bottom:2088)
[00:18:52.025] Translated workarea:(0,0)-(3840,2088) at rdp-0:(0,0)-(3840,2160)
[00:18:52.025] Client AppList caps version:3
[00:18:52.025] Client AppList client language id: en_US
[00:18:52.025] Client: ClientSysparam: filterKeys
[00:18:52.025] Client: ClientSysparam: toggleKeys:62
[00:18:52.025] Client: ClientSysparam: stickyKeys:506
[00:18:52.025] Client: ClientSysparam: caretWidth:1
[00:18:52.025] Client: ClientSysparam: highContrast
[00:18:52.025] Client: ClientSysparam: taskbarPos:(left:0, top:2088, right:3840, bottom:2160)
[00:18:52.025] Client: ClientSysparam: mouseButtonSwap:0
[00:18:52.025] Client: ClientSysparam: keyboardPref:0
[00:18:52.025] Client: ClientSysparam: dragFullWindows:1
[00:18:52.025] Client: ClientSysparam: keyboardCues:0
[00:18:52.025] Client: ClientSysparam: workArea:(left:0, top:0, right:3840, bottom:2088)
[00:18:52.025] Translated workarea:(0,0)-(3840,2088) at rdp-0:(0,0)-(3840,2160)
[00:18:52.025] app_list_monitor_thread: startRdpNotifyEvent is signalled. 0 - en_US
[00:18:52.026] rdp_rail_notify_app_list(): rdp_peer 0x561227e3dc30
[00:18:52.026]     inSync: 1
[00:18:52.026]     syncStart: 1
[00:18:52.026]     syncEnd: 0
[00:18:52.026]     newAppId: 1
[00:18:52.026]     deleteAppId: 0
[00:18:52.026]     deleteAppProvider: 0
[00:18:52.026]     appId: dconf-editor
[00:18:52.026]     appGroup: (null)
[00:18:52.026]     appExecPath: dconf-editor
[00:18:52.026]     appWorkingDir: (null)
[00:18:52.026]     appDesc: dconf Editor (Ubuntu-20.04)
[00:18:52.026]     appIcon: 0x7fcca000c030
[00:18:52.026]     appProvider: (null)
[00:18:52.026] rdp_rail_notify_app_list(): rdp_peer 0x561227e3dc30
[00:18:52.026]     inSync: 1
[00:18:52.026]     syncStart: 0
[00:18:52.026]     syncEnd: 0
[00:18:52.026]     newAppId: 1
[00:18:52.026]     deleteAppId: 0
[00:18:52.026]     deleteAppProvider: 0
[00:18:52.026]     appId: FontViewer
[00:18:52.026]     appGroup: (null)
[00:18:52.026]     appExecPath: /usr/libexec/font-manager/font-viewer 
[00:18:52.026]     appWorkingDir: (null)
[00:18:52.026]     appDesc: Font Viewer (Ubuntu-20.04)
[00:18:52.026]     appIcon: 0x561227dd4c30
[00:18:52.026]     appProvider: (null)
[00:18:52.027] rdp_rail_notify_app_list(): rdp_peer 0x561227e3dc30
[00:18:52.027]     inSync: 1
[00:18:52.027]     syncStart: 0
[00:18:52.027]     syncEnd: 0
[00:18:52.027]     newAppId: 1
[00:18:52.027]     deleteAppId: 0
[00:18:52.027]     deleteAppProvider: 0
[00:18:52.027]     appId: FontManager
[00:18:52.027]     appGroup: (null)
[00:18:52.027]     appExecPath: font-manager 
[00:18:52.027]     appWorkingDir: (null)
[00:18:52.027]     appDesc: Font Manager (Ubuntu-20.04)
[00:18:52.027]     appIcon: 0x561227dd4c30
[00:18:52.027]     appProvider: (null)
[00:18:52.027] rdp_rail_notify_app_list(): rdp_peer 0x561227e3dc30
[00:18:52.027]     inSync: 1
[00:18:52.027]     syncStart: 0
[00:18:52.027]     syncEnd: 0
[00:18:52.027]     newAppId: 1
[00:18:52.027]     deleteAppId: 0
[00:18:52.027]     deleteAppProvider: 0
[00:18:52.027]     appId: firefox
[00:18:52.027]     appGroup: (null)
[00:18:52.027]     appExecPath: firefox 
[00:18:52.027]     appWorkingDir: (null)
[00:18:52.027]     appDesc: Firefox Web Browser (Ubuntu-20.04)
[00:18:52.027]     appIcon: 0x7fcca000ce60
[00:18:52.027]     appProvider: (null)
[00:18:52.027] compositor: executing 'dummy-entry' failed: No such file or directory
[00:18:52.027] rdp_rail_notify_app_list(): rdp_peer 0x561227e3dc30
[00:18:52.027]     inSync: 1
[00:18:52.027]     syncStart: 0
[00:18:52.027]     syncEnd: 1
[00:18:52.027]     newAppId: 1
[00:18:52.027]     deleteAppId: 0
[00:18:52.027]     deleteAppProvider: 0
[00:18:52.027]     appId: Nautilus
[00:18:52.027]     appGroup: (null)
[00:18:52.027]     appExecPath: nautilus --new-window 
[00:18:52.027]     appWorkingDir: (null)
[00:18:52.027]     appDesc: Files (Ubuntu-20.04)
[00:18:52.027]     appIcon: 0x561227dd4c30
[00:18:52.027]     appProvider: (null)
[00:18:52.407] Client ExecOrder program terminated
[00:18:52.407] dummy-entry exited with status 255
[00:18:52.407] Pulse Audio Sink listener socket on /mnt/wslg/PulseAudioRDPSink
[00:18:52.416] xfixes selection notify event: owner 2097153
[00:18:52.416] our window, skipping
[00:18:54.029] retry_find_icon_file: icon (preferences-desktop-font) retry count (1)
[00:18:54.030] find_icon_file: icon (preferences-desktop-font) search retry:(2) global:(2) 

/wslg/pulseaudio.log:

W: [pulseaudio] pid.c: Stale PID file, overwriting.
E: [pulseaudio] module-console-kit.c: GetSessionsForUnixUser() call failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files
E: [pulseaudio] module.c: Failed to load module "module-console-kit" (argument: ""): initialization failed.
E: [rdp-sink] module-rdp-sink.c: RDP Sink - Trying to connect to /mnt/wslg/PulseAudioRDPSink
E: [rdp-sink] module-rdp-sink.c: Connected failed
E: [rdp-sink] module-rdp-sink.c: RDP Sink - Trying to connect to /mnt/wslg/PulseAudioRDPSink
E: [rdp-sink] module-rdp-sink.c: RDP Sink - Connected to fd 12 

versions.txt:

WSLg ( x86_64 ): 1.0.45+Branch.main.Sha.254cbbc0eb26fe4bf82e9656470ebb5546a84a23
Mariner: VERSION="2.0.20220426"
DirectX-Headers:
mesa:
pulseaudio: 2f0f0b8c3872780f15e275fc12899f4564f01bd5
FreeRDP: c574044a10003e50453acb4cf42801c5833fb572
weston: 2270ceb3cf75a03e8b3f073eca2c5dc04b12e504 

@speller
Copy link

speller commented Oct 13, 2022

@hideyukn88
Yes, I see the /wslg/dumps/core.weston file, 358 MB in size.

@hideyukn88
Copy link
Member

@speller, would you please share with us? if you are uncomfortable to share here, you can send us using Feedback Hub, please select below category and including the link to this page at description, thanks!

image

@speller
Copy link

speller commented Oct 13, 2022

@hideyukn88 I've created the feedback hub issue but can't get a web link. Only the internal uri is available: feedback-hub:?contextid=677&feedbackid=f1c8c805-a43e-4c02-92dd-20015507238b&form=1&src=1

@speller
Copy link

speller commented Oct 13, 2022

I've attached WSL logs collected from under Windows and the dump. Relevant pieces of wslg logs are already posted here.

@hideyukn88
Copy link
Member

@speller, thank you very much for sharing the dump, For reference, below is the callstack for the crash and I will work on the fix, thanks again for reporting the issue!

(gdb) bt
#0  0x00007fbd64baee6c in __pthread_kill_implementation () at /lib/libc.so.6
#1  0x00007fbd64b63d86 in raise () at /lib/libc.so.6
#2  0x00007fbd64b4e7e5 in abort () at /lib/libc.so.6
#3  0x00007fbd64b4e71b in _nl_load_domain.cold () at /lib/libc.so.6
#4  0x00007fbd64b5cc36 in  () at /lib/libc.so.6
#5  0x00007fbd6116fb78 in rdp_id_manager_lookup (id=187, id_manager=0x563bc8ed6320) at ../libweston/backend-rdp/rdputil.c:300
#6  rdp_id_manager_allocate_id
    (id_manager=id_manager@entry=0x563bc8ed6320, object=object@entry=0x563bc9603d10, new_id=new_id@entry=0x7fffb4a5c358)
    at ../libweston/backend-rdp/rdputil.c:330
#7  0x00007fbd61169b69 in rdp_rail_create_window (listener=<optimized out>, data=0x563bc9603d10)
    at ../libweston/backend-rdp/rdprail.c:1465
#8  0x00007fbd64af4d09 in wl_signal_emit (data=0x563bc9603d10, signal=0x563bc8e19758) at /usr/include/wayland-server-core.h:481
#9  compositor_create_surface (client=0x563bc8e4fa50, resource=<optimized out>, id=439) at ../libweston/compositor.c:3906
#10 0x00007fbd6481a056 in ffi_call_unix64 () at /lib/libffi.so.8
#11 0x00007fbd64818a56 in ffi_call_int () at /lib/libffi.so.8
#12 0x00007fbd64abdf61 in wl_closure_invoke () at /lib/libwayland-server.so.0
#13 0x00007fbd64ab9202 in wl_client_connection_data () at /lib/libwayland-server.so.0
#14 0x00007fbd64abbdca in wl_event_loop_dispatch () at /lib/libwayland-server.so.0
#15 0x00007fbd64ab9955 in wl_display_run () at /lib/libwayland-server.so.0
#16 0x00007fbd64d35337 in wet_main (argc=<optimized out>, argv=0x7fffb4a5d2c8) at ../compositor/main.c:3612
#17 0x00007fbd64b4f57d in __libc_start_call_main () at /lib/libc.so.6
#18 0x00007fbd64b4f630 in __libc_start_main_impl () at /lib/libc.so.6
#19 0x0000563bc8127085 in _start ()

@hideyukn88 hideyukn88 changed the title WSLg Crashes Randomly WSLg Crashes Randomly due to multi-thread race condition to access RDP id_manager Oct 13, 2022
@speller
Copy link

speller commented Oct 14, 2022

@hideyukn88 thank you for the prompt response! Will wait for the fix.

@speller
Copy link

speller commented Oct 14, 2022

@hideyukn88 By the way, is there a quick workaround to restart the graphics subsystem without restarting the whole WSL?

@speller
Copy link

speller commented Jan 24, 2023

@hideyukn88 when this fix is planned to be released?

@speller
Copy link

speller commented Mar 2, 2023

@hideyukn88 is the issue still not pending to be merged? I've faced a very similar issue

@speller
Copy link

speller commented Mar 2, 2023

The error happened at 18:27

versions.txt:

WSLg ( x86_64 ): 1.0.49+Branch.main.Sha.32eaeea0d48ad0f6dcdc8cae3e2a9218358f300a
Mariner: VERSION="2.0.20221010"
DirectX-Headers:
mesa:
pulseaudio: 2f0f0b8c3872780f15e275fc12899f4564f01bd5
FreeRDP: c574044a10003e50453acb4cf42801c5833fb572
weston: 3ff4250b28aefbcfefdd869cb997d0591c06b6d8

stderr.log:

[10:16:40.246] <5>WSLGd: FontFolder:14: FontMonitor: start monitoring /mnt/wslg/distro/usr/share/fonts
[10:16:40.251] <5>WSLGd: FontFolder:14: FontMonitor: start monitoring /mnt/wslg/distro/usr/share/fonts/X11
[10:16:40.251] <5>WSLGd: FontFolder:14: FontMonitor: start monitoring /mnt/wslg/distro/usr/share/fonts/X11/encodings
[10:16:40.252] <5>WSLGd: FontFolder:14: FontMonitor: start monitoring /mnt/wslg/distro/usr/share/fonts/X11/encodings/large
[10:16:40.257] <5>WSLGd: FontFolder:14: FontMonitor: start monitoring /mnt/wslg/distro/usr/share/fonts/X11/util
[10:16:40.258] <5>WSLGd: FontFolder:14: FontMonitor: start monitoring /mnt/wslg/distro/usr/share/fonts/X11/misc
/usr/share/icons/hicolor/scalable/apps/org.gnome.Nautilus.svg: unrecognized file header 0x3c 0x3f 0x78 0x6d
glamor: 'wl_drm' not supported
Missing Wayland requirements for glamor GBM backend
Failed to initialize glamor, falling back to sw
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server
[10:16:42.647] <5>WSLGd: ExecuteShellCommand:85: FontMonitor: pid:33 exited with success, /usr/bin/xset +fp /mnt/wslg/distro/usr/share/fonts/X11/misc 
[10:16:42.663] <5>WSLGd: ExecuteShellCommand:85: FontMonitor: pid:40 exited with success, /usr/bin/xset fp rehash 
[10:16:42.672] <5>WSLGd: FontMonitorThread:228: FontMonitor: monitoring thread started.
[10:16:42.672] <5>WSLGd: DumpMonitorFolders:125: FontMonitor: monitoring /mnt/wslg/distro/usr/share/fonts, and it is *not* added to X11 font path
[10:16:42.672] <5>WSLGd: DumpMonitorFolders:125: FontMonitor: monitoring /mnt/wslg/distro/usr/share/fonts/X11, and it is *not* added to X11 font path
[10:16:42.672] <5>WSLGd: DumpMonitorFolders:125: FontMonitor: monitoring /mnt/wslg/distro/usr/share/fonts/X11/encodings, and it is *not* added to X11 font path
[10:16:42.672] <5>WSLGd: DumpMonitorFolders:125: FontMonitor: monitoring /mnt/wslg/distro/usr/share/fonts/X11/encodings/large, and it is *not* added to X11 font path
[10:16:42.672] <5>WSLGd: DumpMonitorFolders:125: FontMonitor: monitoring /mnt/wslg/distro/usr/share/fonts/X11/misc, and it is added to X11 font path
[10:16:42.672] <5>WSLGd: DumpMonitorFolders:125: FontMonitor: monitoring /mnt/wslg/distro/usr/share/fonts/X11/util, and it is *not* added to X11 font path
dbus[44]: Unknown username "systemd-oom" in message bus configuration file
dbus[44]: Unknown username "pulse" in message bus configuration file
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 569, clipping.
>                   X11 cannot support keycodes above 255.
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server
could not load cursor 'grabbing'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 569, clipping.
>                   X11 cannot support keycodes above 255.
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 569, clipping.
>                   X11 cannot support keycodes above 255.
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 569, clipping.
>                   X11 cannot support keycodes above 255.
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 569, clipping.
>                   X11 cannot support keycodes above 255.
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server
Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
[18:27:59.884] <5>WSLGd: Run:108: pid 9 terminated with signal 11, /usr/bin/sh -c /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 
(EE) failed to write to XWayland fd: Broken pipe
[18:28:00.146] <5>WSLGd: Run:106: pid 43 exited with status 0, /init /mnt/c/Users/mail/AppData/Local/Microsoft/WindowsApps/MicrosoftCorporationII.WindowsSubsystemForLinux_8wekyb3d8bbwe/msrdc.exe msrdc.exe /v:DC158C07-DE7A-4BC4-8A8A-22457ECACD9A /hvsocketserviceid:BDF6FC76-FACB-11E6-BD58-64006A7986D3 /silent /wslg /plugin:WSLDVC_PACKAGE /wslgsharedmemorypath:WSL\DC158C07-DE7A-4BC4-8A8A-22457ECACD9A\wslg C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.1.3.0_x64__8wekyb3d8bbwe\wslg.rdp 
/usr/share/icons/hicolor/scalable/apps/org.gnome.Nautilus.svg: unrecognized file header 0x3c 0x3f 0x78 0x6d
X connection to :0 broken (explicit kill or server shutdown).
[18:28:01.570] <5>WSLGd: Run:106: pid 45 exited with status 1, /usr/bin/sh -c /usr/bin/dbus-launch /usr/bin/pulseaudio --load="module-rdp-sink sink_name=RDPSink" --load="module-rdp-source source_name=RDPSource" --load="module-native-protocol-unix socket=/mnt/wslg/PulseServer auth-anonymous=true" --log-target=file:/mnt/wslg/pulseaudio.log 
glamor: 'wl_drm' not supported
Missing Wayland requirements for glamor GBM backend
Failed to initialize glamor, falling back to sw
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 569, clipping.
>                   X11 cannot support keycodes above 255.
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server
weston: ../libweston/backend-rdp/rdprail.c:3014: rdp_rail_sync_window_zorder: Assertion `iCurrent > 0' failed.
Failed to process Wayland connection: Connection reset by peer
failed to create display: Connection reset by peer
(EE) failed to read Wayland events: Connection reset by peer
[18:38:03.528] <5>WSLGd: Run:108: pid 16003 terminated with signal 6, /usr/bin/sh -c /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 
X connection to :0 broken (explicit kill or server shutdown).
[18:38:03.568] <5>WSLGd: Run:106: pid 16006 exited with status 1, /usr/bin/sh -c /usr/bin/dbus-launch /usr/bin/pulseaudio --load="module-rdp-sink sink_name=RDPSink" --load="module-rdp-source source_name=RDPSource" --load="module-native-protocol-unix socket=/mnt/wslg/PulseServer auth-anonymous=true" --log-target=file:/mnt/wslg/pulseaudio.log 
/usr/share/icons/hicolor/scalable/apps/org.gnome.Nautilus.svg: unrecognized file header 0x3c 0x3f 0x78 0x6d
glamor: 'wl_drm' not supported
Missing Wayland requirements for glamor GBM backend
Failed to initialize glamor, falling back to sw
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server
[18:38:03.926] <5>WSLGd: Run:106: pid 16004 exited with status 0, /init /mnt/c/Users/mail/AppData/Local/Microsoft/WindowsApps/MicrosoftCorporationII.WindowsSubsystemForLinux_8wekyb3d8bbwe/msrdc.exe msrdc.exe /v:DC158C07-DE7A-4BC4-8A8A-22457ECACD9A /hvsocketserviceid:BDF6FC76-FACB-11E6-BD58-64006A7986D3 /silent /wslg /plugin:WSLDVC_PACKAGE /wslgsharedmemorypath:WSL\DC158C07-DE7A-4BC4-8A8A-22457ECACD9A\wslg C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.1.3.0_x64__8wekyb3d8bbwe\wslg.rdp 
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 569, clipping.
>                   X11 cannot support keycodes above 255.
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server
weston: ../libweston/backend-rdp/rdprail.c:3014: rdp_rail_sync_window_zorder: Assertion `iCurrent > 0' failed.
Failed to process Wayland connection: Connection reset by peer
failed to create display: Connection reset by peer
(EE) failed to read Wayland events: Connection reset by peer
[18:39:01.613] <5>WSLGd: Run:108: pid 3436 terminated with signal 6, /usr/bin/sh -c /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 
X connection to :0 broken (explicit kill or server shutdown).
/usr/share/icons/hicolor/scalable/apps/org.gnome.Nautilus.svg: unrecognized file header 0x3c 0x3f 0x78 0x6d
[18:39:01.664] <5>WSLGd: Run:106: pid 3437 exited with status 1, /usr/bin/sh -c /usr/bin/dbus-launch /usr/bin/pulseaudio --load="module-rdp-sink sink_name=RDPSink" --load="module-rdp-source source_name=RDPSource" --load="module-native-protocol-unix socket=/mnt/wslg/PulseServer auth-anonymous=true" --log-target=file:/mnt/wslg/pulseaudio.log 
glamor: 'wl_drm' not supported
Missing Wayland requirements for glamor GBM backend
Failed to initialize glamor, falling back to sw
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server
[18:39:01.986] <5>WSLGd: Run:106: pid 3448 exited with status 0, /init /mnt/c/Users/mail/AppData/Local/Microsoft/WindowsApps/MicrosoftCorporationII.WindowsSubsystemForLinux_8wekyb3d8bbwe/msrdc.exe msrdc.exe /v:DC158C07-DE7A-4BC4-8A8A-22457ECACD9A /hvsocketserviceid:BDF6FC76-FACB-11E6-BD58-64006A7986D3 /silent /wslg /plugin:WSLDVC_PACKAGE /wslgsharedmemorypath:WSL\DC158C07-DE7A-4BC4-8A8A-22457ECACD9A\wslg C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.1.3.0_x64__8wekyb3d8bbwe\wslg.rdp 
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 569, clipping.
>                   X11 cannot support keycodes above 255.
> Internal error:   Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server

wlog.log:

[10:16:43:908] [9:9] [INFO][com.freerdp.core.connection] -  drdynvc
[10:16:43:908] [9:9] [INFO][com.freerdp.core.gcc] - Active rdp encryption level: NONE
[10:16:43:908] [9:9] [INFO][com.freerdp.core.gcc] - Selected rdp encryption method: NONE
[18:28:00:048] [16003:16003] [INFO][com.freerdp.core.listener] - Listening on socket 3.
[18:28:01:882] [16003:16003] [INFO][com.freerdp.primitives] - primitives autodetect, using optimized
[18:28:01:883] [16003:16003] [INFO][com.freerdp.core.connection] - Client Security: NLA:0 TLS:0 RDP:1
[18:28:01:883] [16003:16003] [INFO][com.freerdp.core.connection] - Server Security: NLA:0 TLS:0 RDP:1
[18:28:01:883] [16003:16003] [INFO][com.freerdp.core.connection] - Negotiated Security: NLA:0 TLS:0 RDP:1
[18:28:01:883] [16003:16003] [INFO][com.freerdp.core.nego] - Turning off encryption for local peer with standard rdp security
[18:28:02:920] [16003:16003] [ERROR][com.freerdp.core.gcc] - Unknown GCC client data block: 0xC00C
[18:28:02:920] [16003:16003] [INFO][com.freerdp.core.connection] - Accepted client: DELL
[18:28:02:920] [16003:16003] [INFO][com.freerdp.core.connection] - Accepted channels:
[18:28:02:920] [16003:16003] [INFO][com.freerdp.core.connection] -  conctrl
[18:28:02:920] [16003:16003] [INFO][com.freerdp.core.connection] -  rdpdr
[18:28:02:920] [16003:16003] [INFO][com.freerdp.core.connection] -  rdpsnd
[18:28:02:920] [16003:16003] [INFO][com.freerdp.core.connection] -  rail
[18:28:02:920] [16003:16003] [INFO][com.freerdp.core.connection] -  rail_wi
[18:28:02:920] [16003:16003] [INFO][com.freerdp.core.connection] -  rail_ri
[18:28:02:920] [16003:16003] [INFO][com.freerdp.core.connection] -  cliprdr
[18:28:02:920] [16003:16003] [INFO][com.freerdp.core.connection] -  drdynvc
[18:28:02:920] [16003:16003] [INFO][com.freerdp.core.gcc] - Active rdp encryption level: NONE
[18:28:02:920] [16003:16003] [INFO][com.freerdp.core.gcc] - Selected rdp encryption method: NONE
[18:38:03:452] [3436:3436] [INFO][com.freerdp.core.listener] - Listening on socket 3.

weston.log:

[18:26:40.311] wrote fd:109 13 (chunk size 13) of 13 bytes
[18:26:40.311] transfer write complete
[18:26:40.313] wrote fd:109 13 (chunk size 13) of 13 bytes
[18:26:40.313] transfer write complete
[18:27:49.692] app_list_monitor_thread: readlink failed /proc/455/exe:No such file or directory
[18:27:49.692] Client: ClientGetAppidReq: WindowId:0x859 does not have appId, or not top level window.
[18:27:50.818] 


RDP clipboard_data_source_send new (0x7f56cc000e50:published:fd 110) vs prev (0x7f56cc000d40:cancel pending:fd 109): outstanding RDP data request (client to server)


[18:27:50.818] xfixes selection notify event: owner 2097153
[18:27:50.818] our window, skipping
[18:27:50.819] xfixes selection notify event: owner 2097153
[18:27:50.819] our window, skipping
Date: 2023-03-02 JST
[18:28:00.124] weston 9.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: 9.0.0-185-g3ff4250b
[18:28:00.125] 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
[18:28:00.125] OS: Linux, 5.15.90.1-microsoft-standard-WSL2, #1 SMP Fri Jan 27 02:56:13 UTC 2023, x86_64
[18:28:00.126] Using config file '/home/wslg/.config/weston.ini'
[18:28:00.131] Output repaint window is 7 ms maximum.
[18:28:00.134] Loading module '/usr/lib/libweston-9/rdp-backend.so'
[18:28:00.164] using FreeRDP version 2.4.0
Date: 2023-03-02 JST
[18:28:00.164] RDP backend: WESTON_RDP_DEBUG_LEVEL: 3
[18:28:00.164] RDP backend: rdp_monitor_refresh_rate: 60000
[18:28:00.164] RDP backend: timer resolution tv_sec:0 tv_nsec:1
[18:28:00.164] RDP backend: Environment dump - start
[18:28:00.164]   WSL2_DEFAULT_APP_ICON=/usr/share/icons/wsl/linux.png
[18:28:00.164]   SHELL=/bin/bash
[18:28:00.164]   WSL2_GUI_APPS_ENABLED=1
[18:28:00.164]   WSL_DISTRO_NAME=
[18:28:00.164]   WSL2_VM_ID=DC158C07-DE7A-4BC4-8A8A-22457ECACD9A
[18:28:00.164]   XCURSOR_PATH=/mnt/wslg/distro/usr/share/icons:/usr/share/icons
[18:28:00.164]   XCURSOR_SIZE=16
[18:28:00.164]   WLOG_APPENDER=file
[18:28:00.164]   NAME=DELL
[18:28:00.164]   PWD=/home/wslg
[18:28:00.164]   LOGNAME=wslg
[18:28:00.164]   WSL_FEATURE_FLAGS=8d
[18:28:00.164]   WSL2_USER_PROFILE=C:\Users\mail
[18:28:00.164]   WSL2_DISTRO_NAME=Ubuntu-20.04
[18:28:00.164]   _=/usr/bin/weston
[18:28:00.164]   PULSE_AUDIO_RDP_SINK=/mnt/wslg/PulseAudioRDPSink
[18:28:00.164]   HOME=/home/wslg
[18:28:00.164]   WAYLAND_DISPLAY=wayland-0
[18:28:00.164]   USE_VSOCK=3
[18:28:00.164]   WSL2_EXECUTION_ALIAS_PATH=C:\Users\mail\AppData\Local\Microsoft\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_8wekyb3d8bbwe
[18:28:00.164]   WSL2_DEFAULT_APP_OVERLAY_ICON=/usr/share/icons/wsl/linux.png
[18:28:00.164]   USER=wslg
[18:28:00.164]   DISPLAY=:0
[18:28:00.164]   SHLVL=0
[18:28:00.164]   WSLGD_NOTIFY_SOCKET=/mnt/wslg/weston-notify.sock
[18:28:00.164]   WLOG_FILEAPPENDER_OUTPUT_FILE_PATH=/mnt/wslg
[18:28:00.164]   XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir
[18:28:00.164]   WSL2_SHARED_MEMORY_OB_DIRECTORY=WSL\DC158C07-DE7A-4BC4-8A8A-22457ECACD9A\wslg
[18:28:00.164]   XCURSOR_THEME=whiteglass
[18:28:00.164]   PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
[18:28:00.164]   WESTON_DISABLE_ABSTRACT_FD=1
[18:28:00.164]   WLOG_FILEAPPENDER_OUTPUT_FILE_NAME=wlog.log
[18:28:00.164]   PULSE_AUDIO_RDP_SOURCE=/mnt/wslg/PulseAudioRDPSource
[18:28:00.164]   PULSE_SERVER=unix:/mnt/wslg/PulseServer
[18:28:00.164]   WSL2_INSTALL_PATH=C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.1.3.0_x64__8wekyb3d8bbwe
[18:28:00.164]   WSL2_SHARED_MEMORY_MOUNT_POINT=/mnt/shared_memory
[18:28:00.164]   WESTON_CONFIG_FILE=/home/wslg/.config/weston.ini
[18:28:00.164] RDP backend: Environment dump - end
[18:28:00.164] RDP backend: FreeRDP version: 2.4.0
[18:28:00.164] Using external fd for incoming connections: 3
[18:28:00.164] Default head is being added
[18:28:00.164] Registered plugin API 'weston_rdprail_api_v1' of size 64
[18:28:00.164] RDPAPPLIST_MODULEDIR is set to /usr/lib/rdpapplist
[18:28:00.165] RDP backend: use_rdpapplist = 1
[18:28:00.175] RDP backend: use_gfxredir = 1
[18:28:00.176] RDP backend: enable_hi_dpi_support = 1
[18:28:00.176] RDP backend: enable_fractional_hi_dpi_support = 0
[18:28:00.176] RDP backend: enable_fractional_hi_dpi_roundup = 0
[18:28:00.176] RDP backend: debug_desktop_scaling_factor = 0
[18:28:00.176] RDP backend: enable_window_zorder_sync = 1
[18:28:00.176] RDP backend: enable_window_snap_arrange = 0
[18:28:00.176] RDP backend: enable_window_shadow_remoting = 1
[18:28:00.176] RDP backend: enable_display_power_by_screenupdate = 0
[18:28:00.176] RDP backend: enable_distro_name_title = 1
[18:28:00.176] RDP backend: enable_copy_warning_title = 1
[18:28:00.176] Using VSOCK for incoming connections: 3
[18:28:00.186] Registered plugin API 'weston_rdp_output_api_v1' of size 16
[18:28:00.186] Head attaching: rdp-0, index:0, is_primary: 1
[18:28:00.186] Client desktop upper left coordinate (0,0)
[18:28:00.186] disp_monitor_validate_and_compute_layout:---OUTPUT---
[18:28:00.186] 	rdpMonitor[0]: x:0, y:0, width:0, height:0, is_primary:1
[18:28:00.186] 	rdpMonitor[0]: weston x:0, y:0, width:0, height:0
[18:28:00.186] 	rdpMonitor[0]: physicalWidth:0, physicalHeight:0, orientation:0
[18:28:00.186] 	rdpMonitor[0]: desktopScaleFactor:0, deviceScaleFactor:0
[18:28:00.186] 	rdpMonitor[0]: scale:1, clientScale:1.00
[18:28:00.186] Head mode change:rdp-0 NEW width:0, height:0, scale:1, clientScale:1.000000
[18:28:00.186] move head/output rdp-0 (0,0) -> (0,0)
[18:28:00.186] client origin (0,0) is (0,0) in Weston space
[18:28:00.186] Output 'rdp-0' enabled with head(s) rdp-0
[18:28:00.187] 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
[18:28:00.187] Loading module '/usr/lib/weston/rdprail-shell.so'
[18:28:00.197] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_DEBUG_LEVEL: 3.
Date: 2023-03-02 JST
[18:28:00.197] RDPRAIL-shell: allow-zap:0
[18:28:00.197] RDPRAIL-shell: allow-alt-f4-to-close-app:1
[18:28:00.197] RDPRAIL-shell: binding-modifier:none
[18:28:00.197] RDPRAIL-shell: local-move:0
[18:28:00.197] RDPRAIL-shell: distro name:Ubuntu-20.04 (len:12)
[18:28:00.201] RDPRAIL-shell: WSL2_DEFAULT_APP_ICON:/usr/share/icons/wsl/linux.png (loaded:yes)
[18:28:00.202] RDPRAIL-shell: WSL2_DEFAULT_APP_OVERLAY_ICON:/usr/share/icons/wsl/linux.png (loaded:yes)
[18:28:00.202] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_APPEND_DISTRONAME_STARTMEN:1
[18:28:00.202] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_BLEND_OVERLAY_ICON_APPLIST:1
[18:28:00.202] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_BLEND_OVERLAY_ICON_TASKBAR:1
[18:28:00.202] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_USE_WSLPATH:0
[18:28:00.202] rdp_rail_shell_initialize_notify: shell: distro name: Ubuntu-20.04
[18:28:00.206] Loading module '/usr/lib/libweston-9/xwayland.so'
[18:28:00.209] app_list_monitor_thread: running in system-distro with user-distro: Ubuntu-20.04
[18:28:00.212] app_list_monitor_thread: open(/proc/self/ns/mnt)
[18:28:00.212] app_list_monitor_thread: open(/proc/2/ns/mnt)
[18:28:00.212] app_list_monitor_thread: inotify_add_watch(/usr/share/applications)
[18:28:00.212] app_list_monitor_thread: monitor /usr/share/applications
[18:28:00.214] app_list_monitor_thread: /usr/local/share/applications doesn't exist, skipping.
[18:28:00.243] app_list_monitor_thread: inotify_add_watch(/var/lib/snapd/desktop/applications)
[18:28:00.243] app_list_monitor_thread: monitor /var/lib/snapd/desktop/applications
[18:28:00.243] app list folder[0]: /usr/share/applications
[18:28:00.244] desktop file: /usr/share/applications/snap-handle-link.desktop has NoDisplay specified
[18:28:00.244] app list entry failed to update: Key:snap-handle-link
[18:28:00.244] free_app_entry(): (null): /usr/share/applications/snap-handle-link.desktop
[18:28:00.245] desktop file: /usr/share/applications/nautilus-autorun-software.desktop has NoDisplay specified
[18:28:00.245] app list entry failed to update: Key:nautilus-autorun-software
[18:28:00.245] free_app_entry(): (null): /usr/share/applications/nautilus-autorun-software.desktop
[18:28:00.315] Registered plugin API 'weston_xwayland_v1' of size 32
[18:28:00.315] Registered plugin API 'weston_xwayland_surface_v1' of size 48
[18:28:00.316] unlinking stale lock file /tmp/.X0-lock
[18:28:00.317] Not using abstract fd for Xwayland
[18:28:00.317] xserver listening on display :0
[18:28:00.317] Loading module '/usr/lib/weston/wslgd-notify.so'
[18:28:00.318] wet_module_init: connect(/mnt/wslg/weston-notify.sock) failed No such file or directory
[18:28:00.323] find_icon_file: icon (preferences-desktop-font) search retry:(1) global:(1)
[18:28:00.323] desktop file: /usr/share/applications/org.gnome.FontManager.desktop
[18:28:00.323]     Name[en_US]:Font Manager (Ubuntu-20.04)
[18:28:00.323]     Exec:font-manager 
[18:28:00.323]     TryExec:(null)
[18:28:00.323]     WorkingDir:(null)
[18:28:00.323]     Icon name:preferences-desktop-font
[18:28:00.323]     Icon file:(null)
[18:28:00.323]     Icon image:(nil)
[18:28:00.323] app list entry updated: Key:FontManager, Name:Font Manager (Ubuntu-20.04)
[18:28:00.324] desktop file: /usr/share/applications/org.gnome.Nautilus.desktop
[18:28:00.324]     Name[en_US]:Files (Ubuntu-20.04)
[18:28:00.324]     Exec:nautilus --new-window 
[18:28:00.324]     TryExec:(null)
[18:28:00.325]     WorkingDir:(null)
[18:28:00.325]     Icon name:org.gnome.Nautilus
[18:28:00.325]     Icon file:/usr/share/icons/hicolor/scalable/apps/org.gnome.Nautilus.svg
[18:28:00.325]     Icon image:(nil)
[18:28:00.325] app list entry updated: Key:Nautilus, Name:Files (Ubuntu-20.04)
[18:28:00.331] desktop file: /usr/share/applications/byobu.desktop is terminal based app
[18:28:00.331] app list entry failed to update: Key:byobu
[18:28:00.331] free_app_entry(): (null): /usr/share/applications/byobu.desktop
[18:28:00.332] desktop file: /usr/share/applications/qemu.desktop has NoDisplay specified
[18:28:00.332] app list entry failed to update: Key:qemu
[18:28:00.332] free_app_entry(): (null): /usr/share/applications/qemu.desktop
[18:28:00.333] desktop file: /usr/share/applications/gcr-viewer.desktop has NoDisplay specified
[18:28:00.333] app list entry failed to update: Key:gcr-viewer
[18:28:00.333] free_app_entry(): (null): /usr/share/applications/gcr-viewer.desktop
[18:28:00.333] desktop file: /usr/share/applications/vim.desktop is terminal based app
[18:28:00.333] app list entry failed to update: Key:vim
[18:28:00.333] free_app_entry(): (null): /usr/share/applications/vim.desktop
[18:28:00.336] desktop file: /usr/share/applications/ca.desrt.dconf-editor.desktop
[18:28:00.336]     Name[en_US]:dconf Editor (Ubuntu-20.04)
[18:28:00.336]     Exec:dconf-editor
[18:28:00.336]     TryExec:(null)
[18:28:00.336]     WorkingDir:(null)
[18:28:00.336]     Icon name:ca.desrt.dconf-editor
[18:28:00.336]     Icon file:/usr/share/icons/hicolor/48x48/apps/ca.desrt.dconf-editor.png
[18:28:00.336]     Icon image:0x7f601800cf10
[18:28:00.336] app list entry updated: Key:dconf-editor, Name:dconf Editor (Ubuntu-20.04)
[18:28:00.336] desktop file: /usr/share/applications/gcr-prompter.desktop has NoDisplay specified
[18:28:00.336] app list entry failed to update: Key:gcr-prompter
[18:28:00.336] free_app_entry(): (null): /usr/share/applications/gcr-prompter.desktop
[18:28:00.343] desktop file: /usr/share/applications/firefox.desktop
[18:28:00.343]     Name[en_US]:Firefox Web Browser (Ubuntu-20.04)
[18:28:00.343]     Exec:firefox 
[18:28:00.343]     TryExec:(null)
[18:28:00.343]     WorkingDir:(null)
[18:28:00.343]     Icon name:firefox
[18:28:00.343]     Icon file:/usr/share/icons/hicolor/128x128/apps/firefox.png
[18:28:00.343]     Icon image:0x7f601800cdf0
[18:28:00.343] app list entry updated: Key:firefox, Name:Firefox Web Browser (Ubuntu-20.04)
[18:28:00.346] desktop file: /usr/share/applications/io.snapcraft.SessionAgent.desktop has NoDisplay specified
[18:28:00.346] app list entry failed to update: Key:SessionAgent
[18:28:00.346] free_app_entry(): (null): /usr/share/applications/io.snapcraft.SessionAgent.desktop
[18:28:00.347] desktop file: /usr/share/applications/htop.desktop is terminal based app
[18:28:00.347] app list entry failed to update: Key:htop
[18:28:00.347] free_app_entry(): (null): /usr/share/applications/htop.desktop
[18:28:00.350] find_icon_file: icon (preferences-desktop-font) search retry:(1) global:(2)
[18:28:00.350] desktop file: /usr/share/applications/org.gnome.FontViewer.desktop
[18:28:00.350]     Name[en_US]:Font Viewer (Ubuntu-20.04)
[18:28:00.350]     Exec:/usr/libexec/font-manager/font-viewer 
[18:28:00.350]     TryExec:(null)
[18:28:00.350]     WorkingDir:(null)
[18:28:00.350]     Icon name:preferences-desktop-font
[18:28:00.350]     Icon file:(null)
[18:28:00.350]     Icon image:(nil)
[18:28:00.350] app list entry updated: Key:FontViewer, Name:Font Viewer (Ubuntu-20.04)
[18:28:00.351] desktop file: /usr/share/applications/info.desktop is terminal based app
[18:28:00.351] app list entry failed to update: Key:info
[18:28:00.351] free_app_entry(): (null): /usr/share/applications/info.desktop
[18:28:00.355] desktop file: /usr/share/applications/python3.8.desktop has NoDisplay specified
[18:28:00.366] app list entry failed to update: Key:8
[18:28:00.366] free_app_entry(): (null): /usr/share/applications/python3.8.desktop
[18:28:00.366] app list folder[1]: /usr/local/share/applications
[18:28:00.366] app list folder[2]: /var/lib/snapd/desktop/applications
[18:28:02.377] Client: ClientStatus:0x3f5
[18:28:02.377]      - TS_RAIL_CLIENTSTATUS_ALLOWLOCALMOVESIZE
[18:28:02.377]      - TS_RAIL_CLIENTSTATUS_ZORDER_SYNC
[18:28:02.377]      - TS_RAIL_CLIENTSTATUS_WINDOW_RESIZE_MARGIN_SUPPORTED
[18:28:02.377]      - TS_RAIL_CLIENTSTATUS_HIGH_DPI_ICONS_SUPPORTED
[18:28:02.377]      - TS_RAIL_CLIENTSTATUS_APPBAR_REMOTING_SUPPORTED
[18:28:02.377]      - TS_RAIL_CLIENTSTATUS_POWER_DISPLAY_REQUEST_SUPPORTED
[18:28:02.377]      - TS_RAIL_CLIENTSTATUS_GET_APPID_RESPONSE_EX_SUPPORTED
[18:28:02.377]      - TS_RAIL_CLIENTSTATUS_BIDIRECTIONAL_CLOAK_SUPPORTED
[18:28:02.377] Client HandShake buildNumber:22621
[18:28:02.387] retry_find_icon_file: icon (preferences-desktop-font) retry count (1)
[18:28:02.387] find_icon_file: icon (preferences-desktop-font) search retry:(2) global:(2)
[18:28:02.387] retry_find_icon_file: icon (preferences-desktop-font) retry count (1)
[18:28:02.387] find_icon_file: icon (preferences-desktop-font) search retry:(2) global:(2)
[18:28:02.410] Server AppList caps version:3
[18:28:02.438] Client: gfxredir_caps: length:28
[18:28:02.438] Client: gfxredir_caps[0]: signature:0x53504143
[18:28:02.438] Client: gfxredir_caps[0]: version:0x1
[18:28:02.438] Client: gfxredir_caps[0]: length:12
[18:28:02.438] Client: gfxredir_caps[1]: signature:0x53504143
[18:28:02.438] Client: gfxredir_caps[1]: version:0x2000
[18:28:02.438] Client: gfxredir_caps[1]: length:16
[18:28:02.438] Client: gfxredir_caps[1]: supportedFeatures:0x0
[18:28:02.438] Client: gfxredir selected caps: version:0x2000
[18:28:02.493] Client: GrfxCaps count:0xa
[18:28:02.493] Client: GrfxCaps[0] version:0x80004 length:4 flags:0x0
[18:28:02.493] 	Version : RDPGFX_CAPVERSION_8
[18:28:02.493] Client: GrfxCaps[1] version:0x80105 length:4 flags:0x0
[18:28:02.493] 	Version : RDPGFX_CAPVERSION_81
[18:28:02.493] Client: GrfxCaps[2] version:0xa0002 length:4 flags:0x0
[18:28:02.493] 	Version : RDPGFX_CAPVERSION_10
[18:28:02.493] Client: GrfxCaps[3] version:0xa0200 length:4 flags:0x0
[18:28:02.493] 	Version : RDPGFX_CAPVERSION_102
[18:28:02.493] Client: GrfxCaps[4] version:0xa0301 length:4 flags:0x0
[18:28:02.493] 	Version : RDPGFX_CAPVERSION_103
[18:28:02.493] Client: GrfxCaps[5] version:0xa0400 length:4 flags:0x0
[18:28:02.493] 	Version : RDPGFX_CAPVERSION_104
[18:28:02.493] Client: GrfxCaps[6] version:0xa0502 length:4 flags:0x0
[18:28:02.493] 	Version : RDPGFX_CAPVERSION_105
[18:28:02.493] Client: GrfxCaps[7] version:0xa0600 length:4 flags:0x0
[18:28:02.493] 	Version : RDPGFX_CAPVERSION_106
[18:28:02.493] Client: GrfxCaps[8] version:0xa0701 length:4 flags:0x0
[18:28:02.493] 	Version : UNKNOWN(657153)
[18:28:02.493] Client: GrfxCaps[9] version:0xb0101 length:4 flags:0x0
[18:28:02.493] 	Version : UNKNOWN(721153)
[18:28:02.514] xf_peer_adjust_monitor_layout:
[18:28:02.514]   DesktopWidth:3840, DesktopHeight:2160
[18:28:02.514]   UseMultimon:0
[18:28:02.514]   ForceMultimon:0
[18:28:02.514]   MonitorCount:0
[18:28:02.514]   HasMonitorAttributes:0
[18:28:02.514]   HiDefRemoteApp:1
[18:28:02.514] disp_monitor_sanity_check_layout:---INPUT---
[18:28:02.514] 	rdpMonitor[0]: x:0, y:0, width:3840, height:2160, is_primary:1
[18:28:02.514] 	rdpMonitor[0]: physicalWidth:597, physicalHeight:336, orientation:0
[18:28:02.514] 	rdpMonitor[0]: desktopScaleFactor:150, deviceScaleFactor:140
[18:28:02.514] 	rdpMonitor[0]: scale:1, client scale :1.00
[18:28:02.514] kbd_layout:0xe0010411 kbd_type:0x7 kbd_subType:0x2 kbd_functionKeys:0xc
[18:28:02.514] convert_rdp_keyboard_to_xkb_rule_names: matching model=pc105 layout=jp variant=(null) options=(null)
[18:28:02.652] Client desktop upper left coordinate (0,0)
[18:28:02.652] disp_monitor_validate_and_compute_layout:---OUTPUT---
[18:28:02.652] 	rdpMonitor[0]: x:0, y:0, width:3840, height:2160, is_primary:1
[18:28:02.652] 	rdpMonitor[0]: weston x:0, y:0, width:3840, height:2160
[18:28:02.652] 	rdpMonitor[0]: physicalWidth:597, physicalHeight:336, orientation:0
[18:28:02.652] 	rdpMonitor[0]: desktopScaleFactor:0, deviceScaleFactor:140
[18:28:02.652] 	rdpMonitor[0]: scale:1, clientScale:1.00
[18:28:02.652] Head mode change:rdp-0 NEW width:3840, height:2160, scale:1, clientScale:1.000000
[18:28:02.652] move head/output rdp-0 (0,0) -> (0,0)
[18:28:02.652] client origin (0,0) is (0,0) in Weston space
[18:28:02.653] Client ExecOrder:0x00000008, Program:dummy-entry, WorkingDir:(null), RemoteApplicationArguments:(null)
[18:28:02.653] Client ExecOrder launching dummy-entry
[18:28:02.653] launching 'dummy-entry'
[18:28:02.660] Spawned Xwayland server, pid 16028
[18:28:02.660] Client: ClientSysparam: filterKeys
[18:28:02.660] Client: ClientSysparam: toggleKeys:62
[18:28:02.660] Client: ClientSysparam: stickyKeys:506
[18:28:02.660] Client: ClientSysparam: caretWidth:1
[18:28:02.660] Client: ClientSysparam: highContrast
[18:28:02.660] Client: ClientSysparam: taskbarPos:(left:0, top:2088, right:3840, bottom:2160)
[18:28:02.660] Client: ClientSysparam: mouseButtonSwap:0
[18:28:02.660] Client: ClientSysparam: keyboardPref:0
[18:28:02.660] Client: ClientSysparam: dragFullWindows:1
[18:28:02.660] Client: ClientSysparam: keyboardCues:0
[18:28:02.660] Client: ClientSysparam: workArea:(left:0, top:0, right:3840, bottom:2088)
[18:28:02.661] Translated workarea:(0,0)-(3840,2088) at rdp-0:(0,0)-(3840,2160)
[18:28:02.661] Client AppList caps version:3
[18:28:02.661] Client AppList client language id: en_US
[18:28:02.661] Client: ClientSysparam: filterKeys
[18:28:02.661] Client: ClientSysparam: toggleKeys:62
[18:28:02.661] Client: ClientSysparam: stickyKeys:506
[18:28:02.661] Client: ClientSysparam: caretWidth:1
[18:28:02.661] Client: ClientSysparam: highContrast
[18:28:02.661] Client: ClientSysparam: taskbarPos:(left:0, top:2088, right:3840, bottom:2160)
[18:28:02.661] Client: ClientSysparam: mouseButtonSwap:0
[18:28:02.661] Client: ClientSysparam: keyboardPref:0
[18:28:02.661] Client: ClientSysparam: dragFullWindows:1
[18:28:02.661] Client: ClientSysparam: keyboardCues:0
[18:28:02.661] Client: ClientSysparam: workArea:(left:0, top:0, right:3840, bottom:2088)
[18:28:02.661] Translated workarea:(0,0)-(3840,2088) at rdp-0:(0,0)-(3840,2160)
[18:28:02.675] compositor: executing 'dummy-entry' failed: No such file or directory
[18:28:02.677] app_list_monitor_thread: startRdpNotifyEvent is signalled. 0 - en_US
[18:28:02.677] rdp_rail_notify_app_list(): rdp_peer 0x558af5799b10
[18:28:02.677]     inSync: 1
[18:28:02.677]     syncStart: 1
[18:28:02.677]     syncEnd: 0
[18:28:02.677]     newAppId: 1
[18:28:02.677]     deleteAppId: 0
[18:28:02.677]     deleteAppProvider: 0
[18:28:02.677]     appId: dconf-editor
[18:28:02.677]     appGroup: (null)
[18:28:02.677]     appExecPath: dconf-editor
[18:28:02.677]     appWorkingDir: (null)
[18:28:02.677]     appDesc: dconf Editor (Ubuntu-20.04)
[18:28:02.677]     appIcon: 0x7f601800cf10
[18:28:02.677]     appProvider: (null)
[18:28:02.678] rdp_rail_notify_app_list(): rdp_peer 0x558af5799b10
[18:28:02.678]     inSync: 1
[18:28:02.678]     syncStart: 0
[18:28:02.678]     syncEnd: 0
[18:28:02.678]     newAppId: 1
[18:28:02.678]     deleteAppId: 0
[18:28:02.678]     deleteAppProvider: 0
[18:28:02.678]     appId: FontViewer
[18:28:02.678]     appGroup: (null)
[18:28:02.678]     appExecPath: /usr/libexec/font-manager/font-viewer 
[18:28:02.678]     appWorkingDir: (null)
[18:28:02.678]     appDesc: Font Viewer (Ubuntu-20.04)
[18:28:02.678]     appIcon: 0x558af57b5f10
[18:28:02.678]     appProvider: (null)
[18:28:02.679] rdp_rail_notify_app_list(): rdp_peer 0x558af5799b10
[18:28:02.679]     inSync: 1
[18:28:02.679]     syncStart: 0
[18:28:02.679]     syncEnd: 0
[18:28:02.679]     newAppId: 1
[18:28:02.679]     deleteAppId: 0
[18:28:02.679]     deleteAppProvider: 0
[18:28:02.679]     appId: FontManager
[18:28:02.679]     appGroup: (null)
[18:28:02.679]     appExecPath: font-manager 
[18:28:02.679]     appWorkingDir: (null)
[18:28:02.679]     appDesc: Font Manager (Ubuntu-20.04)
[18:28:02.679]     appIcon: 0x558af57b5f10
[18:28:02.679]     appProvider: (null)
[18:28:02.680] rdp_rail_notify_app_list(): rdp_peer 0x558af5799b10
[18:28:02.680]     inSync: 1
[18:28:02.680]     syncStart: 0
[18:28:02.680]     syncEnd: 0
[18:28:02.680]     newAppId: 1
[18:28:02.680]     deleteAppId: 0
[18:28:02.680]     deleteAppProvider: 0
[18:28:02.680]     appId: firefox
[18:28:02.680]     appGroup: (null)
[18:28:02.680]     appExecPath: firefox 
[18:28:02.680]     appWorkingDir: (null)
[18:28:02.680]     appDesc: Firefox Web Browser (Ubuntu-20.04)
[18:28:02.680]     appIcon: 0x7f601800cdf0
[18:28:02.680]     appProvider: (null)
[18:28:02.681] rdp_rail_notify_app_list(): rdp_peer 0x558af5799b10
[18:28:02.681]     inSync: 1
[18:28:02.681]     syncStart: 0
[18:28:02.681]     syncEnd: 1
[18:28:02.681]     newAppId: 1
[18:28:02.681]     deleteAppId: 0
[18:28:02.681]     deleteAppProvider: 0
[18:28:02.681]     appId: Nautilus
[18:28:02.681]     appGroup: (null)
[18:28:02.681]     appExecPath: nautilus --new-window 
[18:28:02.681]     appWorkingDir: (null)
[18:28:02.681]     appDesc: Files (Ubuntu-20.04)
[18:28:02.681]     appIcon: 0x558af57b5f10
[18:28:02.681]     appProvider: (null)
[18:28:02.761] Client ExecOrder program terminated
[18:28:02.761] dummy-entry exited with status 255
[18:28:02.762] Pulse Audio Sink listener socket on /mnt/wslg/PulseAudioRDPSink
[18:28:04.683] retry_find_icon_file: icon (preferences-desktop-font) retry count (2)
[18:28:04.683] find_icon_file: icon (preferences-desktop-font) search retry:(3) global:(2)
[18:28:04.683] retry_find_icon_file: icon (preferences-desktop-font) retry count (2)
[18:28:04.683] find_icon_file: icon (preferences-desktop-font) search retry:(3) global:(2)
[18:28:04.812] xfixes version: 5.0
[18:28:04.826] created wm, root 940
[18:28:04.826] xfixes selection notify event: owner 2097153
[18:28:04.826] our window, skipping
[18:28:04.837] RDP Sink version (1 - 1)
[18:28:06.684] retry_find_icon_file: icon (preferences-desktop-font) retry count (3)
[18:28:06.684] find_icon_file: icon (preferences-desktop-font) search retry:(4) global:(2)
[18:28:06.684] retry_find_icon_file: icon (preferences-desktop-font) retry count (3)
[18:28:06.685] find_icon_file: icon (preferences-desktop-font) search retry:(4) global:(2)
[18:28:08.687] retry_find_icon_file: icon (preferences-desktop-font) retry count (4)
[18:28:08.687] find_icon_file: icon (preferences-desktop-font) search retry:(5) global:(1)
[18:28:08.687] retry_find_icon_file: icon (preferences-desktop-font) retry count (4)
[18:28:08.687] find_icon_file: icon (preferences-desktop-font) search retry:(5) global:(0)
[18:38:03.371] rdp_rail_wake_handler is called on peer_ctx:0x558af5799b10
[18:38:03.378] launching '/usr/libexec/weston-rdprail-shell'
Date: 2023-03-02 JST
[18:38:03.558] weston 9.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: 9.0.0-185-g3ff4250b
[18:38:03.558] 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
[18:38:03.558] OS: Linux, 5.15.90.1-microsoft-standard-WSL2, #1 SMP Fri Jan 27 02:56:13 UTC 2023, x86_64
[18:38:03.558] Using config file '/home/wslg/.config/weston.ini'
[18:38:03.559] Output repaint window is 7 ms maximum.
[18:38:03.559] Loading module '/usr/lib/libweston-9/rdp-backend.so'
[18:38:03.562] using FreeRDP version 2.4.0
Date: 2023-03-02 JST
[18:38:03.562] RDP backend: WESTON_RDP_DEBUG_LEVEL: 3
[18:38:03.562] RDP backend: rdp_monitor_refresh_rate: 60000
[18:38:03.562] RDP backend: timer resolution tv_sec:0 tv_nsec:1
[18:38:03.562] RDP backend: Environment dump - start
[18:38:03.562]   WSL2_DEFAULT_APP_ICON=/usr/share/icons/wsl/linux.png
[18:38:03.562]   SHELL=/bin/bash
[18:38:03.562]   WSL2_GUI_APPS_ENABLED=1
[18:38:03.562]   WSL_DISTRO_NAME=
[18:38:03.562]   WSL2_VM_ID=DC158C07-DE7A-4BC4-8A8A-22457ECACD9A
[18:38:03.562]   XCURSOR_PATH=/mnt/wslg/distro/usr/share/icons:/usr/share/icons
[18:38:03.562]   XCURSOR_SIZE=16
[18:38:03.562]   WLOG_APPENDER=file
[18:38:03.562]   NAME=DELL
[18:38:03.562]   PWD=/home/wslg
[18:38:03.562]   LOGNAME=wslg
[18:38:03.562]   WSL_FEATURE_FLAGS=8d
[18:38:03.562]   WSL2_USER_PROFILE=C:\Users\mail
[18:38:03.562]   WSL2_DISTRO_NAME=Ubuntu-20.04
[18:38:03.562]   _=/usr/bin/weston
[18:38:03.562]   PULSE_AUDIO_RDP_SINK=/mnt/wslg/PulseAudioRDPSink
[18:38:03.562]   HOME=/home/wslg
[18:38:03.562]   WAYLAND_DISPLAY=wayland-0
[18:38:03.562]   USE_VSOCK=3
[18:38:03.562]   WSL2_EXECUTION_ALIAS_PATH=C:\Users\mail\AppData\Local\Microsoft\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_8wekyb3d8bbwe
[18:38:03.562]   WSL2_DEFAULT_APP_OVERLAY_ICON=/usr/share/icons/wsl/linux.png
[18:38:03.562]   USER=wslg
[18:38:03.562]   DISPLAY=:0
[18:38:03.562]   SHLVL=0
[18:38:03.562]   WSLGD_NOTIFY_SOCKET=/mnt/wslg/weston-notify.sock
[18:38:03.562]   WLOG_FILEAPPENDER_OUTPUT_FILE_PATH=/mnt/wslg
[18:38:03.562]   XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir
[18:38:03.562]   WSL2_SHARED_MEMORY_OB_DIRECTORY=WSL\DC158C07-DE7A-4BC4-8A8A-22457ECACD9A\wslg
[18:38:03.562]   XCURSOR_THEME=whiteglass
[18:38:03.562]   PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
[18:38:03.562]   WESTON_DISABLE_ABSTRACT_FD=1
[18:38:03.562]   WLOG_FILEAPPENDER_OUTPUT_FILE_NAME=wlog.log
[18:38:03.562]   PULSE_AUDIO_RDP_SOURCE=/mnt/wslg/PulseAudioRDPSource
[18:38:03.562]   PULSE_SERVER=unix:/mnt/wslg/PulseServer
[18:38:03.562]   WSL2_INSTALL_PATH=C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.1.3.0_x64__8wekyb3d8bbwe
[18:38:03.562]   WSL2_SHARED_MEMORY_MOUNT_POINT=/mnt/shared_memory
[18:38:03.563]   WESTON_CONFIG_FILE=/home/wslg/.config/weston.ini
[18:38:03.563] RDP backend: Environment dump - end
[18:38:03.563] RDP backend: FreeRDP version: 2.4.0
[18:38:03.563] Using external fd for incoming connections: 3
[18:38:03.563] Default head is being added
[18:38:03.563] Registered plugin API 'weston_rdprail_api_v1' of size 64
[18:38:03.563] RDPAPPLIST_MODULEDIR is set to /usr/lib/rdpapplist
[18:38:03.563] RDP backend: use_rdpapplist = 1
[18:38:03.589] RDP backend: use_gfxredir = 1
[18:38:03.589] RDP backend: enable_hi_dpi_support = 1
[18:38:03.589] RDP backend: enable_fractional_hi_dpi_support = 0
[18:38:03.589] RDP backend: enable_fractional_hi_dpi_roundup = 0
[18:38:03.589] RDP backend: debug_desktop_scaling_factor = 0
[18:38:03.589] RDP backend: enable_window_zorder_sync = 1
[18:38:03.589] RDP backend: enable_window_snap_arrange = 0
[18:38:03.589] RDP backend: enable_window_shadow_remoting = 1
[18:38:03.589] RDP backend: enable_display_power_by_screenupdate = 0
[18:38:03.589] RDP backend: enable_distro_name_title = 1
[18:38:03.589] RDP backend: enable_copy_warning_title = 1
[18:38:03.589] Using VSOCK for incoming connections: 3
[18:38:03.589] Registered plugin API 'weston_rdp_output_api_v1' of size 16
[18:38:03.589] Head attaching: rdp-0, index:0, is_primary: 1
[18:38:03.589] Client desktop upper left coordinate (0,0)
[18:38:03.589] disp_monitor_validate_and_compute_layout:---OUTPUT---
[18:38:03.589] 	rdpMonitor[0]: x:0, y:0, width:0, height:0, is_primary:1
[18:38:03.589] 	rdpMonitor[0]: weston x:0, y:0, width:0, height:0
[18:38:03.589] 	rdpMonitor[0]: physicalWidth:0, physicalHeight:0, orientation:0
[18:38:03.589] 	rdpMonitor[0]: desktopScaleFactor:0, deviceScaleFactor:0
[18:38:03.589] 	rdpMonitor[0]: scale:1, clientScale:1.00
[18:38:03.589] Head mode change:rdp-0 NEW width:0, height:0, scale:1, clientScale:1.000000
[18:38:03.589] move head/output rdp-0 (0,0) -> (0,0)
[18:38:03.589] client origin (0,0) is (0,0) in Weston space
[18:38:03.589] Output 'rdp-0' enabled with head(s) rdp-0
[18:38:03.589] 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
[18:38:03.590] Loading module '/usr/lib/weston/rdprail-shell.so'
[18:38:03.591] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_DEBUG_LEVEL: 3.
Date: 2023-03-02 JST
[18:38:03.591] RDPRAIL-shell: allow-zap:0
[18:38:03.591] RDPRAIL-shell: allow-alt-f4-to-close-app:1
[18:38:03.591] RDPRAIL-shell: binding-modifier:none
[18:38:03.591] RDPRAIL-shell: local-move:0
[18:38:03.591] RDPRAIL-shell: distro name:Ubuntu-20.04 (len:12)
[18:38:03.592] RDPRAIL-shell: WSL2_DEFAULT_APP_ICON:/usr/share/icons/wsl/linux.png (loaded:yes)
[18:38:03.593] RDPRAIL-shell: WSL2_DEFAULT_APP_OVERLAY_ICON:/usr/share/icons/wsl/linux.png (loaded:yes)
[18:38:03.593] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_APPEND_DISTRONAME_STARTMEN:1
[18:38:03.593] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_BLEND_OVERLAY_ICON_APPLIST:1
[18:38:03.593] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_BLEND_OVERLAY_ICON_TASKBAR:1
[18:38:03.593] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_USE_WSLPATH:0
[18:38:03.593] rdp_rail_shell_initialize_notify: shell: distro name: Ubuntu-20.04
[18:38:03.595] app_list_monitor_thread: running in system-distro with user-distro: Ubuntu-20.04
[18:38:03.595] Loading module '/usr/lib/libweston-9/xwayland.so'
[18:38:03.595] app_list_monitor_thread: open(/proc/self/ns/mnt)
[18:38:03.595] app_list_monitor_thread: open(/proc/2/ns/mnt)
[18:38:03.595] app_list_monitor_thread: inotify_add_watch(/usr/share/applications)
[18:38:03.595] app_list_monitor_thread: monitor /usr/share/applications
[18:38:03.596] app_list_monitor_thread: /usr/local/share/applications doesn't exist, skipping.
[18:38:03.596] app_list_monitor_thread: inotify_add_watch(/var/lib/snapd/desktop/applications)
[18:38:03.596] app_list_monitor_thread: monitor /var/lib/snapd/desktop/applications
[18:38:03.596] app list folder[0]: /usr/share/applications
[18:38:03.596] desktop file: /usr/share/applications/snap-handle-link.desktop has NoDisplay specified
[18:38:03.596] app list entry failed to update: Key:snap-handle-link
[18:38:03.596] free_app_entry(): (null): /usr/share/applications/snap-handle-link.desktop
[18:38:03.596] desktop file: /usr/share/applications/nautilus-autorun-software.desktop has NoDisplay specified
[18:38:03.596] app list entry failed to update: Key:nautilus-autorun-software
[18:38:03.596] free_app_entry(): (null): /usr/share/applications/nautilus-autorun-software.desktop
[18:38:03.597] find_icon_file: icon (preferences-desktop-font) search retry:(1) global:(1)
[18:38:03.597] desktop file: /usr/share/applications/org.gnome.FontManager.desktop
[18:38:03.597]     Name[en_US]:Font Manager (Ubuntu-20.04)
[18:38:03.597]     Exec:font-manager 
[18:38:03.597]     TryExec:(null)
[18:38:03.597]     WorkingDir:(null)
[18:38:03.597]     Icon name:preferences-desktop-font
[18:38:03.597]     Icon file:(null)
[18:38:03.597]     Icon image:(nil)
[18:38:03.597] app list entry updated: Key:FontManager, Name:Font Manager (Ubuntu-20.04)
[18:38:03.597] desktop file: /usr/share/applications/org.gnome.Nautilus.desktop
[18:38:03.597]     Name[en_US]:Files (Ubuntu-20.04)
[18:38:03.597]     Exec:nautilus --new-window 
[18:38:03.597]     TryExec:(null)
[18:38:03.597]     WorkingDir:(null)
[18:38:03.597]     Icon name:org.gnome.Nautilus
[18:38:03.597]     Icon file:/usr/share/icons/hicolor/scalable/apps/org.gnome.Nautilus.svg
[18:38:03.597]     Icon image:(nil)
[18:38:03.597] app list entry updated: Key:Nautilus, Name:Files (Ubuntu-20.04)
[18:38:03.597] desktop file: /usr/share/applications/byobu.desktop is terminal based app
[18:38:03.597] app list entry failed to update: Key:byobu
[18:38:03.597] free_app_entry(): (null): /usr/share/applications/byobu.desktop
[18:38:03.597] desktop file: /usr/share/applications/qemu.desktop has NoDisplay specified
[18:38:03.597] app list entry failed to update: Key:qemu
[18:38:03.597] free_app_entry(): (null): /usr/share/applications/qemu.desktop
[18:38:03.597] desktop file: /usr/share/applications/gcr-viewer.desktop has NoDisplay specified
[18:38:03.597] app list entry failed to update: Key:gcr-viewer
[18:38:03.597] free_app_entry(): (null): /usr/share/applications/gcr-viewer.desktop
[18:38:03.597] desktop file: /usr/share/applications/vim.desktop is terminal based app
[18:38:03.597] app list entry failed to update: Key:vim
[18:38:03.597] free_app_entry(): (null): /usr/share/applications/vim.desktop
[18:38:03.597] desktop file: /usr/share/applications/ca.desrt.dconf-editor.desktop
[18:38:03.597]     Name[en_US]:dconf Editor (Ubuntu-20.04)
[18:38:03.597]     Exec:dconf-editor
[18:38:03.597]     TryExec:(null)
[18:38:03.597]     WorkingDir:(null)
[18:38:03.597]     Icon name:ca.desrt.dconf-editor
[18:38:03.597]     Icon file:/usr/share/icons/hicolor/48x48/apps/ca.desrt.dconf-editor.png
[18:38:03.597]     Icon image:0x7f855c00cf10
[18:38:03.597] app list entry updated: Key:dconf-editor, Name:dconf Editor (Ubuntu-20.04)
[18:38:03.597] desktop file: /usr/share/applications/gcr-prompter.desktop has NoDisplay specified
[18:38:03.597] app list entry failed to update: Key:gcr-prompter
[18:38:03.598] free_app_entry(): (null): /usr/share/applications/gcr-prompter.desktop
[18:38:03.599] desktop file: /usr/share/applications/firefox.desktop

I tried to run a program after the crash, but nothing displayed on the screen while there is an activity in the weston log.

Feedback ID with the core.weston dump: feedbackid=2f6d616d-7dac-4e1e-842c-520700ce0bfa

After shutting wsl down and restarting, GUI started working again.

@hideyukn88
Copy link
Member

@speller, is this your feedback? https://aka.ms/AAjtxhz, thanks!

@hideyukn88
Copy link
Member

Note to self:

  • from above weston.log

[18:27:50.818]

RDP clipboard_data_source_send new (0x7f56cc000e50:published:fd 110) vs prev (0x7f56cc000d40:cancel pending:fd 109): outstanding RDP data request (client to server)

  • from provided core.weston.

Program terminated with signal SIGSEGV, Segmentation fault.
0x00007f56f4b47cbe in wl_event_source_remove (source=0x0) at ../src/event-loop.c:835
835 if (source->fd >= 0) {
[Current thread is 1 (Thread 0x7f56f170ea40 (LWP 9))]
(gdb) bt
0x00007f56f4b47cbe in wl_event_source_remove (source=0x0) at ../src/event-loop.c:835
0x00007f56f11ed0bc in clipboard_data_source_fail (fd=109, mask=, arg=0x7f56cc000d40)
at ../libweston/backend-rdp/rdpclip.c:938
0x00007f56f4b4804a in wl_event_loop_dispatch (loop=0x564d5096c210, timeout=timeout@entry=-1)
at ../src/event-loop.c:1027
0x00007f56f4b45a25 in wl_display_run (display=display@entry=0x564d5096c350) at ../src/wayland-server.c:1431
0x00007f56f4dc2337 in wet_main (argc=, argv=0x7ffd612fd668) at ../compositor/main.c:3612
0x00007f56f4bdc57d in __libc_start_call_main () at /lib/libc.so.6
0x00007f56f4bdc630 in __libc_start_main_impl () at /lib/libc.so.6
0x0000564d4f69d085 in _start ()

(gdb) info local
source = 0x7f56cc000d40

(gdb) print *source
$1 = {base = {resource = 0x0, destroy_signal = {listener_list = {prev = 0x7f56cc000d48, next = 0x7f56cc000d48}},
mime_types = {size = 16, alloc = 16, data = 0x7f56cc000ca0}, offer = 0x0, seat = 0x0, accepted = false,
actions_set = false, set_selection = true, dnd_actions = 0,
current_dnd_action = WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE,
compositor_action = WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE, accept =
0x7f56f11ecb60 <clipboard_data_source_accept+64>, send = 0x7f56f11ee9a0 <clipboard_data_source_send+64>,
cancel = 0x7f56f11eef30 <clipboard_data_source_cancel+64>}, task_base = {link = {prev = 0x0, next = 0x0},
peerCtx = 0x564d50a23cc0, func = 0x7f56f11ed410 <clipboard_data_source_publish+64>},
transfer_event_source = 0x7f56cc000cf0, data_contents = {size = 0, alloc = 0, data = 0x0}, context = 0x564d50a23b10,
refcount = 1, data_source_fd = 109, format_index = 0, state = RDP_CLIPBOARD_SOURCE_FAILED,
data_response_fail_count = 1, inflight_write_count = 0, inflight_data_to_write = 0x0, inflight_data_size = 0,
is_data_processed = false, processed_data_start = 0x0, processed_data_size = 0, processed_data_is_send = false,
is_canceled = true, client_format_id_table = {13, 1, 0, 0, 0}}

Thus source->data_source_fd is already writable when below is executed, so clipboard_data_source_fail is called prior to event_source pointer is written to source->transfer_event_source, but at time of dump is captured, the write is done as above shows non-null pointer, while callstack has null pointer.

ret = rdp_event_loop_add_fd(loop, source->data_source_fd, WL_EVENT_WRITABLE,
success ? clipboard_data_source_write : clipboard_data_source_fail,
source, &source->transfer_event_source);

@speller
Copy link

speller commented Mar 3, 2023

@hideyukn88 yes, it's mine. Do you need a separate ticket for this issue here on github?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixinbound
Projects
None yet
Development

No branches or pull requests

4 participants