microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
10.14k stars 303 forks source link

Don't see any window #677

Open romanlex opened 2 years ago

romanlex commented 2 years ago

AMD

Windows build number: 10.0.22000.0
Your Distribution version: Ubuntu 20.04
WSL version: 0.51.3.0
Kernel version: 5.10.93.2
WSLg version: 1.0.30
Windows version: 10.0.22000.527
AMD driver: 22.2.2

Steps to reproduce

I'm trying to start any app with wslg but don't see window app Example

 ~  glxgears                                                                               11:47:51
1190 frames in 5.0 seconds = 237.919 FPS
1185 frames in 5.0 seconds = 236.811 FPS
1199 frames in 5.0 seconds = 239.753 FPS

And I don't see window with gears

WSL logs:

pkerschbaum commented 2 years ago

Did you try this? https://github.com/microsoft/wslg/issues/628#issuecomment-1008562288

romanlex commented 2 years ago

Did you try this? #628 (comment)

# echo $DISPLAY                                                               
# :0
pkerschbaum commented 2 years ago

This is the same output I get on WSL 2, and on my machine applications with GUI started from WSL 2 work.
So this seems to not be the issue (I thought it's worth to give it a shot).

romanlex commented 2 years ago

May be it's multi monitor system with AMD driver? I don't know how to check it :(

hideyukn88 commented 2 years ago

@romanlex, thanks for reporting the issue.

First, by looking at provided weston.log, it looks you don't have multiple monitor system, or at least, secondary monitors were not enabled with that log.

[10:58:35.843] disp_monitor_validate_and_compute_layout:---INPUT---
[10:58:35.843]  rdpMonitor[0]: x:0, y:0, width:5120, height:1440, is_primary:1
[10:58:35.843]  rdpMonitor[0]: physicalWidth:1193, physicalHeight:336, orientation:0
[10:58:35.843]  rdpMonitor[0]: desktopScaleFactor:125, deviceScaleFactor:100
[10:58:35.843]  rdpMonitor[0]: scale:1, client scale :1.00

Second, would you please go through https://github.com/microsoft/wslg/wiki/Diagnosing-%22cannot-open-display%22-type-issues-with-WSLg, and see if there is any X connection issue. You might also try any Wayland native application (like gedit, weston-terminal) to if this is X specific issue. This helps to narrow down.

At last, please also try xwininfo -root -tree from your console and see if glxgears (or any app you launched) listed? Thanks!

image

romanlex commented 2 years ago

xwininfo -root -tree image

And common info image

bobbbay commented 2 years ago

I'm having this issue too, but I'm on an Intel integrated GPU. I ran through "Diagnosing "cannot open display" type issues with WSLg" as recommended by @hideyukn88, but none of those fixes help.

[nixos@NotYourLaptop:~]$ cat /mnt/wslg/versions.txt
WSLg ( x86_64 ): 1.0.26+Branch.main.Sha.26ce2c09b86442f3c7f4f6462f770ed2afa76a25
Mariner: VERSION="1.0.20210224"
FreeRDP: b05321cd4e6a862aef76163a69db4e1910245736
weston: 46756d0e77e5c01b5995fbbee6f3ab0db9b30612
pulseaudio: 2f0f0b8c3872780f15e275fc12899f4564f01bd5
mesa:

[nixos@NotYourLaptop:~]$ echo $DISPLAY
:0

[nixos@NotYourLaptop:~]$ ls -la /tmp/.X11-unix
lrwxrwxrwx 1 root root 19 May  1 16:14 /tmp/.X11-unix -> /mnt/wslg/.X11-unix

[nixos@NotYourLaptop:~]$ ls -la /tmp/.X11-unix/
total 0
drwxrwxrwt 2 root  root   60 May  1 16:14 .
drwxrwxrwt 6 root  root  260 May  1 16:14 ..
srwxrwxrwx 1 nixos users   0 May  1 16:14 X0

[nixos@NotYourLaptop:~]$

weston.log:

Date: 2022-05-01 EDT
[12:14:12.973] weston 9.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: 9.0.0-38-g46756d0e
[12:14:12.974] Command line: /usr/bin/weston --backend=rdp-backend.so --xwayland --shell=rdprail-shell.so --logger-scopes=log,rdp-backend,rdprail-shell --log=/mnt/wslg/weston.log
[12:14:12.974] OS: Linux, 5.10.102.1-microsoft-standard-WSL2, #1 SMP Wed Mar 2 00:30:59 UTC 2022, x86_64
[12:14:12.975] Using config file '/home/wslg/.config/weston.ini'
[12:14:12.976] Output repaint window is 7 ms maximum.
[12:14:12.976] Loading module '/usr/lib/libweston-9/rdp-backend.so'
[12:14:12.992] using FreeRDP version 2.3.2
Date: 2022-05-01 EDT
[12:14:12.992] RDP backend: WESTON_RDP_DEBUG_LEVEL: 3
[12:14:12.992] RDP backend: WESTON_RDP_MONITOR_REFRESH_RATE: 60000
[12:14:12.992] RDP backend: timer resolution tv_sec:0 tv_nsec:1
[12:14:12.992] RDP backend: Environment dump - start
[12:14:12.992]   WSL_DISTRO_NAME=
[12:14:12.992]   WSL2_SHARED_MEMORY_OB_DIRECTORY=WSL\282D6240-035B-45F4-95AD-3695DD1A5E68\wslg
[12:14:12.992]   PWD=/
[12:14:12.992]   NAME=NotYourLaptop
[12:14:12.992]   WSL_FEATURE_FLAGS=7
[12:14:12.992]   SHLVL=1
[12:14:12.992]   WSL2_GUI_APPS_ENABLED=1
[12:14:12.992]   WSL2_DISTRO_NAME=NixOsTest
[12:14:12.992]   WSL2_VM_ID=282D6240-035B-45F4-95AD-3695DD1A5E68
[12:14:12.992]   _=/usr/bin/WSLGd
[12:14:12.992]   HOME=/home/wslg
[12:14:12.992]   USER=wslg
[12:14:12.992]   LOGNAME=wslg
[12:14:12.992]   SHELL=/bin/bash
[12:14:12.992]   PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
[12:14:12.992]   XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir
[12:14:12.992]   WAYLAND_DISPLAY=wayland-0
[12:14:12.992]   DISPLAY=:0
[12:14:12.992]   XCURSOR_PATH=/usr/share/icons
[12:14:12.992]   XCURSOR_THEME=whiteglass
[12:14:12.992]   XCURSOR_SIZE=16
[12:14:12.992]   PULSE_AUDIO_RDP_SINK=/mnt/wslg/PulseAudioRDPSink
[12:14:12.992]   PULSE_AUDIO_RDP_SOURCE=/mnt/wslg/PulseAudioRDPSource
[12:14:12.992]   USE_VSOCK=3
[12:14:12.992]   WSL2_DEFAULT_APP_ICON=/usr/share/icons/wsl/linux.png
[12:14:12.992]   WSL2_DEFAULT_APP_OVERLAY_ICON=/usr/share/icons/wsl/linux.png
[12:14:12.992]   WESTON_DISABLE_ABSTRACT_FD=1
[12:14:12.992]   WSL2_SHARED_MEMORY_MOUNT_POINT=/mnt/shared_memory
[12:14:12.992]   WESTON_CONFIG_FILE=/home/wslg/.config/weston.ini
[12:14:12.992] RDP backend: Environment dump - end
[12:14:12.992] Using external fd for incoming connections: 3
[12:14:12.992] Default head is being added
[12:14:12.992] Registered plugin API 'weston_rdprail_api_v1' of size 56
[12:14:12.992] RDPAPPLIST_MODULEDIR is set to /usr/lib/rdpapplist
[12:14:12.994] RDP backend: use_rdpapplist = 1
[12:14:13.005] RDP backend: use_gfxredir = 1
[12:14:13.005] RDP backend: enable_hi_dpi_support = 1
[12:14:13.005] RDP backend: enable_fractional_hi_dpi_support = 0
[12:14:13.005] RDP backend: debug_desktop_scaling_factor = 0
[12:14:13.005] RDP backend: enable_window_zorder_sync = 1
[12:14:13.005] RDP backend: enable_distro_name_title = 1
[12:14:13.005] RDP backend: enable_copy_warning_title = 0
[12:14:13.006] Using VSOCK for incoming connections: 3
[12:14:13.008] Registered plugin API 'weston_rdp_output_api_v1' of size 16
[12:14:13.008] Head attaching: rdp-0, index:0, is_primary: 1
[12:14:13.008] get_config: attached head [0]: make:(null), mode:(null), name:rdp-0, (0x55efceaaf6b0)
[12:14:13.008] get_config: attached head [0]: x:0, y:0, width:0, height:0
[12:14:13.008] set_size: attached head [0]: make:weston, mode:rdp, name:rdp-0, (0x55efceaaf6b0)
[12:14:13.008] set_size: attached head [0]: x:0, y:0, width:0, height:0
[12:14:13.008] Output 'rdp-0' enabled with head(s) rdp-0
[12:14:13.008] 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
[12:14:13.008] Loading module '/usr/lib/weston/rdprail-shell.so'
[12:14:13.010] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_DEBUG_LEVEL: 3.
Date: 2022-05-01 EDT
[12:14:13.010] wet_shell_init: distro name NixOsTest (9)
[12:14:13.010] WESTON_RDPRAIL_SHELL_DISABLE_APPEND_DISTRONAME_STARTMEN:1
[12:14:13.012] WSL2_DEFAULT_APP_ICON:/usr/share/icons/wsl/linux.png
[12:14:13.013] WSL2_DEFAULT_APP_OVERLAY_ICON:/usr/share/icons/wsl/linux.png
[12:14:13.013] WESTON_RDPRAIL_SHELL_DISABLE_BLEND_OVERLAY_ICON_TASKBAR:1
[12:14:13.013] WESTON_RDPRAIL_SHELL_DISABLE_BLEND_OVERLAY_ICON_APPLIST:1
[12:14:13.013] rdp_rail_shell_initialize_notify: shell: distro name: NixOsTest
[12:14:13.015] app_list_monitor_thread: running in system-distro with user-distro: NixOsTest
[12:14:13.015] app_list_monitor_thread: open(/proc/self/ns/mnt)
[12:14:13.015] app_list_monitor_thread: open(/proc/2/ns/mnt)
[16:14:13.015] app_list_monitor_thread: inotify_add_watch(/usr/share/applications)
[12:14:13.015] Loading module '/usr/lib/libweston-9/xwayland.so'
[16:14:13.015] app_list_monitor_thread: /usr/local/share/applications doesn't exist, skipping.
[16:14:13.015] app list folder[0]: /usr/share/applications
[16:14:13.016] app list folder[1]: /usr/local/share/applications
[12:14:13.021] Registered plugin API 'weston_xwayland_v1' of size 32
[12:14:13.021] Registered plugin API 'weston_xwayland_surface_v1' of size 48
[12:14:13.021] Not using abstract fd for Xwayland
[12:14:13.021] xserver listening on display :0
[12:14:14.229] xf_peer_adjust_monitor_layout:
[12:14:14.229]   DesktopWidth:1920, DesktopHeight:1080
[12:14:14.229]   UseMultimon:0
[12:14:14.229]   ForceMultimon:0
[12:14:14.229]   MonitorCount:2
[12:14:14.229]   HasMonitorAttributes:1
[12:14:14.229]   HiDefRemoteApp:1
[12:14:14.229] disp_monitor_validate_and_compute_layout:---INPUT---
[12:14:14.229]  rdpMonitor[0]: x:0, y:0, width:1920, height:1080, is_primary:1
[12:14:14.229]  rdpMonitor[0]: physicalWidth:344, physicalHeight:194, orientation:0
[12:14:14.229]  rdpMonitor[0]: desktopScaleFactor:125, deviceScaleFactor:100
[12:14:14.229]  rdpMonitor[0]: scale:1, client scale :1.00
[12:14:14.229]  rdpMonitor[1]: x:-1600, y:373, width:1600, height:900, is_primary:0
[12:14:14.229]  rdpMonitor[1]: physicalWidth:443, physicalHeight:249, orientation:0
[12:14:14.229]  rdpMonitor[1]: desktopScaleFactor:100, deviceScaleFactor:100
[12:14:14.229]  rdpMonitor[1]: scale:1, client scale :1.00
[12:14:14.229] Client desktop upper left coordinate (-1600,0)
[12:14:14.229]  All monitors are horizontally placed
[12:14:14.229] disp_monitor_validate_and_compute_layout:---OUTPUT---
[12:14:14.229]  rdpMonitor[0]: x:-1600, y:373, width:1600, height:900, is_primary:0
[12:14:14.229]  rdpMonitor[0]: weston x:0, y:373, width:1600, height:900
[12:14:14.229]  rdpMonitor[0]: physicalWidth:443, physicalHeight:249, orientation:0
[12:14:14.229]  rdpMonitor[0]: desktopScaleFactor:100, deviceScaleFactor:100
[12:14:14.229]  rdpMonitor[0]: scale:1, clientScale:1.00
[12:14:14.229]  rdpMonitor[1]: x:0, y:0, width:1920, height:1080, is_primary:1
[12:14:14.229]  rdpMonitor[1]: weston x:1600, y:0, width:1920, height:1080
[12:14:14.229]  rdpMonitor[1]: physicalWidth:344, physicalHeight:194, orientation:0
[12:14:14.229]  rdpMonitor[1]: desktopScaleFactor:125, deviceScaleFactor:100
[12:14:14.229]  rdpMonitor[1]: scale:1, clientScale:1.00
[12:14:14.229] Head mode change:rdp-0 OLD width:0, height:0, scale:1, clientScale:1.000000
[12:14:14.229] Head mode change:rdp-0 NEW width:1920, height:1080, scale:1, clientScale:1.000000
[12:14:14.229] move head/output rdp-0 (0,0) -> (1600,0)
[12:14:14.229] client origin (0,0) is (1600,0) in Weston space
[12:14:14.229] client virtual desktop is (-1600,0) - (1920,1273)
[12:14:14.229] weston virtual desktop is (0,0) - (3520,1273)
[12:14:14.301] Client: ClientStatus:0x3f5
[12:14:14.301]      - TS_RAIL_CLIENTSTATUS_ALLOWLOCALMOVESIZE
[12:14:14.301]      - TS_RAIL_CLIENTSTATUS_ZORDER_SYNC
[12:14:14.301]      - TS_RAIL_CLIENTSTATUS_WINDOW_RESIZE_MARGIN_SUPPORTED
[12:14:14.301]      - TS_RAIL_CLIENTSTATUS_HIGH_DPI_ICONS_SUPPORTED
[12:14:14.301]      - TS_RAIL_CLIENTSTATUS_APPBAR_REMOTING_SUPPORTED
[12:14:14.301]      - TS_RAIL_CLIENTSTATUS_POWER_DISPLAY_REQUEST_SUPPORTED
[12:14:14.301]      - TS_RAIL_CLIENTSTATUS_GET_APPID_RESPONSE_EX_SUPPORTED
[12:14:14.301]      - TS_RAIL_CLIENTSTATUS_BIDIRECTIONAL_CLOAK_SUPPORTED
[12:14:14.301] Client HandShake buildNumber:22000
[12:14:14.352] Server AppList caps version:3
[12:14:14.373] Client: gfxredir_caps: length:28
[12:14:14.373] Client: gfxredir_caps[0]: signature:0x53504143
[12:14:14.373] Client: gfxredir_caps[0]: version:0x1
[12:14:14.373] Client: gfxredir_caps[0]: length:12
[12:14:14.373] Client: gfxredir_caps[1]: signature:0x53504143
[12:14:14.373] Client: gfxredir_caps[1]: version:0x2000
[12:14:14.373] Client: gfxredir_caps[1]: length:16
[12:14:14.373] Client: gfxredir_caps[1]: supportedFeatures:0x0
[12:14:14.373] Client: gfxredir selected caps: version:0x2000
[12:14:14.393] Client: GrfxCaps count:0x8
[12:14:14.393] Client: GrfxCaps[0] version:0x80004 length:4 flags:0x0
[12:14:14.393]  Version : RDPGFX_CAPVERSION_8
[12:14:14.393] Client: GrfxCaps[1] version:0x80105 length:4 flags:0x0
[12:14:14.393]  Version : RDPGFX_CAPVERSION_81
[12:14:14.393] Client: GrfxCaps[2] version:0xa0002 length:4 flags:0x0
[12:14:14.393]  Version : RDPGFX_CAPVERSION_10
[12:14:14.393] Client: GrfxCaps[3] version:0xa0200 length:4 flags:0x0
[12:14:14.393]  Version : RDPGFX_CAPVERSION_102
[12:14:14.393] Client: GrfxCaps[4] version:0xa0301 length:4 flags:0x0
[12:14:14.393]  Version : RDPGFX_CAPVERSION_103
[12:14:14.393] Client: GrfxCaps[5] version:0xa0400 length:4 flags:0x0
[12:14:14.393]  Version : RDPGFX_CAPVERSION_104
[12:14:14.393] Client: GrfxCaps[6] version:0xa0502 length:4 flags:0x0
[12:14:14.393]  Version : RDPGFX_CAPVERSION_105
[12:14:14.393] Client: GrfxCaps[7] version:0xa0600 length:4 flags:0x0
[12:14:14.393]  Version : RDPGFX_CAPVERSION_106
[12:14:14.404] Pulse Audio source listener socket on /mnt/wslg/PulseAudioRDPSource
[12:14:14.404] xf_peer_adjust_monitor_layout:
[12:14:14.404] AudioIn source_thread: Listening for audio in connection.
[12:14:14.404]   DesktopWidth:1920, DesktopHeight:1080
[12:14:14.404]   UseMultimon:0
[12:14:14.404]   ForceMultimon:0
[12:14:14.404]   MonitorCount:2
[12:14:14.404]   HasMonitorAttributes:1
[12:14:14.404]   HiDefRemoteApp:1
[12:14:14.404] disp_monitor_validate_and_compute_layout:---INPUT---
[12:14:14.404]  rdpMonitor[0]: x:0, y:0, width:1920, height:1080, is_primary:1
[12:14:14.404]  rdpMonitor[0]: physicalWidth:344, physicalHeight:194, orientation:0
[12:14:14.404]  rdpMonitor[0]: desktopScaleFactor:125, deviceScaleFactor:100
[12:14:14.404]  rdpMonitor[0]: scale:1, client scale :1.00
[12:14:14.404]  rdpMonitor[1]: x:-1600, y:373, width:1600, height:900, is_primary:0
[12:14:14.404]  rdpMonitor[1]: physicalWidth:443, physicalHeight:249, orientation:0
[12:14:14.404]  rdpMonitor[1]: desktopScaleFactor:100, deviceScaleFactor:100
[12:14:14.404]  rdpMonitor[1]: scale:1, client scale :1.00
[12:14:14.404] Client desktop upper left coordinate (-1600,0)
[12:14:14.404]  All monitors are horizontally placed
[12:14:14.404] disp_monitor_validate_and_compute_layout:---OUTPUT---
[12:14:14.404]  rdpMonitor[0]: x:-1600, y:373, width:1600, height:900, is_primary:0
[12:14:14.404]  rdpMonitor[0]: weston x:0, y:373, width:1600, height:900
[12:14:14.404]  rdpMonitor[0]: physicalWidth:443, physicalHeight:249, orientation:0
[12:14:14.404]  rdpMonitor[0]: desktopScaleFactor:100, deviceScaleFactor:100
[12:14:14.404]  rdpMonitor[0]: scale:1, clientScale:1.00
[12:14:14.404]  rdpMonitor[1]: x:0, y:0, width:1920, height:1080, is_primary:1
[12:14:14.404]  rdpMonitor[1]: weston x:1600, y:0, width:1920, height:1080
[12:14:14.404]  rdpMonitor[1]: physicalWidth:344, physicalHeight:194, orientation:0
[12:14:14.404]  rdpMonitor[1]: desktopScaleFactor:125, deviceScaleFactor:100
[12:14:14.404]  rdpMonitor[1]: scale:1, clientScale:1.00
[12:14:14.404] move head/output rdp-0 (1600,0) -> (1600,0)
[12:14:14.404] client origin (0,0) is (1600,0) in Weston space
[12:14:14.404] client virtual desktop is (-1600,0) - (1920,1273)
[12:14:14.404] weston virtual desktop is (0,0) - (3520,1273)
[12:14:14.404] kbd_layout:0x409 kbd_type:0x4 kbd_subType:0x0 kbd_functionKeys:0xc
[12:14:14.404] convert_rdp_keyboard_to_xkb_rule_names: matching layout=us variant=(null) options=(null)
[12:14:14.426] Detected a monitor change on head 'rdp-0', not bothering to do anything about it.
[12:14:14.426] Head attaching: rdp-1, index:1, is_primary: 0
[12:14:14.426] get_config: attached head [1]: make:(null), mode:(null), name:rdp-1, (0x55efceb75d00)
[12:14:14.426] get_config: attached head [1]: x:-1600, y:373, width:1600, height:900
[12:14:14.426] set_size: attached head [1]: make:weston, mode:rdp, name:rdp-1, (0x55efceb75d00)
[12:14:14.426] set_size: attached head [1]: x:-1600, y:373, width:1600, height:900
[12:14:14.426] move head/output rdp-1 (3520,0) -> (0,373)
[12:14:14.426] Output 'rdp-1' enabled with head(s) rdp-1
[12:14:14.426] Client ExecOrder:0x00000008, Program:dummy-entry, WorkingDir:(null), RemoteApplicationArguments:(null)
[12:14:14.426] Client ExecOrder launching dummy-entry
[12:14:14.426] launching 'dummy-entry'
[12:14:14.427] Client: ClientSysparam: filterKeys
[12:14:14.427] Client: ClientSysparam: toggleKeys:62
[12:14:14.427] Client: ClientSysparam: stickyKeys:510
[12:14:14.427] Client: ClientSysparam: caretWidth:1
[12:14:14.427] Client: ClientSysparam: highContrast
[12:14:14.427] Client: ClientSysparam: taskbarPos:(left:0, top:1020, right:1920, bottom:1080)
[12:14:14.427] Client: ClientSysparam: mouseButtonSwap:0
[12:14:14.427] Client: ClientSysparam: keyboardPref:0
[12:14:14.427] Client: ClientSysparam: dragFullWindows:1
[12:14:14.427] Client: ClientSysparam: keyboardCues:0
[12:14:14.427] Client: ClientSysparam: workArea:(left:-1600, top:373, right:0, bottom:1225)
[12:14:14.428] Translated workarea:(0,373)-(1600,1225) at rdp-1:(0,373)-(1600,1273)
[12:14:14.428] Client: ClientSysparam: workArea:(left:0, top:0, right:1920, bottom:1020)
[12:14:14.428] Translated workarea:(1600,0)-(3520,1020) at rdp-0:(1600,0)-(3520,1080)
[12:14:14.428] Client AppList caps version:3
[12:14:14.428] Client AppList client language id: en_GB
[12:14:14.428] app_list_monitor_thread: startRdpNotifyEvent is signalled. 0 - en_GB
[12:14:14.428] app_list_start_rdp_notify(): client language is changed from en_US to en_GB
[16:14:14.428] app list folder[0]: /usr/share/applications
[12:14:14.428] Client: ClientSysparam: filterKeys
[12:14:14.427] compositor: executing 'dummy-entry' failed: No such file or directory
[12:14:14.428] Client: ClientSysparam: toggleKeys:62
[12:14:14.428] Client: ClientSysparam: stickyKeys:510
[16:14:14.428] app list folder[1]: /usr/local/share/applications
[12:14:14.428] Client: ClientSysparam: caretWidth:1
[12:14:14.428] Client: ClientSysparam: highContrast
[12:14:14.428] Client: ClientSysparam: taskbarPos:(left:0, top:1020, right:1920, bottom:1080)
[12:14:14.428] Client: ClientSysparam: mouseButtonSwap:0
[12:14:14.428] Client: ClientSysparam: keyboardPref:0
[12:14:14.428] Client: ClientSysparam: dragFullWindows:1
[12:14:14.428] Client: ClientSysparam: keyboardCues:0
[12:14:14.428] Client: ClientSysparam: workArea:(left:-1600, top:373, right:0, bottom:1225)
[12:14:14.428] Translated workarea:(0,373)-(1600,1225) at rdp-1:(0,373)-(1600,1273)
[12:14:14.428] Client: ClientSysparam: workArea:(left:0, top:0, right:1920, bottom:1020)
[12:14:14.428] Translated workarea:(1600,0)-(3520,1020) at rdp-0:(1600,0)-(3520,1080)
[12:14:14.428] Client ExecOrder program terminated
[12:14:14.428] dummy-entry exited with status 255
[12:14:14.453] rdp_audio_server_activated: 1 audio formats supported.
[12:14:14.453]  [0] - Format(WAVE_FORMAT_PCM) - Bits(16), Channels(2), Frequency(44100)
[12:14:14.453] RDPAudio - Agreed on format 0.
[12:14:14.453] rdp_audio_server_activated: bytesPerFrame:4, latency:5
[12:14:14.453] Pulse Audio Sink listener socket on /mnt/wslg/PulseAudioRDPSink
[12:14:14.453] Audio sink thread: Listening for audio connection.
[12:14:18.040] Audio sink thread: connection successful on socket (56).
[12:14:18.040] RDP Sink version (1 - 1)
[12:14:23.083] Spawned Xwayland server, pid 264
[12:14:26.199] xfixes version: 5.0
[12:14:26.218] created wm, root 668
[12:14:26.218] xfixes selection notify event: owner 2097153
[12:14:26.218] our window, skipping
[12:14:40.858] unable to checkDescriptor for 0x55efceab8b80
[12:14:40.858] RDP Audio: signalhandler(12)
[12:14:40.858] AudioIn source thread: Listener connection error (Invalid argument)
[12:14:40.858] AudioIn source_thread: Listening for audio in connection.
[12:14:40.858] AudioIn source_thread is asked to exit (accept loop)
[12:14:40.858] RDP Audio: signalhandler(12)
[12:14:40.858] Audio sink thread: error while reading from sink socket sizeRead:-1. Interrupted system call
[12:14:40.858] Audio sink thread: Listening for audio connection.
[12:14:40.858] Audio sink thread is asked to exit (accept loop)
[12:14:40.859] app_list_monitor_thread: stopRdpNotifyEvent is signalled. 1
[12:14:40.859] rdp_rail_notify_app_list(): rdp_peer 0x55efceaba330
[12:14:40.859]     inSync: 0
[12:14:40.859]     syncStart: 0
[12:14:40.859]     syncEnd: 0
[12:14:40.859]     newAppId: 0
[12:14:40.859]     deleteAppId: 0
[12:14:40.859]     deleteAppProvider: 1
[12:14:40.859]     appId: (null)
[12:14:40.859]     appGroup: (null)
[12:14:40.859]     appExecPath: (null)
[12:14:40.859]     appWorkingDir: (null)
[12:14:40.859]     appDesc: (null)
[12:14:40.859]     appIcon: (nil)
[12:14:40.859]     appProvider: NixOsTest
[12:14:40.871] set_window_icon(): rdp_peer is not initalized
[12:14:40.872] xfixes selection notify event: owner 0

I have waited for 5+ minutes, and glxgears still doesn't show the actual gears.

hideyukn88 commented 2 years ago

@bobbbay, your versions.txt shows you are on very old version of WSLg (10+ month old), please update from aka.ms/wslstorepage. Also please update Intel GPU driver from https://www.intel.com/content/www/us/en/download/19344/intel-graphics-windows-dch-drivers.html, this has a fix for glxgears, thanks!

bobbbay commented 2 years ago

@hideyukn88 thank you, upgrading to the preview version of WSL fixed the issue for me!

romanlex commented 2 years ago

@hideyukn88 thank you, upgrading to the preview version of WSL fixed the issue for me!

how I can make it?

romanlex commented 2 years ago

now I have 0.58.3.0 installed wsl image

 ~  cat /mnt/wslg/versions.txt                                                   INT ✘ │ 11s │ 2.7.5 Ruby │ 13:55:17
WSLg ( x86_64 ): 1.0.33+Branch.main.Sha.d57addbe6309d0a453123c91e6117fc21871496c
Mariner: VERSION="1.0.20220226"
FreeRDP: c574044a10003e50453acb4cf42801c5833fb572
weston: 651d33374f9b9e93e1cf1210faff13bcd339f132
pulseaudio: 2f0f0b8c3872780f15e275fc12899f4564f01bd5
mesa:
PS C:\Users\lex> wsl --version
WSL version: 0.58.3.0
Kernel version: 5.10.102.1
WSLg version: 1.0.33
MSRDC version: 1.2.2924
Direct3D version: 1.601.0
Windows version: 10.0.22000.613

And have same issue

LiamKarlMitchell commented 1 year ago

I had exports for $DISPLAY in my ~/.bashrc and ~/.profile from GWSL. Once I commented those out and closed all wsl terminals then re-opened it worked. I did put an export in just in-case.

#export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0 #GWSL
#export PULSE_SERVER=tcp:$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}') #GWSL
#export PATH="$PATH:/opt/mssql-tools/bin"
export DISPLAY=:0

I also found these helpful in the past when I was playing around with scaling windows. export GDK_SCALE=1 export QT_SCALE_FACTOR=1