wslg: Applications run but don't create window

Environment

Windows build number:  Win32NT             10.0.21364.0 Microsoft Windows NT 10.0.21364.0
Your Distribution version: Release:        20.04
Your WSLg version: 1.0.17.1

Steps to reproduce

  1. Launch a wsl instance in Windows Terminal
  2. Launch a graphical application (gedit in this example)

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

gedit will open and present a blank file with all UI elements

Actual behavior

The application runs, does not create a window, and prints these errors

pengu@ARCTICA:~$ gedit

(gedit:22): Gdk-CRITICAL **: 19:34:15.273: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.364: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.364: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.539: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.539: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.539: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.539: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.539: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.539: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.539: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.539: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.540: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.540: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.540: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.540: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.540: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.540: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.540: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.541: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.541: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.541: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.541: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.541: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.541: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.541: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.541: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.541: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.616: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.681: gdk_seat_get_pointer: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.681: gdk_device_get_window_at_position_double: assertion 'GDK_IS_DEVICE (device)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.681: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.681: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.681: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.681: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(gedit:22): Gdk-CRITICAL **: 19:34:15.681: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (4 by maintainers)

Commits related to this issue

Most upvoted comments

Are you running a custom kernel? Make sure you are running latest kernel from Windows Update with wsl.exe --update and comment out the kernel entry in .wslconfig.

I was running a self-build of Microsoft’s own kernel. No edits, just locally compiled. Commenting out the self-built kernel and restarting wsl has fixed the issue I had.

I will try and rebuild the kernel and see if it still works, though for now this issue can be considered solved!