-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
winget silent termination/exit: no stdout/stderror output, 0 output #5098
Comments
Unspecified error - that's so useful |
C:__w\1\s\external\pkg\src\AppInstallerCommonCore\Settings.cpp(309)\WindowsPackageManager.dll!00007FF90025E6F3: (caller: 00007FF9002897D4) Exception(1) tid(22d0) 800F024B The hash for the file is not present in the specified catalog file. The file is likely corrupt or the victim of tampering. |
What are you trying to do? In looking at the screenshot, running winget.exe without any arguments the client would return with an error as opposed to a "0" success, but it would provide the default "--help" output. The second instance of running winget has no command, but the "--version" argument should provide the current installed version. The third instance shows passing "--config" as an argument, but that is not a supported argument. |
Thank you, but what exactly are you trying to say? As you can see, its silently crashing without any output, at this point it doesn't matter what I want to do - because it's not executing any command, just outputs a warning if a non-existing option/flag is used. Is that a normal behavior? |
So, some obfuscated AppInstaller check fails, with the usual obfuscation and silently craps out, which, in terms craps out winget- but it does so in the same fashion. It starting to be a habit of MS hyadra-oss to be intertwined with not-oss, but poisoning the overall stack with the usual behavior. |
If there is any error, winget generally reports it.
So it is failing while reading one of the secure settings. I'm not familiar with that part of the code so I would have to do some digging. @yao-msft / @JohnMcPMS do you know what this error means? I can't help but notice that you're running winget.exe directly from a directory. How did you set that up? |
For why there is no error message for this: At the top level, right after we parse the command line argument (things work up to this point), we do some argument validation. The argument validation checks that none of the arguments is blocked by admin settings, which of course requires instantiating the admin settings. |
What happens if you run |
Brief description of your issue
No error or any kind of feeback to the user.
Is Winget going the MS usual style of meaningful feedback?
Steps to reproduce
Winget doesnt output any useful information and just exits without anything.
Expected behavior
I want to have some meaningful error message, not the usual Windows behaviour where processes exit without any kind of output or with some useless 0x0800RANDOM code - the usual
Actual behavior
Environment
The text was updated successfully, but these errors were encountered: