-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
1.7.1033.0_x64 - running from command prompt crashes #9959
Comments
How did you install the Terminal? From |
I installed from the Microsoft Store. I did see the issue with scoop, we don't use that package manager in my organization though. |
Good to know - can you file a feedback with the Feedback Hub? That would help us diagnose the root cause /feedback |
You know, this might actually just be #9891. To copy-pasta:
You might be able to repair this easily by toggling the |
I just submitted the feedback. Unfortunately toggling the execution alias setting did not fix the issue. The same thing happens. |
Oh, can you share the link to the feedback? It should be an aka.ms link |
Sure thing. Here it is. https://aka.ms/AAc1s04 |
If this is related to my issue #9891 (which it looks like because for me the only reason why it worked in those locations was a shortcut I created myself), we just found a workaround for that issue over there. Make sure to copy your config beforehand, at least for me it now uses a different path. |
@kiriDevs I did try running the .msixbundle as well before opening this issue. Unfortunately that didn't help, the only way for me to successfully open the application is from the Start menu. |
This sounds a lot like #9452. Can you run through the repro steps in that bug report? I'd love to see what the ACLs are on your |
@DHowett I just added that information to the bug report. Including here as well for the community at large. Steps to reproduce
[PS] C:\Program Files> |
I don't think those are quite correct. Since your user has Full Control -- both your daily-use and admin user -- you can "see into" WindowsApps. This actually causes untold havoc on the app platform. It's a problem we're actively discussing with them! What happens is that:
Because you can see inside Because of #9821, that results in a crash for 1.7.1033 and 1.8.1032. Terminal won't be able to find its settings, because the OS didn't tell it "by the way, you're living inside the |
Here's what I get:
|
@DHowett, I went and restored my ACLs so they match what you shared. I am now able to launch wt.exe from cmd/posh, but only if I run as my logged in account. Opening PoSH/CMD with my admin account using Run As, and then trying to launch wt.exe I get "access denied". |
So! This is one of the unfortunate things about the version of Windows that's current. When you have a separate admin user (which we call "over-the-shoulder elevation"), an app package needs to be registered for both users. If you run "add-appxpackage -register path_to_windows_terminal\AppxManifest.xml" as the other user the Access Denied error should go away. |
I realize we're getting out of scope here, but I did try installing the app from the store under both my daily driver and my admin account. Still getting the same error. I ran the PoSH command you suggested and get this:
|
Hey so this thread got off the rails - what was the next action item here/? Did this get sorted out? It's been like a year. |
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. |
When attempting to run version 1.7.1033.0_x64 from either Command Prompt or PowerShell the application briefly opens a white window then immediately closes. In the Application event log I see the below entry. This does not occur when launching from the Start menu.
Faulting application name: WindowsTerminal.exe, version: 1.7.2104.13003, time stamp: 0x60761d23
Faulting module name: TerminalApp.dll, version: 1.7.2104.13003, time stamp: 0x60761c93
Exception code: 0xc0000005
Fault offset: 0x000000000000ee80
Faulting process id: 0x2530
Faulting application start time: 0x01d73ac0b411c259
Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.7.1033.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe
Faulting module path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.7.1033.0_x64__8wekyb3d8bbwe\TerminalApp.dll
Report Id: 80f4b689-8e8d-4d2e-8e3d-c59fa3dbaf5c
Faulting package full name:
Faulting package-relative application ID:
The text was updated successfully, but these errors were encountered: