Skip to content
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

Error 0xffffffff starting WSL from WT #15072

Closed
angelog0 opened this issue Mar 30, 2023 · 4 comments
Closed

Error 0xffffffff starting WSL from WT #15072

angelog0 opened this issue Mar 30, 2023 · 4 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@angelog0
Copy link

angelog0 commented Mar 30, 2023

Windows Terminal version

1.16.230126001

Windows build number

Microsoft Windows [Versione 10.0.19045.2788]

Other Software

No response

Steps to reproduce

I reported this also to WSL people #9875

I used WSL since it was added to W10 and followed its evolution migrating from WSL1 to WSL2 when it was added. I enabled systemd a few months ago and all worked just fine until today.

Now when I start WSL fro Windows Terminal (WT) it prints

[processo terminato con codice 4294967295 (0xffffffff)]

and in WT prints the message It is possible to configure termination... bla bla

I upgraded WT 1.16.230126001 on January from the msixbundle package and worked just fine

Now I get the above error: it occurs only when I start WSL from WT!!! If I start it using MinTTY, with a link (lnk) whose target is

C:\msys64\usr\bin\mintty.exe -c C:\msys64\home\user\.minttyrc -t "WSL Terminal" --position 20,450 /usr/bin/wslbridge2.exe -d Ubuntu -W "~"

WSL starts without error. As workaround, to start it from WT, I have to reboot but I can only start it once: if I close the Ubuntu tab and restart it the error reappears...

I did not change anything in the configuration: both in Windows and in WSL or WT. May be a Windows upgrade? there was one few days ago.. but until yesterday all worked.. I did also a windows cleaning (System - Archive - temp files etc..) but I worked with WSL up to March 29 21:47 (a timestamp of a file produced by TeXLive) so it is a mistery why now it does not work from WT but only with MinTTY...

Expected Behavior

WSL should start

Actual Behavior

WSL gives the above error

@angelog0 angelog0 added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Mar 30, 2023
@Caikera
Copy link

Caikera commented Mar 31, 2023

Try to run wsl --update?
see microsoft/WSL#9866

@lhecker
Copy link
Member

lhecker commented Mar 31, 2023

(I've edited your comment to fix the link, which was previously pointing at just "url".)

@zadjii-msft
Copy link
Member

Yea, I'm pretty sure there was a change in the way WSL is delivered recently. Can you confirm if wsl --update works/?

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Mar 31, 2023
@angelog0
Copy link
Author

It seems that something was corrupted in my system. Running

sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth

seems to have fixed the issue.

wsl --update works..

I am going to close this...

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

4 participants