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

Terminal crashes on launch - no error in Event Viewer #2535

Closed
dgweller opened this issue Aug 24, 2019 · 18 comments
Closed

Terminal crashes on launch - no error in Event Viewer #2535

dgweller opened this issue Aug 24, 2019 · 18 comments
Labels
Area-Quality Stability, Performance, Etc. Area-User Interface Issues pertaining to the user interface of the Console or Terminal 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.
Milestone

Comments

@dgweller
Copy link

dgweller commented Aug 24, 2019

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 Terminal shows an empty window and then crashes #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
@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 Aug 24, 2019
@angelog0
Copy link

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

@dgweller
Copy link
Author

Looks similar, but not same.

@dgweller
Copy link
Author

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

@madcpt
Copy link

madcpt commented Aug 27, 2019

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.

@dgweller
Copy link
Author

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

@madcpt
Copy link

madcpt commented Aug 27, 2019

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

@pfeurean
Copy link

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.

@zadjii-msft zadjii-msft added Area-User Interface Issues pertaining to the user interface of the Console or Terminal Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal. Severity-Crash Crashes are real bad news. labels Aug 29, 2019
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Aug 29, 2019
@DHowett-MSFT
Copy link
Contributor

Would you mind sharing your profiles.json?

@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 Sep 3, 2019
@dgweller
Copy link
Author

dgweller commented Sep 3, 2019

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

@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 Sep 3, 2019
@DHowett-MSFT
Copy link
Contributor

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

@DHowett-MSFT DHowett-MSFT added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Sep 4, 2019
@dgweller
Copy link
Author

dgweller commented Sep 4, 2019

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

The only file there is wt.exe

@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 Sep 4, 2019
@DHowett-MSFT
Copy link
Contributor

DHowett-MSFT commented Sep 4, 2019

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

@dgweller
Copy link
Author

dgweller commented Sep 4, 2019

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

@DHowett-MSFT
Copy link
Contributor

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

@dgweller
Copy link
Author

dgweller commented Sep 6, 2019

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

@DHowett-MSFT
Copy link
Contributor

Your default profile specifies 7-preview ;)

@alex-slover
Copy link

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.

@bitcrazed bitcrazed removed the Severity-Crash Crashes are real bad news. label Sep 10, 2019
@bitcrazed bitcrazed added this to the Terminal-1909 milestone Sep 10, 2019
@bitcrazed bitcrazed added Severity-Crash Crashes are real bad news. Area-Quality Stability, Performance, Etc. Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Sep 12, 2019
@ghost ghost added the Needs-Tag-Fix Doesn't match tag requirements label Sep 13, 2019
@zadjii-msft
Copy link
Member

#2039 is related (for bookkeeping)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Quality Stability, Performance, Etc. Area-User Interface Issues pertaining to the user interface of the Console or Terminal 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

8 participants