Windows Terminal Quits Immediately on Start #2 #14012

Closed
opened 2026-01-31 03:58:27 +00:00 by claunia · 12 comments
Owner

Originally created by @Sgt-Nukem on GitHub (May 28, 2021).

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.

Originally created by @Sgt-Nukem on GitHub (May 28, 2021). ### 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.
claunia added the Resolution-DuplicateProduct-Terminal labels 2026-01-31 03:58:27 +00:00
Author
Owner

@Sgt-Nukem commented on GitHub (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 commented on GitHub (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.)_
Author
Owner

@Sgt-Nukem commented on GitHub (May 28, 2021):

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.

@Sgt-Nukem commented on GitHub (May 28, 2021): 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.
Author
Owner

@zadjii-msft commented on GitHub (May 28, 2021):

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 commented on GitHub (May 28, 2021): 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%`?
Author
Owner

@Sgt-Nukem commented on GitHub (May 28, 2021):

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.

@Sgt-Nukem commented on GitHub (May 28, 2021): > 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.
Author
Owner

@ajurna commented on GitHub (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.

@ajurna commented on GitHub (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.
Author
Owner

@Sgt-Nukem commented on GitHub (May 31, 2021):

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.)

@Sgt-Nukem commented on GitHub (May 31, 2021): > 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.)
Author
Owner

@ajurna commented on GitHub (May 31, 2021):

yes i confirmed it was the same version.

@ajurna commented on GitHub (May 31, 2021): yes i confirmed it was the same version.
Author
Owner

@koenigseggcc commented on GitHub (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 commented on GitHub (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.
Author
Owner

@koenigseggcc commented on GitHub (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.

@koenigseggcc commented on GitHub (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.
Author
Owner

@ajurna commented on GitHub (May 31, 2021):

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

@ajurna commented on GitHub (May 31, 2021): well i updated to 21H1 and that resolved it for me. but hardly the best solution.
Author
Owner

@zadjii-msft commented on GitHub (Jun 1, 2021):

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!

@zadjii-msft commented on GitHub (Jun 1, 2021): 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!
Author
Owner

@ghost commented on GitHub (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 commented on GitHub (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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14012