Taskbar window caption shows [WARN: COPY MODE] #312
-
This appears on all WSLg window caption in the taskbar, but not on the actual window titles. I have heard mentioned that this could be because WSLg is using RAIL rather than VAIL for the RDP transport. I also noticed the following in the weston.log file which perhaps confirms that: [10:40:49.922] WSL2_SHARED_MEMORY_MOUNT_POINT is not set. In addition, "/mnt/shared_memory" is not present. I am also getting quite poor 3D framerates despite having HW acceleration working (glxinfo shows renderer as "D3D12 (NVIDIA GTX 1070). Might this be due to the use of RAIL sending bits over the wire, rather than using shared memory as in VAIL? If so, how do I get VAIL working? Update 18/06: I updated WSL (wsl --update) and this removed the "[WARN: COPY MODE]". However, OpenGL performance hasn't improved and I still don't see a /mnt/shared_memory. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 12 replies
-
You need to upgrade to mesa 21.x
|
Beta Was this translation helpful? Give feedback.
-
This error message does indeed mean RDP is running in RAIL mode (copy pixels from Linux to Windows over the RDP transport) instead of VAIL mode (share memory between Linux and Windows). This is actually independent of mesa or 3D acceleration / vGPU drivers. The WSLg shared memory uses virtio-fs which has been enabled in the WSL 2 Linux kernel from version 5.10.16+. Could you verify the version of the Linux kernel you are running:
If you are running a version older than 5.10.16, shut down WSL If you are on 5.10.16+ and you are still seeing that error, we would need to get the dmseg log from the Linux kernel boot session to see what failed when attempting to initialize virtio-fs. To gather this, you can enable the WSL debug console. In your
Restart wsl |
Beta Was this translation helpful? Give feedback.
-
So at my end running 5.10.43.3-microsoft-standard-WSL2 on ARM surfacepro x. I get WARN:COPY caption on some apps, and for example vscode (installed in wsl2) doesn't. The issue with the apps showing warn:copy is they don't respond to window's window management (for example they don't snap) and they seem much slower. Has anyone ran into this issue, and found a fix? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This was still valid for me and the solution proposed fixes the problem. OS: Win 11 22H2 |
Beta Was this translation helpful? Give feedback.
-
I have been working on a custom distribution that i'm trying to get working in WSL, for the last several days, and everything was running fine -- and then suddenly it wasn't. WSL, as well as some windows processes, slowed to a crawl, and my 1 running WSLg process is showing [WARN: COPY MODE] on it. a wsl --shutdown hasn't cleared it, going to try rebooting windows. Definitely is running mesa 24, using llvmpipe as the d3d12 drivers don't seem to like Apple's AMD cards. update: rebooting fixed it. Suspecting some sort of resource leak inside my wsl distro, i attempted relaunching every single thing inside it again, which resulted in pulseaudio breaking instead of wslg, necessitating a wsl --shutdown to get back to anything working |
Beta Was this translation helpful? Give feedback.
You need to upgrade to mesa 21.x