-
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
x stops working shortly after restart on WSL2/Win10 #12260
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 script will output the path of the log file once done. If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here 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:
|
Requested logs attached. |
Diagnostic information
|
I think this may be a variation on #9689 which has been closed. The workaround identified in that issue works for me:
|
Actually, I misspoke. The fix above was not reliably working and may have just been a coincidence. It turns out the problem is |
I think this is probably wslg issue #1122. I'll leave it open for now for someone with better expertise to confirm if this is a dupe. |
Windows Version
10.0.19045.5011
WSL Version
2.3.26.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.167.4-1
Distro Version
Ubuntu 24.10 (Oracular Oriole)
Other Software
No response
Repro Steps
For the past year or two, I've been using X/wslg with no problem. Starting recently, however, I observe different behavior. I'm not sure if this is from a WSL update or perhaps an Ubuntu update--I haven't changed anything else on my system that I'm aware of.
When I launch WSL2, I'm able to open X apps from the command-line without a problem. After a few minutes, though, I get
Error: Can't open display: :0
. Restarting WSL fixes the issue for a short while and then it reverts again.Where can I look to narrow down the issue?
Some older postings suggest looking at firewall rules but disabling Windows Defender on the vEthernet NICs does not help, and I don't see any inbound rules for VcXsrv (nor any active VcXsrv pids).
Expected Behavior
X app should open
Actual Behavior
X app does not open
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: