-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Connecting to X Server in wsl-integration.sh causes very long startup times in WSL #99
Comments
I concur - as the code sets DISPLAY to the remote IP of the Windows side then runs It doesn't happen by default because x11-utilities isn't installed by default, so xvinfo isn't there. However, the Visual Studio Code Live Share integration installs it if you're running WSL-Remote, and other packages may as well. |
This is tracked in https://bugs.launchpad.net/ubuntu/+source/wslu/+bug/1855520 is is already fixed in Ubuntu development release and we are about to revert the package to a known-good state, then roll out an improved, much faster detection method. |
The change causing the long delay on WSL2 has been reverted in Ubuntu yesterday thus it can be fixed now with |
I pulled the change earlier today and definitely see an improvement in startup speed. It looks like it'll require a little more work for remote X11, but I would expect that as it's a much less common use case. Thanks! |
@phealy The idea is that for remote X11 you can populate the cache before the detection takes place. |
Hello @craigloewen-msft This is just a sample of what could happen if WSL 2 is released with its network being "Unidentified Network" type instead of a "Trusted" one or at least "Private." (microsoft/WSL#4139) I understand that Graphics are not supported in WSL. Still, I can't imagine the number of complaints in Pengwin and bad reviews when graphics won't work without allowing the Xserver through the firewall as a "Public" access. Maybe it is tough to tell the firewall to trust connections from the WSL network by default, but I think it should have a high priority in the roadmap. Regards, |
Hi @crramirez , that's a great point! We're looking into how to better address this, you're right it is a tough problem but it's also a priority for us to improve our networking story. I will be sure to post any updates to the command line blog or my Twitter as they become available :) |
The Ubuntu packages are fixed now, IMO this issue can be closed. The improved detection just landed in all releases, thus the detection has timeout and the results are also cached until the whole WSL instance is restarted. |
When was this fix introduced? I'm on wslu 3.2.3-0ubuntu3 and I am experiencing similar issues. |
Background Information:
Describe the bug
There are reports that the latest update in WSLUtilities causes a very long startup time in WSL2.
Please see the attached threads for descriptions and reproductions:
microsoft/WSL#4737
microsoft/WSL#4725
To Reproduce
See attached threads.
Expected behavior
Startup time in WSL should be fast.
Additional context
This seems to be related to checking for an X server and for audio:
microsoft/WSL#4737 (comment)
Thanks!
The text was updated successfully, but these errors were encountered: