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

Windows Terminal Quits Immediately on Start #2 #10249

Closed
Sgt-Nukem opened this issue May 28, 2021 · 12 comments
Closed

Windows Terminal Quits Immediately on Start #2 #10249

Sgt-Nukem opened this issue May 28, 2021 · 12 comments
Labels
Product-Terminal The new Windows Terminal. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@Sgt-Nukem
Copy link

Windows Terminal version (or Windows build number)

10.0.19043.0 Microsoft Windows NT 10.0.19043.0

Other Software

No response

Steps to reproduce

Just click the Windows Terminal icon in the taskbar I have there for ages.

Expected Behavior

Windows Terminal just starts - like always - with my WSL2 default profile.

Actual Behavior

For the fraction of a second you can see that a windows was about to spawn, but then it vanishes immediately.

Note: Because of this this may be a separate bug to bug #10248.

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels May 28, 2021
@Sgt-Nukem
Copy link
Author

Sgt-Nukem commented May 28, 2021

I already found out the problem manifests with my default profile (i.e. WSL2) only.

If I start Windows Terminal via the jump list selecting PowerShell or classic CMD it works as expected.
Starting a new WSL2 from the open Windows Terminal produces a new tab for the blink of an eye - then closes it immediately.

I didn't change any settings for like months and are working with it everyday!

(If there are any logs or something I could append here please guide me to them.)

@Sgt-Nukem
Copy link
Author

Okay, I found the culprit: If I remove the starting directory (i.e. leave it blank) from my default profile everything is working again.

This was set to /var/www/_Frontend_/ (i.e. a Linux path - the Apache site directory) for ages. The directory exists and it's no problem to just go there in a new WSL2 instance spawned manually from CMD.

The only real change this week has been the Feature Update of Windows 10 to 21H1.

@zadjii-msft
Copy link
Member

What version of the Terminal do you have? You can find this with wt --version.

Out of curiosity, did the startingDirectory being set to /var/www/_Frontend_/ ever actually work before? Or did that profile just open in %USERPROFILE%?

@zadjii-msft zadjii-msft added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Product-Terminal The new Windows Terminal. labels May 28, 2021
@Sgt-Nukem
Copy link
Author

What version of the Terminal do you have? You can find this with wt --version.

Out of curiosity, did the startingDirectory being set to /var/www/_Frontend_/ ever actually work before? Or did that profile just open in %USERPROFILE%?

1.8.1444.0

I'm pretty sure it worked - although not 100% so as nowadays I don't use the WSL2 prompt that much anymore.

I found a workaround using //wsl$/Ubuntu-20.04/var/www/ at least.
BUT: //wsl$/Ubuntu-20.04/var/www/_Frontend_/ results in the bugged behavior, too!

Turns out: _Frontend_ under /var/www is a symbolic link so Apache can access my project files on the Windows side. Maybe that's the culprit?

I think it should navigate into a default path at least instead of just closing the terminal window.

@ghost ghost 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 May 28, 2021
@ajurna
Copy link

ajurna commented May 30, 2021

i have the same issue but i'm just using the default config. there is no starting directory setting in my config.

@Sgt-Nukem
Copy link
Author

i have the same issue but i'm just using the default config. there is no starting directory setting in my config.

Same version?

I'm pretty sure it worked - although not 100% so as nowadays I don't use the WSL2 prompt that much anymore.

I have more doubts now - as my other PC has set the //wsl$/... path, too - contrary to my memory. Take it as 50/50 at best.

(N.B.: But I would expect Windows Terminal to support Linux paths! As a "wrapper" around many different console sessions it should obey their path particularities. I find it kinda strange to have to set it to //wsl$/... - a hidden SMB/CIFS remote filesystem path - to start in Apache's local DocumentRoot.)

@ajurna
Copy link

ajurna commented May 31, 2021

yes i confirmed it was the same version.

@koenigseggcc
Copy link

koenigseggcc commented May 31, 2021

I have the same problem. However, the workaround of trying to start with a different shell does not work for me.

Application is completely borked, and even uninstalling/reinstalling to try to clear config doesn't help.

I've also tried resetting its config via Windows App Settings. Still won't start.

@koenigseggcc
Copy link

koenigseggcc commented May 31, 2021

Apparently there is some Windows Update that was required to get Terminal to run. I cannot tell which update it was, because when I initially opened the 'Updates' section, it told me there was nothing to install.

KB5003173 appears to be the requirement.

@ajurna
Copy link

ajurna commented May 31, 2021

well i updated to 21H1 and that resolved it for me. but hardly the best solution.

@zadjii-msft
Copy link
Member

Okay so I think OP's issue here is #10245 - for everyone else in this thread, I'm gonna redirect you to #10305 which has a big ol' list of all the crashes we're seeing, and various steps to mitigate them.

/dup #10245

Thanks!

@ghost
Copy link

ghost commented Jun 1, 2021

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost ghost closed this as completed Jun 1, 2021
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements Needs-Attention The core contributors need to come back around and look at this ASAP. labels Jun 1, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product-Terminal The new Windows Terminal. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

4 participants