terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Terminal crashes on launch - no error in Event Viewer

Open dgweller opened this issue 7 years ago • 18 comments

Environment

Windows build number: 10.0.18965.0 (fast ring - 190816-1722) Windows Terminal version (if applicable): updated today (23 Aug) using choco GPU: GTX 1070 with dual 4k moniitors driven via DVI. Drivers up to date. x64 architecture (AMD Ryzen, FWIW)

Steps to reproduce

Installed from MS store launching results in an empty window border showing (less than 1 sec) and terminating Updated to latest version using Chocolatey Same results See #1364 for appropriate image of what I observe

Expected behavior

Working terminal window

Actual behavior

wt.exe fails to launch

Additional Data

  • I reviewed #1364 with no obvious corrective action to take, even though the bug appears to be identical. Since that bug is closed, I am recommending reopening, unless there is an obvious corrective action I failed to read.
  • Windows Event Viewer did NOT show any errors
  • I have not attempted to create my own build
  • (Added Aug 26) The same issue happens whether or not Event Viewer is running.
  • Perhaps relevant: I installed WSL 2 prior to installing Windows Terminal Preview

dgweller avatar Aug 24 '19 14:08 dgweller

@dgweller, I would say that this is very similar to #1954. Just out of curiosity, have you tried to launch WT after launching some other applications? for example Event Viewer and the WT...

angelog0 avatar Aug 26 '19 07:08 angelog0

Looks similar, but not same.

dgweller avatar Aug 27 '19 00:08 dgweller

Link to Feedback to Windows team (https://aka.ms/AA5wtl6 )

dgweller avatar Aug 27 '19 00:08 dgweller

Maybe check if 'powershell.exe' is included in the environment variables. When PowerShell is set as the default profile while 'powershell.exe' is not found by the system, Terminal may just crash.

madcpt avatar Aug 27 '19 02:08 madcpt

I use Powershell almost exclusively (when not using bash, which reminds me I need to edit the additional data in my issue).

dgweller avatar Aug 27 '19 11:08 dgweller

@dgweller, I used PowerShell a lot too, but still 'powershell.exe' was not included in my Environment Variables. You can try using 'powershell' in cmd.exe to check if it is correctly recognized. Anyway, it solved my problem (which is very similar to yours in your description), so maybe it's worth a shot.

madcpt avatar Aug 27 '19 15:08 madcpt

I was having the problem but the solution was the exact opposite as yours. My computer reset itself and the default shell was pwsh. Once I reinstalled PowershellCore terminal opened without issue.

pfeurean avatar Aug 27 '19 22:08 pfeurean

Would you mind sharing your profiles.json?

DHowett-MSFT avatar Sep 03 '19 02:09 DHowett-MSFT

Sorry for not responding sooner. Can you tell me where profiles.json is located? It is not in C:\Users<username>\AppData\Local\Microsoft\WindowsApps

dgweller avatar Sep 03 '19 22:09 dgweller

It'll be in %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState

DHowett-MSFT avatar Sep 04 '19 01:09 DHowett-MSFT

It'll be in %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState

The only file there is wt.exe

dgweller avatar Sep 04 '19 04:09 dgweller

That's the only file in %LOCALAPPDATA%\Microsoft\WindowsApps\Microsoft.WindowsTerminal_8wekyb3d8bbwe. I'm talking about %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState (Microsoft\WindowsApps -> Packages).

DHowett-MSFT avatar Sep 04 '19 04:09 DHowett-MSFT

Doh! It would help to, you know, READ your instructions :) File attached. profiles.zip

dgweller avatar Sep 04 '19 04:09 dgweller

Would you mind listing the contents of C:\Program Files\PowerShell?

DHowett-MSFT avatar Sep 05 '19 21:09 DHowett-MSFT

here you go (short version: Only ps6 dir directly inside the ps dir - I included ./6 in this file) ps_dir.zip

dgweller avatar Sep 06 '19 13:09 dgweller

Your default profile specifies 7-preview ;)

DHowett-MSFT avatar Sep 06 '19 14:09 DHowett-MSFT

Just wanted to chime in and say that this is also occurring for me on a totally fresh install of Windows (1903, 18362.329) and using the current Store release. Powershell is my default shell and %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\ is on my PATH. I have not installed PSCore yet and so I have no C:\Program Files\PowerShell directory, and my profiles.json file is the default one you get through a Store installation.

alex-slover avatar Sep 07 '19 19:09 alex-slover

#2039 is related (for bookkeeping)

zadjii-msft avatar Sep 13 '19 21:09 zadjii-msft