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 randomly closes. #10522

Closed
jhakeinson opened this issue Jun 28, 2021 · 11 comments
Closed

Windows Terminal randomly closes. #10522

jhakeinson opened this issue Jun 28, 2021 · 11 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Priority-1 A description (P1) Product-Terminal The new Windows Terminal.

Comments

@jhakeinson
Copy link

Windows Terminal version (or Windows build number)

1.8.1444.0

Other Software

No response

Steps to reproduce

Use the Windows Terminal app. This issue is random and hard to reproduce.

Expected Behavior

Windows Terminal should not close all my sessions unless I tell it to.

Actual Behavior

When using the Windows Terminal app, the app suddenly closes. It happens randomly, more than twice, every day. For example, when I am typing a command or waiting for the result of an executed command. It closes all my sessions, which is annoying.

Here's my Feedback Hub link: https://aka.ms/AAd1c6q

@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 Jun 28, 2021
@lhecker lhecker added Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-1 A description (P1) Product-Terminal The new Windows Terminal. labels Jun 29, 2021
@zadjii-msft
Copy link
Member

Huh. There's unfortunately no cabs in the feedback link, which makes me think the Terminal didn't actually crash during the feedback hub recording.

Maybe it just got updated, and force-closed by the Store? Does this still repro for you on 1.8.1521.0?

@zadjii-msft zadjii-msft added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jul 6, 2021
@jhakeinson
Copy link
Author

Thanks for responding @zadjii-msft.

I'm sure that the Terminal is not in the middle of updating when this issue happened. And it happened multiple times randomly (mostly when I'm using my WSL Ubuntu distro). I already tried the following but with no luck:

  • Uninstall and reinstall Windows Terminal
  • Uninstall and reinstall my WSL distro.
  • I set the "Profile termination behavior" options of my Ubuntu profile to "Never automatically terminate".

I'm not really sure how to reproduce this issue because it happens randomly. I'm not sure what triggers it.

@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 Jul 6, 2021
@zadjii-msft
Copy link
Member

Weird. Well, without a consistent repro, or a stack trace, or something, I'm not sure what we can do with this. If you've got windbg installed, you could maybe collect a dump with "post-mortem debugging". Otherwise I'm not sure how to get something actionable here 😕

@zadjii-msft zadjii-msft added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Jul 6, 2021
@jhakeinson
Copy link
Author

Thanks. I will try to repro the issue later with windbg or other debug tools that I can find and send the details here.

@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 Jul 6, 2021
@zadjii-msft zadjii-msft added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Jul 6, 2021
@jhakeinson
Copy link
Author

@zadjii-msft Sorry for the late follow-up for the additional details on this issue.

I tried reproducing the bug and I used Feedback Hub to record everything. Please check this Feedback Hub link:

https://aka.ms/AAd1c6q

Thank you.

@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 Jul 9, 2021
@FurmanSK
Copy link

I've had this happen twice now. I believe I'm using the one from MS store. The programs are still running though and I'm not sure if there's a way to get back to their output without using task manager to close them and restart them. Any more updates on this?

@zadjii-msft
Copy link
Member

@FurmanSK You're probably looking for #9914.

I've looked high and low for the crash reported by OP here, and unfortunately, I think it's just lost to the backend. I'm not sure it ever got plumbed all the way through, for whatever reason. If this is still happening, could you try following the steps in this post to set up automatic crash dumps? If that works, then you should be able to automatically get a .dmp of the terminal when it crashes. Then, can you zip that dump up and send it to us, so we can investigate? Thanks!

@zadjii-msft zadjii-msft added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Nov 2, 2021
@ghost ghost added the No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. label Nov 6, 2021
@ghost
Copy link

ghost commented Nov 6, 2021

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@pif17
Copy link

pif17 commented Nov 22, 2024

3 years later, it's still a problem.
No error message, No error number, No stack trace, nothing to help user to have real informations to understand the problem.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. label Nov 22, 2024
@zadjii-msft
Copy link
Member

@pif17 Almost certainly, you got hit by #18119. We recently pushed an update. The Store probably killed the Terminal to install that update. We tried to ask the store to not do that, but alas, we didn't specify all the magic incantation to get the Store to not do that.

@pif17
Copy link

pif17 commented Nov 25, 2024

Thanks for your answer, you may have the good reason.
As simple user, loosing works without explanation is very frustrating.
As advanced user, discovering that is done because you don't have the hand on update and someone far away take you for a child, is very, let's says, disappointing.
As developer, it gives you a taste of unfinished work without plan to back to the original state after crash.
To finish, as embedded and OS developper, we just ask why don't Ms do something reliable with 2 versions of DLL or EXE loaded in memory, one updated, an other to keep software that use it alive. Waiting for a reload to update.
Your program is nice, it gives more eyes candies that command.com but make it just reliable please, don't let user think they don't do valuable work with uncontrollable update that kills days of work.
In a perfect world, every opened terminals must be conditions to stop every updates, including windows update, because someone do valuable work on his computer.

This issue was closed.
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-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Priority-1 A description (P1) Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests

5 participants