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 crashes (Vanishes with no errors) when large font sizes are used #18182

Closed
feoh opened this issue Nov 12, 2024 · 9 comments
Closed
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 Product-Terminal The new Windows Terminal.

Comments

@feoh
Copy link

feoh commented Nov 12, 2024

Windows Terminal version

1.21.2911.0

Windows build number

10.0.22631.0

Other Software

The bug sometimes manifests when I'm running Neovim although it's also quite common from just the terminal itself, either in WSL2 running stock Ubuntu or in Powershell on the native Windows host side.

Steps to reproduce

Open Terminal. Hit Ctrl+ 5 times to boost font size to my ludicrously large default :)

Open a text based editor, stream some text to the terminal. I can't really pin down the behavior that triggers it very well or I'd take a screen recording.

This issue has happened in the past but was fixed and vanished for a while. I had previously been tracking it in #8730

Expected Behavior

I expect Terminal not to just vanish taking my editing session, command session or whatever else I'm working on with it. This is the worst kind of failure in a terminal program IMO.

Even if it just hard crashed I could maybe at least just copy what my current state was, vanishing without a trace is tough.

Actual Behavior

Terminal vanishes with no error in mid stream, sometimes while typing, sometimes while displaying streamed text.

@feoh feoh 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 Nov 12, 2024
@carlos-zamora carlos-zamora added the Product-Terminal The new Windows Terminal. label Nov 20, 2024
@carlos-zamora
Copy link
Member

Thanks for filing! Could you please capture a dump file using this guide /? https://github.com/microsoft/terminal/wiki/Troubleshooting-Tips#capture-automatically

@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 Nov 20, 2024
@feoh
Copy link
Author

feoh commented Nov 20, 2024

Happy to. It's frustratingly irregular, it won't happen for a while, and then the window will vanish very shortly after opening a new tab.

Thanks for taking a look!

@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 Nov 20, 2024
@DHowett
Copy link
Member

DHowett commented Nov 20, 2024

If you have any historical entries in your Event Viewer for this crash, that may help too! :)

@DHowett DHowett 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 20, 2024
@feoh
Copy link
Author

feoh commented Nov 20, 2024

@DHowett Any clues for the clueless around what I'd be searching for? Pardon I'm a bit Event Viewer clueless.

Thanks so much again for taking a look.

@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 Nov 20, 2024
@feoh
Copy link
Author

feoh commented Dec 3, 2024

It just happened again and no new dumps appeared.

I wish I had a way to make it repro consistently. Worst bug report ever :(

@lhecker
Copy link
Member

lhecker commented Dec 4, 2024

Any clues for the clueless around what I'd be searching for? Pardon I'm a bit Event Viewer clueless.

Sorry for not responding earlier. When an application crashes it should look like this:
Image

It seems we haven't mentioned it yet, but please ensure you're using the very latest GPU drivers, straight from the Intel/AMD/Nvidia website. (If you don't know where to find them, let me know what GPU you're using and I'll find it for you.)

@carlos-zamora carlos-zamora 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 Dec 4, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. label Dec 9, 2024
@feoh
Copy link
Author

feoh commented Dec 9, 2024

After some significant local testing I've determined that the problem was actually a corrupted Ubuntu 20.04 image that was causing the crash.

Sorry about the mis-identified bug folks and thank you for your time and attention! Windows Terminal and the new console host are amazing!

@feoh feoh closed this as completed Dec 9, 2024
@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 No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. labels Dec 9, 2024
@DHowett
Copy link
Member

DHowett commented Dec 9, 2024

Wow! I'm not sure how that all fit together, but thank you so much for root causing it and coming back to tell us! 🙂

@feoh
Copy link
Author

feoh commented Dec 10, 2024

Absolutely.

My reasoning:

  • I noticed that the vanishing window ONLY happened when I was trying to use my Ubuntu 20.04 WSL2 distro
  • I had the idea to try and see if the failure happened when I invoked the distro from the Powershell wsl command, which it did. So I could run wsl -d Ubuntu-20.04 or similar, and after a couple of command line invocations the WSL session would terminate and I'd be back in Powershell.
  • Given the above, I was reasonably sure the distro was faulty. So I blew it away completely and re-installed from scratch (This is a special purpose distro I'm only using to work on OpenEdX legacy issues so no harm done)
  • The issue stopped recurring after nuke & pave

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 Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests

4 participants