-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cursor and windows blinking when WSL is running #9752
Comments
I tried to remove several apps including Nvidia drivers, rancher-desktop, even Office, also tried to clean all possible config files, but the problem still occurred. My fix for now is to use wsl kernel 5.10.16 which works well. |
@hideyukn88, Do you have any advice? |
@pmartincic, if you are seeing same issue, would you please share log files from /mnt/wslg, and check if there is any core dump is generated at /mnt/wslg/dumps, thanks! |
Hello! Could you please provide logs and process dumps to help us better diagnose your issue? To collect WSL logs and dumps, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging Thank you! |
@hideyukn88, I'm not seeing the same problem. I just wasn't sure where to start with the investigation on this bug. Figured you might have a better idea than I. |
Not sure if they are uploaded at the right place, but these logs are available in my initial comments (I added these afterwards, which may be why the bot signaled it as missing). |
@sebbelese, I wonder if this is caused by WSLg, thus I would like to get logs from /mnt/wslg, thanks! |
Sorry for late reply, I was unavailable with no time to break my current setup. Attached are the .log files located in /mnt/wslg. Is there any other file you need? |
@sebbelese, thanks for providing logs, and yes, this is indeed caused by WSLg. WSLg launches msrdc.exe in background, and it is failing, thus it's repeatedly launched, and that ends up as cursor blinking. There is couple of known issues. 1: group policy prevents msrdc.exe from establishing connection with WSLg. If you can share output from 2: Citrix software is installed, then you will need to apply workaround described either https://support.citrix.com/article/CTX107825/how-to-disable-citrix-api-hooks-on-a-perapplication-basis, or https://support.citrix.com/article/CTX463527/ms-quick-assist-crashes-when-used-in-citrix-session. 3: Something else, then please share a few ETL files at %LOCALAPPDATA%\Temp\DiagOutputDir\RdClientAutoTrace. Finally as workaround, if you are not using Linux GUI application, you can disable it by .wslconfig, please refer https://learn.microsoft.com/en-us/windows/wsl/wsl-config, thanks! |
Thanks for your time and answer. Citrix is not installed. Group policy is plausible, since it is a company-owned computer.
|
@sebbelese, thanks for info, but it looks none of those policies interfere with WSLg, would you please share a few ETL files from %LOCALAPPDATA%\Temp\DiagOutputDir\RdClientAutoTrace, thanks! |
Here are some |
@sebbelese, thanks for sharing the log, just to sanity check, would you please shutdown WSL by
|
@sebbelese, also please share output from |
Hi @hideyukn88 , Thanks for continuing to investigate. Yes, I see the warning:
Output of reg QUERY "HKCU\Software\Microsoft\Terminal Server Client"
Output of reg QUERY "HKLM\Software\Microsoft\Terminal Server Client"
|
@sebbelese, below registry key setting is disabling the feature WSL/WSLg depneds on, if this key is removed or set the value to 1, then msrdc.exe will properly start up and no more cursor blinking. I guess this is set by your corporate policy? thanks!
|
Changing this setting to 1 fixes the issue, and allows to run Linux GUI apps. I will check with my company IT why it was disabled. Maybe some clear warning or error should be useful in this case. I am not sure if I should close the issue, I leave it into your hands. Thanks for taking the time to look into this problem! |
I just wanted to share that I also experienced the same problem, but in my case it was caused by Citrix. I followed the workaround provided by @hideyukn88 in this article (https://support.citrix.com/article/CTX107825/how-to-disable-citrix-api-hooks-on-a-perapplication-basis), and I excluded msrdc.exe. Since then, the blinking has stopped. Thanks guys! |
Ah, finally, thank you. -- to add a bit of convenience here the .reg file for the two switches:
|
same problem, this reg key seemed to have resolved it. For me it happens every time I open up my WSL terminal in a citrix environment on win 10 22h2 |
Same. Citrix was the issue for me. Setting the two ExcludedImageNames keys as per above solved the flickering. |
Same problem, but I have no Citrix nor EnableAdvancedRemoteFXRemoteAppSupport. I have these logs in
|
Windows Version
Microsoft Windows [Version 10.0.19045.2604]
WSL Version
1.1.3.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.90.1-microsoft-standard-WSL2
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
Start WSL V2
Expected Behavior
Wsl started, mouse cursor normal
Actual Behavior
When I start WSL V2 (not V1), the mouse cursor starts blinking between Loading/Normal states. Some other windows also blink but not all. See the example in the video where task manager and context menu blink:
2023-03-07.15-24-22.mp4
It used to work, I do not know what what the change that caused that behaviour.
I tried to completely reinstall WSL (the Linux distribs but also WSL itself), but still have the issue.
I understand that this si quite difficult to reproduce.
Diagnostic Logs
WslLogs-2023-03-08_09-14-06.zip
The text was updated successfully, but these errors were encountered: