-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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 attempts to start but then crashes without showing main window. #8358
Comments
Thanks. Unfortunately, I can't get the dumps from secure@microsoft.com. Would you mind sharing the same content with me? My Microsoft e-mail address is on my profile. Thank you. 😄 |
Hi Dustin, I cannot get the dump. I can only get the report file. The dumps
just don't get created or get deleted. I'll send it to you any way.
Have just sent it to you.
|
Thanks! Would you mind sharing your settings file? It's in It should be fine to paste in here or in a gist I managed to get a dump from your crash report (thank you for leaving crash reporting enabled!) that implicated settings handling, but it's been stripped of all fun and useful information 😄 |
Here you do @DHowett
|
Huh, alright. I'll need a bit to think about this. We added some new crash handlers in 1.4 that will make it easier to get information from these crashes, but I need some time to write up the instructions. We've never used them before! 😁 |
I don't know if it means anything but I'm using Oh My Posh and powershell is the the default shell I use. |
Alright, this is a long shot.
It should only contain information generated by Terminal, so it's fairly minimal. 😄 |
I apologize -- I just updated Terminal.wprp for something I forgot. |
Alright, so this is a really strange crash. Can you add |
Error info:
|
That worked. Thank you do much for you efforts and so quickly. So where would the font be :-D |
Ok I reinstalled the fonts. But it still doesn't work if I remove the |
The Untrusted Font Blocking policy setting comes to mind, but Windows Terminal appears to use DirectWrite rather than GDI, so I'm not sure the setting matters at all. |
Quick question -- can you run @KalleOlaviNiemitalo Good thinking! I gave blocking a shot but was unable to repro this, unfortunately. You're right that it doesn't seem to apply here 😄 |
Since we've isolated the issue to being DirectWrite-related (that error code is in the DWrite error namespace 😄), if you're feeling up to it I would love to get a DirectWrite ETL from you during the crash!
If I can't figure this one out, I'll forward it straight on to my friends over in DWrite. |
I have the same problem, and does not appear to be related to fontFace setting as described above. attempted resolution steps:
I am going to send you an etl file using your instructions above. TIA for your help! Update 6/27/21: 6 months later. still crashing, still not resolved. maybe different causes/mechanisms, but i'm not spending any more time triaging this stuff. it's a terminal program. #uninstall #cmd-works-for-me #bash-works-for-me. |
@DHowett I'm receiving the same crash as @PreetSangha. Adding the fontFace to every terminal I use fixed it for me. Of note:
For posterity:
I've emailed you the WER package. |
Thanks for this -- that is a really useful data point. |
If you're impacted by this after the 1.8 update, can you go into Settings > Applications > All Applications, choose Windows Terminal and then Repair? We've heard that this helps. |
@DHowett yep that worked! Thanks. |
Just ran into the same issue. Terminal was working fine yesterday, today it wouldn't launch. If I add |
@campbellkerr as a quick note your JSON was missing commas after the source property and before the fontFace property, which would have been an impact. |
I started experiencing this, but only on one profile on my machine. It still works perfectly on the other. I've tried the reset, repair, restoring the .backup profile, and even adding the default font consolas setting. Nothing works for me, it opens and crashes with the same MobEx error. It stopped working a few days ago, FWIW. It had worked perfectly fine up until then. |
Same here, working on Friday, not working on Monday, with similar event viewer details:
Repairing did help. |
This worked for me too. I added the |
If folks are coming to this thread after the update to 1.8.1444 or 1.9.1445 - the original issue in this thread probably isn't the root cause you're actually hitting right now. That's more likely #10211. That being said, they're both caused by the same thing - failing to open the font as we're creating the window, and then us throwing an exception instead of logging the error and letting font fallback do it's thing. @DHowett We never did get a solid repro on OP's issue, but I'm guessing that #10260 will fix this as well. Sanity check that? |
It should at least help. Failing to open the font because the app platform messed up our package is likely the “canary in the coal mine,” but we may be able to hobble along until the update is finished.
|
Restart, Reset, Repair and Uninstall/Reinstall did not work for me. But this instantly solved the problem. |
I randomly tried again today and it's working. I'm on version 1.8.1444.0. As per a comment in #10211 - I too did reboot my machine in between, so perhaps that is what it needed for the font to be recognized? Either way, it's sooo nice to have it back. I forgot how much of a PITA cmd.exe was compared to it. Nice job, folks. |
Same problem fixed by adding the |
Problem came back after I adjusted the font settings for cmd and WSL. Attached is the settings.json that are broken. Renaming it to .old, logging out, and then back in fixes it. |
Looking through this thread, the mitigation in #10260 should prevent this from happening in future builds. Of course, if it starts happening again, feel free to let us know. |
Environment
Steps to reproduce
I've just noticed this today. Whenever I start terminal (either by gui or wt command line - admin or not) Terminal shows an icon in the taskbar but then crashes without showing window. I was able to use windows terminal earlier this week with no problem. The issue happened on the version v1.3.2651.0, which is where I noticed the error. I did an upgrade to the current version to ensure I had the latest binaries.
Expected behavior
Windows Terminal should start normally
Actual behavior
Terminal shows an icon in the taskbar but then crashes without showing window.
Have uploaded the contents of
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_Microsoft.Window_9caf26d4a58d33ffb8b9fb72dfc83bbe1722d_b0038913_d0e460cc-ff68-4dae-8ee6-0df080fced91
to secure@microsoft.com referenceing this issue. I cannot find the other files listed in the above error log event. I've repeated this a few times an each time the other files are not present.The text was updated successfully, but these errors were encountered: