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 crashes immmediately when launched from Win+X menu #13108

Closed
notis58 opened this issue May 15, 2022 · 24 comments
Closed

Windows Terminal crashes immmediately when launched from Win+X menu #13108

notis58 opened this issue May 15, 2022 · 24 comments
Labels
Culprit-Centennial Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Repro We can't figure out how to make this happen. Please help find a simplified repro. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@notis58
Copy link

notis58 commented May 15, 2022

Windows Terminal and Windows Terminal (Admin) crash immmediately when launched from Win+X menu.
It will also crash if wt.exe is started from the Win+R menu.

It starts normally from the Explorer context menu and from the Start menu/All apps.
wt.exe starts also form the Task Manager, but only as administrator.

I have tried all fixes I found: Repair, Reset in settings, Uninstall and reinstall from Microsoft Store, toggle the App execution aliases.

Nothing worked.

My Windows specification:

Edition Windows 11 Pro
Version 21H2
Installed on ‎5/‎13/‎2022
OS build 22000.675
Experience Windows Feature Experience Pack 1000.22000.675.0

Windows Terninal Version: 1.12.10983.0

@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 May 15, 2022
@zadjii-msft
Copy link
Member

Does it open and then exit immediately, or does it straight up just not launch at all? Could you repro this with the Feedback Hub? That might catch whatever error is happening on launch.

/feedback

@ghost
Copy link

ghost commented May 16, 2022

Hi there!

Can you please send us feedback with the Feedback Hub with this issue? Make sure to click the "Start recording" button, then reproduce the issue before submitting the feedback. Once it's submitted, paste the link here so we can more easily find your crash information on the back end?

Thanks!

image

image

image

@ghost ghost added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label May 16, 2022
@notis58
Copy link
Author

notis58 commented May 16, 2022

Here ist the link from the recording in th e feedback hub:
https://aka.ms/AAgxcoo

@zadjii-msft: It opens and exits immediately. I see it does open in the task manager

@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 May 16, 2022
@notis58
Copy link
Author

notis58 commented May 28, 2022

Any update on this?

@AlifianK
Copy link

AlifianK commented Jun 4, 2022

Hi, I have the same issue with this.

https://aka.ms/AAh47m0

@qihs97
Copy link

qihs97 commented Jun 21, 2022

I met the same problem, did you solve it?

@notis58
Copy link
Author

notis58 commented Jun 21, 2022

I met the same problem, did you solve it?

No, unortunately not. It's up to the developers to solve it and it seems no one is dealing with it.

@zadjii-msft
Copy link
Member

  • registry seems to have the right guids for defterm to work with terminal stable.
  • dmp only included three conhosts, which had nothing useful in them. Three threads, but no crashes in there.
  • etl log had nothing interesting. Two TerminalApp launches, that both hit three 0x80070005 access denied's, but those had no line number, or anything else interesting. They seemed to bubble up to the windowsterminal.exe layer, as well.
  • two different conhost buckets: 15cdd140-8a18-37f0-9565-7514747b3463 and ffe8b5db-bcc5-7941-75b1-ed66cb4bbdbe, these are both useless conhost!unknown buckets that don't actually capture that something went wrong.
  • actually all three conhosts look like they were started to service some other commandline application, and not related to the Terminal at all.

There's unfortunately basically nothing to go on here 😕

Did Terminal 1.12 / 1.11 / 1.10 work? Does manually uninstalling the Terminal, and manually installing an older version like 1.11 seem to fix it?

We don't really own the win+x menu shortcut, so you might need to file feedback on
image

to try and sort out what's going on here.

@zadjii-msft zadjii-msft added Needs-Repro We can't figure out how to make this happen. Please help find a simplified repro. Culprit-Centennial and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Jun 21, 2022
@notis58
Copy link
Author

notis58 commented Jun 23, 2022 via email

@zadjii-msft
Copy link
Member

Hmm, that sounds like a riff on #13197

@notis58
Copy link
Author

notis58 commented Jun 23, 2022 via email

@lhecker
Copy link
Member

lhecker commented Jul 7, 2022

I believe this was fixed as part of #13193.
/dup #13193

@ghost
Copy link

ghost commented Jul 7, 2022

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost ghost closed this as completed Jul 7, 2022
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed 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 Needs-Repro We can't figure out how to make this happen. Please help find a simplified repro. labels Jul 7, 2022
@notis58
Copy link
Author

notis58 commented Jul 8, 2022 via email

@lhecker lhecker reopened this Jul 8, 2022
@lhecker lhecker added Needs-Repro We can't figure out how to make this happen. Please help find a simplified repro. 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 and removed Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. labels Jul 8, 2022
@notis58
Copy link
Author

notis58 commented Jul 8, 2022

After lhecker's comment my issue was closed
I had the (obviously wrong) impression that an issue is closed after the solution is checked. Apparently not.

I checked #13193 and installed Windows Terminal Preview v1.15.186

Now everything is messed up

Windows Terminal will not start and returns an error

image

This is mentioned in #7081 but there seems to be no solution there

I uninstalled the preview version but the issue persists

How do I fix the new issue now?

@DHowett
Copy link
Member

DHowett commented Jul 8, 2022

Can you try to "Repair" the installation of Windows Terminal in the "Apps and Features" control panel? 0xC0000022 is an error originating from the application platform, which is unfortunately just as mystifying to us as it is to the general public.

@notis58
Copy link
Author

notis58 commented Jul 8, 2022

I have already tried repairing and resetting Windows Terminal
Nothing worked

@AlifianK
Copy link

AlifianK commented Jul 15, 2022

Updating to v1.14.186 fixed the Win+X problem for me, but still the same with Win+R. Terminal refuses to open with no crash dialogue.

@zadjii-msft
Copy link
Member

Can you run:

  • conhost -- cmd.exe /k where wt & path

for me, from the run dialog (win+r)/? Try it both as admin and not, that should get a read on what's diffent between the two. I'm hoping that you're just missing %localappdata%\Microsoft\WindowsApps from your PATH, which is why it seems like it won't launch.

@ghost ghost added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. labels Jul 28, 2022
@ghost
Copy link

ghost commented Aug 1, 2022

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@notis58
Copy link
Author

notis58 commented Aug 2, 2022

Can you run:

  • conhost -- cmd.exe /k where wt & path

for me, from the run dialog (win+r)/? Try it both as admin and not, that should get a read on what's diffent between the two. I'm hoping that you're just missing %localappdata%\Microsoft\WindowsApps from your PATH, which is why it seems like it won't launch.
It's not missing:
run as admin

C:\Users\Notis\AppData\Local\Microsoft\WindowsApps\wt.exe PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\PowerShell\7\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\Notis\AppData\Local\Microsoft\WindowsApps

run not admin

C:\Users\Notis\AppData\Local\Microsoft\WindowsApps\wt.exe PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\PowerShell\7\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\Notis\AppData\Local\Microsoft\WindowsApps

The Win+X issue is resolved after the last Windows update, but the Win+R issue remains. If run as admin, it asks for confirmation and then nothing. Strangely enough, when started from Win+R it tries to open wt.exe in %programfiles%\WindowsApps\Microsoft.WindowsTerminal_1.14.1963.0_x64__8wekyb3d8bbwe, which is not in my PATH

@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 No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. labels Aug 2, 2022
@saifsiddiquee
Copy link

saifsiddiquee commented Nov 1, 2022

Go to Settings->Apps->Installed Apps->Terminal>Advanced option.
Then repair and reset. It worked for me.

terminal

If it does not work, you can uninstall terminal and install again from the windows store.

@zadjii-msft
Copy link
Member

Any chance this is fixed in https://github.com/microsoft/terminal/releases/tag/v1.16.10261.0/? This might have been the elevate:true crash, in retrospect.

@microsoft-github-policy-service microsoft-github-policy-service bot 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 Feb 8, 2023
@notis58
Copy link
Author

notis58 commented Feb 9, 2023

Any chance this is fixed in https://github.com/microsoft/terminal/releases/tag/v1.16.10261.0/? This might have been the elevate:true crash, in retrospect.

It's fixed!
Terminal starts normally using Win+X and running wt.exe from Win+R
Both as admin and normal user

@notis58 notis58 closed this as completed Feb 9, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot 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 Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Culprit-Centennial Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Repro We can't figure out how to make this happen. Please help find a simplified repro. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

7 participants