microsoft / wslg

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

Window is not appearing #1157

Open almarzn opened 7 months ago

almarzn commented 7 months ago

Windows build number:

19045.3693

Your Distribution version:

22.04

Your WSL versions:

Version WSL : 2.0.12.0 Version du noyau : 5.15.133.1-1 Version WSLg : 1.0.59 Version MSRDC : 1.2.4677 Version direct3D : 1.611.1-81528511 Version de DXCore : 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Version de Windows : 10.0.19045.3693

Steps to reproduce:

  1. run gedit

WSL logs:

pulseaudio.log stderr.log versions.txt weston.log wlog.log

WSL dumps:

Empty

Expected behavior:

An actual window

Actual behavior:

No window is appearing.

(gedit:4599): Gdk-CRITICAL **: 18:05:48.123: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:4599): Gdk-CRITICAL **: 18:05:48.157: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:4599): Gdk-CRITICAL **: 18:05:48.157: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:4599): Gdk-CRITICAL **: 18:05:48.258: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:4599): Gdk-CRITICAL **: 18:05:48.258: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:4599): Gdk-CRITICAL **: 18:05:48.258: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:4599): Gdk-CRITICAL **: 18:05:48.258: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:4599): Gdk-CRITICAL **: 18:05:48.258: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:4599): Gdk-CRITICAL **: 18:05:48.258: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

almarzn commented 7 months ago
> reg QUERY "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /S

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    fAllowUnsolicited    REG_DWORD    0x1
    fDisableLPT    REG_DWORD    0x1
    fPromptForPassword    REG_DWORD    0x1
    UserAuthentication    REG_DWORD    0x1
    DeleteTempDirsOnExit    REG_DWORD    0x1
    fAllowToGetHelp    REG_DWORD    0x1
    DisablePasswordSaving    REG_DWORD    0x1
    fDisableCcm    REG_DWORD    0x1
    PerSessionTempDir    REG_DWORD    0x1
    fEncryptRPCTraffic    REG_DWORD    0x1
    UseBandwidthOptimization    REG_DWORD    0x1
    OptimizeBandwidth    REG_DWORD    0x8
    UseCustomMessages    REG_DWORD    0x1
    ShareControlMessage    REG_SZ
    ViewMessage    REG_SZ
    fAllowFullControl    REG_DWORD    0x1
    MaxTicketExpiry    REG_DWORD    0x1
    MaxTicketExpiryUnits    REG_DWORD    0x1
    fUseMailto    REG_DWORD    0x1
    LoggingEnabled    REG_DWORD    0x1
    CreateEncryptedOnlyTickets    REG_DWORD    0x1
    fAllowUnsolicitedFullControl    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client
    fEnableUsbBlockDeviceBySetupClass    REG_DWORD    0x1
    fEnableUsbNoAckIsochWriteToDevice    REG_DWORD    0x50
    fEnableUsbSelectDeviceByInterface    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client\UsbBlockDeviceBySetupClasses
    1000    REG_SZ    {3376f4ce-ff8d-40a2-a80f-bb4359d1415c}

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client\UsbSelectDeviceByInterfaces
    1000    REG_SZ    {6bdd1fc6-810f-11d0-bec7-08002be2092f}

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\RAUnsolicit
....
alexvorobiev commented 6 months ago

I am getting this error message with emacs compiled with pgtk, In my case it works for a while but then the window disappears and I see this message together with another one:

(emacs:261048): Gdk-CRITICAL **: 21:34:32.997: gdk_window_get_device_position_double: assertion 'GDK_IS_DEVICE (device)' failed

(emacs:261048): Gdk-CRITICAL **: 21:34:32.997: gdk_seat_get_pointer: assertion 'GDK_IS_SEAT (seat)' failed

I can force emacs to open another window by using emacsclient from command line, then the original window appears as well but neither window respond to keyboard or mouse.

WSL version: 2.0.9.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.2715
BenedictHW commented 5 months ago

https://github.com/microsoft/wslg/issues/294#issuecomment-1911481055