-
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
GUI apps via VcXsrv not starting from 14 Jun 2024 #11698
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload 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 View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Closed similar issues:
|
The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running. Diagnostic information
|
Logs added. |
Weird. I have DISPLAY set as:
which currently results in DISPLAY=10.255.255.254:0. I assume this was the same value when all was good but I don't know. With DISPLAY set thusly I am getting the behaviour decribed above. But...if I get the IP address of the ethernet adapter using ipconfig I get 192.168.0.223. And setting DISPLAY=192.168.0.223:0 makes the X GUI apps work OK again. I wonder why this is. |
Same behavior here, using X410. |
Having the same issue. I'm pretty sure that Both me and two of my teammates are having the same issue since recent Windows upgrade. My Windows system info:
WSL info:
|
This seems to work: export DISPLAY=$(ip route | grep default | awk '{print $3}'):0.0 Credit - GPT4o |
|
Folks you are likely seeing this as we change and upgrade networking in WSL. In the latest WSL versions we turned on As others have put in the thread please update your variable to be the logic above instead (Thank you to @Maxim-Mazurok and others who posted their working configs!!). We had that old string in our docs page which is why folks might be using it (It's also floating around on GitHub somewhere) but we've gone ahead and updated our docs to use the latest working string. Since this doesn't have any actionable items for the WSL team I'm going to close it out, thank you for filing this! :) |
Thank you. This solved my problem I was having with Git Credential Manager after upgrading from WSL 2.1.5.0 to WSL 2.2.4.0 |
Windows Version
Microsoft Windows [Version 10.0.22631.3737]
WSL Version
2.2.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
Linux version 5.15.153.1-microsoft-standard-WSL2 (root@941d701f84f1) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Fri Mar 29 23:14:13 UTC 2024
Distro Version
Ubuntu 22.04.2 LTS
Other Software
VcXsrv X Server 1.20.8.1
Repro Steps
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
emacs &
Expected Behavior
Emacs starts (as it has for months under Windows 10 and the last week or so under Windows 11) in a new GUI window.
Actual Behavior
$ emacs &
[1] 10158
$ Display 10.255.255.254:0 unavailable, simulating -nw
[1]+ Stopped emacs
$ fg
Non-GUI emacs starts in WSL2 terminal window
Diagnostic Logs
WslLogs-2024-06-14_17-10-15.zip
The text was updated successfully, but these errors were encountered: