-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
MEGATHREAD: Crashes in 1.8.1444 and 1.9.1445 #10305
Comments
Thanks for this post! On 1.8.1444.0 I had a similar issue and mitigation: my default profile used the consolas font, and so wt would load fine, but one of my profiles would crash the whole window. This profile was using Cascadia Mono.
|
+1 Repairing my install fixed the issue for me. (v1.8.1444.0) |
I having an issue with opening additional terminals. WSL terminal and 2 ssh terminals. Crashed on load. I repaired the install through "Windows Terminal App Settings". Fixed issue. (1.8.1444.0) |
Apologies, are there instructions on how to create/retrieve a dump/trace/feedback hub trace? I'm seeing regular crashes but they fall into the "Something Else" category. Cheers |
#10302 seems related, got a lot of crashes due to this |
ALL: 1.8.152 and 1.9.152 are rolling out through the store with some very pointed crash fixes for the common cases we've observed. We are hitting a huge issue in the MSIX distribution platform that messes up files in our package, but the changes we implemented in #10260 and #10238 should make this much more pleasant. If you continue to have issues, please please please keep filing feedback. It's so helpful because it's also the currency we can use to get other teams to fix their crap. 😄 @campbellkerr Sure, thanks for sticking with us! If you submit a feedback hub entry in the "Apps > Windows Terminal" category, then cause the crash while it is "Recording", then share the feedback link with us we'll get all the diagnostic info we can 😄 @hameno We're looking at that one; thanks for surfacing it! |
@DHowett I've started using the preview version (1.9) today and haven't had any crashes during my work day. Maybe it's already fixed in 1.9 - I'll keep monitoring |
@campbellkerr If you're more inclined to capture traces and dumps locally, grab the |
@DHowett I managed to record an ETL of it crashing (let me know if you want me to create a new issue?). ETL is here: I don't have Feedback Hub on this PC (work laptop) |
Was there another update of Windows Terminal around 10/5/2021? We are seeing large volume of feedback tickets about Visual Studio not able to use Cascadia font since 10/5. |
I see. Does Windows Terminal still update Cascadia.ttf? |
Terminal still contains Cascadia.ttf, but it does not update it. We have an internal thread going on this -- we should converge there 😄 |
never mind then 👍 |
Hey all,
We've been seeing an enormous amount of crashes in the initial 1.8 and 1.9 releases - far more than usual. Hopefully this thread will try and clear up some of the root causes, and provide workarounds while we're working on shipping the hotfix release.
This thread is a work-in-progress as we track the latest state of these crashes.
Crashes on launch
Root cause: There are two possible root causes here. They are fundamentally caused by the MSIX update leaving our package in a torn state, see #10243.
Cascadia.ttf
file is locked during the upgrade, but never properly updated to the newest version. On startup, we try to open the locked font file to establish how large the Terminal window should be. The error to load the font file causes the Terminal to crash entirely, instead of falling back to Consolas.ucrtbase.dll
stack frame north ofuser32!CreateWindowInternal
GetProposedDimensions
#10260TerminalApp.dll
, instead of the 1.9 one. We're working with the COM team to try and find out why this is, but if you're reading this, chances are this isn't what you're seeing.Mitigation
HKCU\Console\%%Startup
."fontFace": "Consolas"
to yourdefaults
underprofiles
in yoursettings.json
file.Window appears briefly, then closes immediately
READ: This might also just look like a crash! "Appears briefly" might just look like "closes instantaneously"
Root cause: In #10045, we thought it was a good idea to stop validating your
startingDirectory
's before spawning processes. In prior releases, we'd check that path exists, and fall back to%USERPROFILE%
if it didn't. Turns out, WSL can take a excessive amount of time to report if a path exists or not.As it also turns out, more people were relying on that silent fallback to
%USERPROFILE%
than we were expecting.Now, if you've got
"closeOnExit": "always"
in your settings, the Terminal will close instantly when it determines that it couldn't launch yourcommandline
in the givenstartingDirectory
.Mitigation
closeOnExit
to"closeOnExit": "graceful"
.startingDirectory
of your profile to an actual Windows path. Remember, it MUST be a Windows path, even for WSL profiles.~
is not a Windows path, even if PowerShell uses it as a shorthand for%USERPROFILE%
. WSL paths will need to use the//wsl$/{distro}/home/{wsl username}
format.Crashes when opening SUI
If you click on the "Settings" entry in the Terminal, and it crashes, this is the section for you.
Root cause: Some of the "default terminal emulator" code checks which packages are available to set as the default terminal. When it can't find any, it returns a default entry of just the vintage console host (which will always exist). We'll do this even the defterm setting isn't enabled on your build of Windows. Turns out that the API to get that list of packages doesn't entirely work right on older versions of Windows, so we'd fail early, and not even return conhost.
Mitigation
settings.json
file to edit your settings temporarily.Something else?
Seeing a crash that doesn't look like the above? Make sure to search for open issues that sound like what you're seeing, then feel free to open a new one.
Issues without any of the above will likely get closed with prejudice, as we're trying to deal with an exceptionally more active backlog this week. Thanks!
The text was updated successfully, but these errors were encountered: