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

Input hangs. #1161

Open Yan3ku opened 6 months ago

Yan3ku commented 6 months ago

Windows build number:

10.0.22631.0

Your Distribution version:

22.04 Ubuntu and Debian 12

Your WSL versions:

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.22631.2715

Steps to reproduce:

Open any text editor (Tested with emacs, gvim and gedit) Type some text.

WSL logs:

No response

WSL dumps:

No response

Expected behavior:

The type is typed as it is.

Actual behavior:

Sometimes some key will hang and input itself over and over, it happens often after pressing space. E.g. type "not" and the t will hang resulting in notttttttttttttttttttt, it happens really often making any writing really frustrating.

tkonsta commented 5 months ago

This sounds similar to #1140

tkonsta commented 5 months ago

@Yan3ku Do you have Microsoft PowerToys running in your Windows? Yesterday after reading some comments on intermittent WSLg issues which related these issues to running programs in Windows, I played a bit with my started programs and so far it seems, that if I deactivate PowerToys, then these keyboard lags are gone.

Maybe you can check that as well and if you experience the same, then we might get a step closer to the root cause and maybe Microsoft can find the problem in either PowerToys or WSLg...

catchin commented 4 months ago

I also experience this issue as well, mainly in IntelliJ IDEA. I have PowerToys installed. However, the keyboard hangs also if PowerToys is stopped.

Distribution: Debian 12.4 My WSL versions are the same as in the original post, only with Windows-Version 10.0.22631.3155.

Any further ideas how to debug it?