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 does not start -> errors in console and GUI (Dialog with "Wrong parameter") #14368

Open
torric opened this issue Nov 10, 2022 · 7 comments
Labels
Culprit-Centennial Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Tag-Fix Doesn't match tag requirements Priority-3 A description (P3) Product-Terminal The new Windows Terminal.
Milestone

Comments

@torric
Copy link

torric commented Nov 10, 2022

Windows Terminal version

1.15.2874.0

Windows build number

10.0.19044.2251

Other Software

No response

Steps to reproduce

I have installed Windows Terminal with winget successfully.
winget install Microsoft.WindowsTerminal

Try to start Windows Terminal from start menu or from console with wt.

Alias for app execution is set for Terminal / wt.exe.

Expected Behavior

Windows Terminal opens.

Actual Behavior

Click on Terminal in start menu -> Nothing happens

Normal user:

  • Powershell: wt
ResourceUnavailable: Program 'wt.exe' failed to run: An error occurred trying to start process 'C:\Users\<username>\AppData\Local\Microsoft\WindowsApps\wt.exe' with working directory 'C:\Users\<username>'. Falscher Parameter.At line:1 char:1
+ wt
+ ~~.

Admin:

  • Powershell: wt
Fehler beim Ausführen des Programms "wt.exe": Falscher ParameterIn Zeile:1 Zeichen:1
+ wt
+ ~~.
In Zeile:1 Zeichen:1
+ wt
+ ~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

Normal user or Admin: Starting from

C:\Users\<username>\AppData\Local\Microsoft\WindowsApps\wt.exe

→ Dialog: "Falscher Parameter" (= Wrong parameter)

I have done a Windows 10 21H2 inplace upgrade and reinstalled Windows Terminal afterwards. Did not help.

@torric torric added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Nov 10, 2022
@zadjii-msft
Copy link
Member

Hmm. You're on 1.15.2874, so you've already got the fix for #14104.

We might need an app launch trace, to forward to the MSIX activation folks to take a look. I don't recall what that path is off the top of my head, something like "app activation" (instead of "terminal", which the bot is about to recommend): /feedback

@ghost
Copy link

ghost commented Nov 11, 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 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 Nov 11, 2022
@ghost
Copy link

ghost commented Nov 15, 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.

@ghost ghost closed this as completed Nov 18, 2022
@torric
Copy link
Author

torric commented Nov 20, 2022

The Feedback Hub is deactivated on my PC.
I can start the Windows Terminal app when I assign read and execution right to the folder "C:\Program Files\WindowsApps" for the specific administrator and non-administrator user and inherit them to sub folders.

I have the following findings for both users:

  1. Starting link "Terminal" from start menu does not work.
  2. Starting from start menu by typing "wt" works.
  3. Starting from cmd or PowerShell with "wt" does not work.
  4. Starting from an alternative file explorer by "wt" works.

It seems to have to do with the rights settings. The assigned groups (administrators, users) are not enough.

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

when I assign read and execution right to the folder "C:\Program Files\WindowsApps

Do NOT mess with WindowsApps. Last time someone was messing with those on this repo, they had to reinstall Windows. Watch out.

I'm curious if the wt that's being launched is the same thing. I bet in one case, you're triggering the app execution alias, and in the other, you're running the actual binary (from WindowsApps, which should not be run directly).

You_ should be able to do a where wt in Command Prompt, but idk if you can do the same thing effectively from the Run Dialog, without somehow invoking CMD itself.

@zadjii-msft zadjii-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 Nov 21, 2022
@zadjii-msft zadjii-msft reopened this Nov 21, 2022
@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 Nov 23, 2022
@carlos-zamora carlos-zamora added Product-Terminal The new Windows Terminal. Priority-3 A description (P3) and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Attention The core contributors need to come back around and look at this ASAP. labels Dec 7, 2022
@ghost ghost added the Needs-Tag-Fix Doesn't match tag requirements label Dec 7, 2022
@carlos-zamora carlos-zamora added this to the Backlog milestone Dec 7, 2022
@goodbey857
Copy link

I had the same question, but now I solved it! The reason is that I moved the directory "%username%/AppData/LocalLow" to "D:/AppData/LocalLow" using a tool named "freemove" to save space on the C disk. This tool creates a symbolic link on "%username%/AppData/LocalLow" pointing to "D:/AppData/LocalLow." When I deleted the symbolic link, everything was repaired.

@xxnuo
Copy link

xxnuo commented Jan 7, 2024

I had the same question, but now I solved it! The reason is that I moved the directory "%username%/AppData/LocalLow" to "D:/AppData/LocalLow" using a tool named "freemove" to save space on the C disk. This tool creates a symbolic link on "%username%/AppData/LocalLow" pointing to "D:/AppData/LocalLow." When I deleted the symbolic link, everything was repaired.

I wish I had seen your reply this morning. I encountered the same situation. Here is what happened:

I installed a fresh copy of Windows 10 22H2 19045.3803 (I also tried LTSC 2021). I wanted to move the %APPDATA% directory to another disk where I store my personal data, so I created a symbolic link in safe mode:

MOVE C:\User\USERNAME\AppData\Roaming D:\Roaming
MKLINK /D C:\User\USERNAME\AppData\Roaming D:\Roaming

After rebooting, all the normal Win32 exe applications, pre-installed UWP applications, and Portable format Windows Terminal(wt) downloaded from the Release section worked fine.

When I used winget (I also tried msstore, with the same result) to install wt and nanazip, after the installation, launching wt from the Start menu showed an "Invalid parameter" error, and the same happened with nanazip. I noticed that they are both Win32 UWP Desktop Bridge applications.

So I started looking for the cause and restored the symbolic link directory:

RMDIR C:\User\USERNAME\AppData\Roaming
ROBOCOPY D:\Roaming C:\User\USERNAME\AppData\Roaming /MIR

After rebooting, everything was back to normal.

Therefore, I suspect that this issue may be related to a bug in the Desktop Bridge file API because other types of applications can open normally. I don't know where to report this issue, so I opened this issue hoping that Microsoft developers will take notice of this bug.

If someone encounters the same problem, I hope they can also take note of it and not spend as much time troubleshooting as I did. At first, I even thought it was a problem with the LTSC system, so I even reinstalled the system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Culprit-Centennial Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Tag-Fix Doesn't match tag requirements Priority-3 A description (P3) Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests

5 participants