Terminal Hung and Crashed #20717

Closed
opened 2026-01-31 07:22:01 +00:00 by claunia · 10 comments
Owner

Originally created by @skanda890 on GitHub (Oct 23, 2023).

Windows Terminal version

1.18.2822.0

Windows build number

10.0.22621.2428

Other Software

No response

Steps to reproduce

Download and open this file: https://1drv.ms/u/s!Aqq-Je19xlrfhR-DZMD3v-q0uqvx?e=gdWnI5
Trust me it is safe.

Expected Behavior

It should load the file.

Actual Behavior

It hung and crashed.

Originally created by @skanda890 on GitHub (Oct 23, 2023). ### Windows Terminal version 1.18.2822.0 ### Windows build number 10.0.22621.2428 ### Other Software _No response_ ### Steps to reproduce Download and open this file: https://1drv.ms/u/s!Aqq-Je19xlrfhR-DZMD3v-q0uqvx?e=gdWnI5 Trust me it is safe. ### Expected Behavior It should load the file. ### Actual Behavior It hung and crashed.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 07:22:02 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Oct 23, 2023):

Trust me it is safe.

That's gonna be a nah from me dawg. Got a better way of repro'ing the issue than having me download a file off your onedrive?

Also, the Feedback Hub can actually record dumps for us: /feedback

Lastly, there's always the following the steps in https://github.com/microsoft/terminal/wiki/Troubleshooting-Tips#capture-automatically to get a post-mortem dump, then send us that to look at. Take your pick!

@zadjii-msft commented on GitHub (Oct 23, 2023): > Trust me it is safe. That's gonna be a nah from me dawg. Got a better way of repro'ing the issue than having me download a file off your onedrive? Also, the Feedback Hub can actually record dumps for us: /feedback Lastly, there's always the following the steps in https://github.com/microsoft/terminal/wiki/Troubleshooting-Tips#capture-automatically to get a post-mortem dump, then send us that to look at. Take your pick!
Author
Owner

@skanda890 commented on GitHub (Oct 23, 2023):

Feedback Link:
https://aka.ms/AAn6vi2

@skanda890 commented on GitHub (Oct 23, 2023): Feedback Link: https://aka.ms/AAn6vi2
Author
Owner

@elsaco commented on GitHub (Oct 23, 2023):

@skanda890 this is the content of the file Print+.py you posted on OneDrive:

print ("Hello, World")

o=9
i=9
p=98
p+i+o


and running it won't crash the terminal:

PS G:\Temp\onedrive> cat .\Print+.py
print ("Hello, World")

o=9
i=9
p=98
p+i+o

PS G:\Temp\onedrive> python .\Print+.py
Hello, World
PS G:\Temp\onedrive> python .\Print+.py
Hello, World
PS G:\Temp\onedrive> python .\Print+.py
Hello, World

Is this the file that hangs your terminal, or something is missing:

print+py

@elsaco commented on GitHub (Oct 23, 2023): @skanda890 this is the content of the file `Print+.py` you posted on OneDrive: ``` print ("Hello, World") o=9 i=9 p=98 p+i+o ``` and running it won't crash the terminal: ``` PS G:\Temp\onedrive> cat .\Print+.py print ("Hello, World") o=9 i=9 p=98 p+i+o PS G:\Temp\onedrive> python .\Print+.py Hello, World PS G:\Temp\onedrive> python .\Print+.py Hello, World PS G:\Temp\onedrive> python .\Print+.py Hello, World ``` Is this the file that hangs your terminal, or something is missing: ![print+py](https://github.com/microsoft/terminal/assets/3933920/35811da1-c580-4a68-b0d2-de63a72de9b0)
Author
Owner

@zadjii-msft commented on GitHub (Oct 23, 2023):

  • That feedback points at 4edb0d16-d70b-43ec-9be0-cecf58752fa5
  • points to g:6896174828363099
  • crashes:
    • MSFT:44758668 - looks like the same as the below:
    • MSFT:46783328 - APPLICATION_HANG_HungThreadIsIdle_cfffffff_WindowsTerminal.exe!WindowThread::_messagePump. This is usually the "the store killed us for an update"

Neither of those are what I'd expect here.

When you're "opening this file" - are you just double clicking it, or running it from the command-line?

@zadjii-msft commented on GitHub (Oct 23, 2023): * That feedback points at `4edb0d16-d70b-43ec-9be0-cecf58752fa5` * points to `g:6896174828363099` * crashes: * MSFT:44758668 - looks like the same as the below: * MSFT:46783328 - APPLICATION_HANG_HungThreadIsIdle_cfffffff_WindowsTerminal.exe!WindowThread::_messagePump. This is usually the "the store killed us for an update" Neither of those are what I'd expect here. When you're "opening this file" - are you just double clicking it, or running it from the command-line?
Author
Owner

@skanda890 commented on GitHub (Oct 24, 2023):

You will need to have 12 more applications open. Or if that doesn't hang and crash the terminal. I have a computer, it is very very old. So that may be the reason why the terminal hanging and crashing. Probably because it doesn't have much resources.

@skanda890 commented on GitHub (Oct 24, 2023): You will need to have 12 more applications open. Or if that doesn't hang and crash the terminal. I have a computer, it is very very old. So that may be the reason why the terminal hanging and crashing. Probably because it doesn't have much resources.
Author
Owner

@carlos-zamora commented on GitHub (Oct 24, 2023):

Could you capture a dump of Windows Terminal while it's hung using Task Manager? This'll give us a bit more information than what generally gets uploaded.

@carlos-zamora commented on GitHub (Oct 24, 2023): Could you capture a dump of Windows Terminal while it's hung using Task Manager? This'll give us a bit more information than what generally gets uploaded.
Author
Owner

@skanda890 commented on GitHub (Oct 25, 2023):

This only crashed once.

@skanda890 commented on GitHub (Oct 25, 2023): This only crashed once.
Author
Owner

@zadjii-msft commented on GitHub (Oct 25, 2023):

Okay - again, could you grab a dump while it's hung/? That'll let us actually see the stack that it's hung at to further diagnose this.

@zadjii-msft commented on GitHub (Oct 25, 2023): Okay - again, could you [grab a dump](https://github.com/microsoft/terminal/wiki/Troubleshooting-Tips#capture-with-task-manager) while it's hung/? That'll let us actually see the stack that it's hung at to further diagnose this.
Author
Owner

@skanda890 commented on GitHub (Oct 25, 2023):

Now it doesn't crash somehow.

@skanda890 commented on GitHub (Oct 25, 2023): Now it doesn't crash somehow.
Author
Owner

@skanda890 commented on GitHub (Oct 25, 2023):

When it was crashing, I downloaded it from the official Python website. Now I downloaded it from the 'Ninite' website was it because of that? Or did they fix the crash? If you know the reason for it to happen, then comment the reason, or if not then label this as "Resolution-No-Repro".

@skanda890 commented on GitHub (Oct 25, 2023): When it was crashing, I downloaded it from the official Python website. Now I downloaded it from the 'Ninite' website was it because of that? Or did they fix the crash? If you know the reason for it to happen, then comment the reason, or if not then label this as "Resolution-No-Repro".
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20717