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 not running #2022

Closed
gwy15 opened this issue Jul 18, 2019 · 23 comments
Closed

Windows Terminal not running #2022

gwy15 opened this issue Jul 18, 2019 · 23 comments
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-Tag-Fix Doesn't match tag requirements Product-Terminal The new Windows Terminal. Severity-Crash Crashes are real bad news.

Comments

@gwy15
Copy link

gwy15 commented Jul 18, 2019

Environment

Windows build number: 10.0.18362.239
Windows Terminal version (if applicable): 0.2.1831.0

Steps to reproduce

  1. Install Windows Terminal from Microsoft Store.
  2. Click on the Windows Terminal icon from the start menu.
  3. Running wt.exe behaves identically.

Expected behavior

Windows Terminal shows its window.

Actual behavior

Nothing happens after two seconds of mouse cursor showing a loading status.

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Jul 18, 2019
@jthvedt
Copy link

jthvedt commented Jul 18, 2019

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.

@gwy15
Copy link
Author

gwy15 commented Jul 18, 2019

@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.

@thegreatco
Copy link

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

@jthvedt
Copy link

jthvedt commented Jul 18, 2019

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.

@jthvedt
Copy link

jthvedt commented Jul 18, 2019

@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.

@gwy15
Copy link
Author

gwy15 commented Jul 19, 2019

I had a look at the logs and I have the same report as @thegreatco .

@thegreatco
Copy link

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:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER58C4.tmp.mdmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER5971.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER5992.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER59A3.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER59D3.tmp.txt

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_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.

@DHowett-MSFT DHowett-MSFT added Severity-Crash Crashes are real bad news. Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Jul 20, 2019
@DHowett-MSFT
Copy link
Contributor

This seems similar to #1364. @thegreatco, is there a chance your "default profile" points to something that doesn't exist on this computer?

@DHowett-MSFT DHowett-MSFT added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jul 20, 2019
@gwy15
Copy link
Author

gwy15 commented Jul 20, 2019

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.

@ghost ghost 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 Jul 20, 2019
@fedelaport
Copy link

fedelaport commented Jul 21, 2019

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.

@erkattak
Copy link

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",

@thegreatco
Copy link

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.

@TheAndyMac
Copy link

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?

@gwy15
Copy link
Author

gwy15 commented Aug 10, 2019

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.

@gwy15 gwy15 closed this as completed Aug 10, 2019
@EricBuist
Copy link

Hi,
Is there a way to prevent synching this profile.json, which looks to me like the worst idea ever. The file depends on what is installed on the host computer so it should not be synched, or things in there that don't work on the host computer should trigger warnings at worst, not crash the terminal without any form of clue. I cannot spend my time deleting that file (and finding it) and then trying to figure out again the tweaks I did in there to have a block cursor, disable the annoying beep, add a tab pointing at my SSH server, etc. It was working yesterday and all of a sudden, I cannot start the Windows Terminal. That problem WILL occur again, again and again, if I just recreate that profile.json file. Having to remove profile.json (and search for it, it is really non-obvious to find), is not a fix.

@zadjii-msft
Copy link
Member

@EricBuist We stopped syncing profiles.json like, nearly two years ago. We also don't migrate settings from the old roamed location to settings.json anymore.

If you're experiencing a new crash on launch, then it's probably some totally new scenario. Could you follow up in a new thread, so we can track your issue specifically? Thanks!

@gemini88mill
Copy link

Hey All ran into the exact same issue and realized that I didn't even have a profiles.json. I ended up going into "Add or Remove Programs" and repairing Windows Terminal, fixed the problem for me.

@alibenmessaoud
Copy link

alibenmessaoud commented May 29, 2021

I am experiencing the same issue and WT stills always crashing even after restart, reinstall, and a new Windows update.

@etalian
Copy link

etalian commented May 29, 2021

Same here, fixed by "repairing". Even though this is the top search result now, I believe we are actually seeing #10211.

@DLX23
Copy link

DLX23 commented May 30, 2021

Now, same Problem here. "Repairing" and "reset" dont help.

Name der fehlerhaften Anwendung: WindowsTerminal.exe, Version: 1.8.2105.24004, Zeitstempel: 0x60ac2e94 Name des fehlerhaften Moduls: ucrtbase.dll, Version: 10.0.19041.789, Zeitstempel: 0x2bd748bf Ausnahmecode: 0xc0000409 Fehleroffset: 0x000000000007286e ID des fehlerhaften Prozesses: 0x9858 Startzeit der fehlerhaften Anwendung: 0x01d7552ffe6e2922 Pfad der fehlerhaften Anwendung: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.8.1444.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe Pfad des fehlerhaften Moduls: C:\WINDOWS\System32\ucrtbase.dll Berichtskennung: c1016986-f7c6-4cde-8f0d-669bdea6c357 Vollständiger Name des fehlerhaften Pakets: Microsoft.WindowsTerminal_1.8.1444.0_x64__8wekyb3d8bbwe Anwendungs-ID, die relativ zum fehlerhaften Paket ist: App

Complete uninstall and reinstall helped

@annahri
Copy link

annahri commented May 31, 2021

Fixed this by repairing it via Add or remove programs.

@uberubert
Copy link

There is no "Repair" option in the "Apps and features" screen, only "Move" and "Uninstall". I clicked "Uninstall" thinking maybe there would be the familiar wizard popping up that would give me options other than uninstalling. It got uninstalled without further prompts.

It seems to be back and starting after reinstalling.

@alanaasmaa
Copy link

@uberubert The "Repair" option is under "Advanced options"
image

Worked for me.

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-Tag-Fix Doesn't match tag requirements Product-Terminal The new Windows Terminal. Severity-Crash Crashes are real bad news.
Projects
None yet
Development

No branches or pull requests