Skip to content

WSL 2.7.3: /mnt/shared_memory missing → WSLg windows invisible ([WARN:COPY MODE]) #40618

@neumaennl

Description

@neumaennl

Windows Version

Microsoft Windows [Version 10.0.26200.8457]

WSL Version

2.7.3.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.6.114.1-1

Distro Version

Ubuntu 24.04

Other Software

No response

Repro Steps

  1. Update to WSL 2.7.3
  2. Start WSL
  3. Run: xeyes
  4. Observe:
  • taskbar entry appears
  • no window is rendered

Expected Behavior

xeyes GUI window appears and the eyes follow the mouse pointer

Actual Behavior

After updating to WSL 2.7.3, WSLg GUI applications no longer render any windows.

  • Applications launch successfully
  • Taskbar icons appear
  • Window previews show a blank surface
  • No actual window is visible

The window title includes: [WARN:COPY MODE]

Diagnostic Logs

The issue is caused by /mnt/shared_memory not being mounted at all.
Expected:
/mnt/shared_memory
Actual:

$ ls -l /mnt
total 3
drwxrwxrwx 1 neumann neumann 4096 May 21 07:30 c
drwxrwxrwt 2 root    root      60 May 21 09:44 wsl
drwxrwxrwt 7 root    root     300 May 21 09:44 wslg
$

From /mnt/wslg/weston.log:
rdp_allocate_shared_memory: Failed to open "/mnt/shared_memory/..." with error: Input/output error

Workaround

Manually creating the mount fixes the issue:

sudo mkdir -p /mnt/shared_memory
sudo mount -t tmpfs tmpfs /mnt/shared_memory

After this:

  • GUI windows render normally
  • [WARN:COPY MODE] disappears

After manually mounting /mnt/shared_memory once (tmpfs) and then unmounting it again, GUI applications continue to render correctly — even across wsl --shutdown and windows reboot.

This suggests:

  • WSLg initialization fails if /mnt/shared_memory is missing at startup
  • but once the rendering pipeline is successfully initialized, it continues working even without it

This indicates a timing / initialization dependency rather than a strict runtime requirement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions