Windows build number: 10.0.18362.239
Windows Terminal version (if applicable): 0.2.1831.0
Windows Terminal shows its window.
Nothing happens after two seconds of mouse cursor showing a loading status.
Have you tried deleting or renaming your profiles.json file? I was having that same problem. The applications event log showed "Exception code: 0xc0000409" and referenced ucrtbase.dll. I may have had a corrupt settings file; after I deleted profiles.json, Windows Terminal would run. It recreated a new profiles.json file. Of course, I lost a few trivial settings I had changed. If you've made changes, you probably want to make a backup to use for reference.
@jthvedt The thing is Windows Terminal haven't run even once on this PC so there's no profiles.json created. I used Everything to search for files named profiles.json or profile.json on this PC and none was found. So I guess it's not a corrupted config file.
BTW Can you tell me how do I access the application event log? Thanks a lot.
I'm having a similar issue albeit with a slightly different Windows version.
Edition: WIndows 10 Pro
Version: 1903
OS Build 18362.175
I've tried removing the application using Add/Remove Programs, it has never successfully run on this host.
From Application Event Log
Faulting application name: WindowsTerminal.exe, version: 1.0.1907.2001, time stamp: 0x5d1bd2d0
Faulting module name: ucrtbase.dll, version: 10.0.18362.1, time stamp: 0x5cbddb81
Exception code: 0xc0000409
Fault offset: 0x000000000006d3be
Faulting process id: 0x539c
Faulting application start time: 0x01d53d715cdee907
Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.2.1831.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report Id: c16952b6-1fb4-4b4b-9511-e6332b0f86fe
Faulting package full name: Microsoft.WindowsTerminal_0.2.1831.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: App
BTW Can you tell me how do I access the application event log? Thanks a lot.
Easiest way is type Win-S and search for "Event Viewer". In the left panel, expand the "Windows Logs" section and choose "Application". It sorts by date, so it'll be easiest to find the error if you try to run Window Terminal immediately before you open the Event Viewer.
@thegreatco - That's exactly the error I was getting in my event log. Removing the app did _not_ remove the profiles.json file for me; I had to delete that file manually.
I had a look at the logs and I have the same report as @thegreatco .
I am now upgraded to OS Build 18362.10005 and it is still failing to start. This is a freshly installed copy after the update to 10005.
Faulting application name: WindowsTerminal.exe, version: 1.0.1907.2001, time stamp: 0x5d1bd2d0
Faulting module name: ucrtbase.dll, version: 10.0.18362.1, time stamp: 0x5cbddb81
Exception code: 0xc0000409
Fault offset: 0x000000000006d3be
Faulting process id: 0x28c
Faulting application start time: 0x01d53e5d96827e9b
Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.2.1831.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report Id: 65231be6-67f6-4d16-8a0a-705ff3795fd7
Faulting package full name: Microsoft.WindowsTerminal_0.2.1831.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: App
```
Fault bucket 1713649042173444167, type 5
Event Name: MoBEX
Response: Not available
Cab Id: 0
Problem signature:
P1: Microsoft.WindowsTerminal_0.2.1831.0_x64__8wekyb3d8bbwe
P2: praid:App
P3: 1.0.1907.2001
P4: 5d1bd2d0
P5: ucrtbase.dll
P6: 10.0.18362.1
P7: 5cbddb81
P8: 000000000006d3be
P9: c0000409
P10: 0000000000000007
Attached files:
\?md5-dc2c8e01820fa3b1f6f58ff742bdabbeC:ProgramDataMicrosoftWindowsWERTempWER58C4.tmp.mdmp
\?md5-dc2c8e01820fa3b1f6f58ff742bdabbeC:ProgramDataMicrosoftWindowsWERTempWER5971.tmp.WERInternalMetadata.xml
\?md5-dc2c8e01820fa3b1f6f58ff742bdabbeC:ProgramDataMicrosoftWindowsWERTempWER5992.tmp.xml
\?md5-dc2c8e01820fa3b1f6f58ff742bdabbeC:ProgramDataMicrosoftWindowsWERTempWER59A3.tmp.csv
\?md5-dc2c8e01820fa3b1f6f58ff742bdabbeC:ProgramDataMicrosoftWindowsWERTempWER59D3.tmp.txt
These files may be available here:
\?md5-dc2c8e01820fa3b1f6f58ff742bdabbeC:ProgramDataMicrosoftWindowsWERReportArchiveAppCrash_Microsoft.Window_e2e3fa6c896198f1ea9ed1ce1e1cb6e78fc13_07ada22b_6c2d78f5-1793-49a2-ba93-def3371d502c
Analysis symbol:
Rechecking for solution: 0
Report Id: 65231be6-67f6-4d16-8a0a-705ff3795fd7
Report Status: 268435456
Hashed bucket: 0170e7cb87c40f84a7c81ab97c6fc047
Cab Guid: 0
````
I have a wer file if it would be helpful.
This seems similar to #1364. @thegreatco, is there a chance your "default profile" points to something that doesn't exist on this computer?
So it turns out Windows automatically syncs the profiles.json between different computers under your MS account. And it seems that if the synced profiles.json includes something that is not suitable for the host, e.g., a font not installed, the Windows Terminal crashes without giving any warnings or logs.
For my case, I manually entered the directory
%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\RoamingState and deleted the synced profiles.json from my laptop, which does exist but for some reason was not found in everything. The file included a font not installed on the crashing host. Then I re-ran the Windows Terminal and a default profiles.json was generated with which Windows Teminal worked fine.
I have two laptops. Installing from Windows Store works nice on the first laptop. Then, installing on the second laptop syncs the profiles.json. The file points to things that I don't have on the second laptop. WT crashes.
Update: A missing font (Ubuntu Mono) was the issue.
I have two machines as well. On one machine, I have Ubuntu. The other has Ubuntu-18.04. If I use WSL as the default profile, it will only run on one machine because:
"commandline": "wsl.exe -d Ubuntu-18.04",
is not the same as
"commandline": "wsl.exe -d Ubuntu",
I was missing a font. I deleted the profile.json, and it started up just fine. Then i slowly merged the old and new profile.json until something broke. Installed the font, problem solved.
Thank you! This fixed my install as well... had the same problem for weeks and only just found this solution - I had assumed that an Uninstall/Reinstall and/or a Reset of the app through the Windows App Settings would sort it out - maybe one easy fix to cope with profile "corruptions" would be to make sure the Windows App Settings "Reset" feature deletes the profile file?
For WT 0.3.2171.0, it seems that for a profiles.json with invalid font Windows Terminal will now fallback to a default font (seems like consolas to me) instead of crashing. For now I don't see any necessary to keep this issue open and I'm closing it.
But still, no warnings are raised to remind users to fix their profiles.json.
Most helpful comment
So it turns out Windows automatically syncs the
profiles.jsonbetween different computers under your MS account. And it seems that if the syncedprofiles.jsonincludes something that is not suitable for the host, e.g., a font not installed, the Windows Terminal crashes without giving any warnings or logs.For my case, I manually entered the directory
%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\RoamingStateand deleted the syncedprofiles.jsonfrom my laptop, which does exist but for some reason was not found in everything. The file included a font not installed on the crashing host. Then I re-ran the Windows Terminal and a default profiles.json was generated with which Windows Teminal worked fine.