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

Most commands fail silently #3297

Closed
hahn-kev opened this issue Jun 2, 2023 · 6 comments · Fixed by #3300
Closed

Most commands fail silently #3297

hahn-kev opened this issue Jun 2, 2023 · 6 comments · Fixed by #3300
Labels
In-PR Issue related to a PR Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Feedback-Hub Issue needs feedback hub report URL
Milestone

Comments

@hahn-kev
Copy link

hahn-kev commented Jun 2, 2023

Brief description of your issue

when running numerous commands. For example the following:

  • winget source update
  • winget search term
  • winget install PackageName

I get the following output or similar in the windows terminal:
image
not in the screenshot is that there's a spinner on the tab of the terminal still.

Steps to reproduce

On my machine I just need to run those commands, it works the same in my IDE and across powershell and cmd.

Expected behavior

the command should succeed or at least give me an error so I can resolve the error.

Actual behavior

the command fails silently, there's still a spinner there and the color in the terminal gets messed up, it's like the process just crashes

Environment

Windows Package Manager v1.4.11071

Windows: Windows.Desktop v10.0.22621.1702
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.11071.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

User Settings: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

source list:
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0
winget  https://cdn.winget.microsoft.com/cache

event log error:

Faulting application name: winget.exe, version: 1.19.2304.17001, time stamp: 0x643dcb8e
Faulting module name: msvcrt.dll, version: 7.0.22621.608, time stamp: 0xc4d8152c
Exception code: 0xc0000005
Fault offset: 0x0000000000079684
Faulting process id: 0x0x3CCC
Faulting application start time: 0x0x1D994FBEA20B88C
Faulting application path: C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.19.11071.0_x64__8wekyb3d8bbwe\winget.exe
Faulting module path: C:\WINDOWS\System32\msvcrt.dll
Report Id: 0d283143-f682-4d55-b23e-892b4838bd9f
Faulting package full name: Microsoft.DesktopAppInstaller_1.19.11071.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: winget
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Jun 2, 2023
@weeix
Copy link

weeix commented Jun 2, 2023

I can reproduce this issue as well.

image

Logs:

...
2023-06-02 13:41:30.431 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2023-06-02 13:41:30.431 [REPO] Default source requested, multiple sources available, adding all to source references.
2023-06-02 13:41:30.431 [REPO] Adding to source references msstore
2023-06-02 13:41:30.431 [REPO] Adding to source references winget
2023-06-02 13:41:30.431 [REPO] Source past auto update time [5 mins]; it has been at least 2785 mins

I was able to use WinGet without any problems 2 days ago (v1.4.10173).

  • WinGet, version [1.4.11071]
  • OS: Windows.Desktop v10.0.19045.2965
  • Package: Microsoft.DesktopAppInstaller v1.19.11071.0

@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Feedback-Hub Issue needs feedback hub report URL and removed Needs-Triage Issue need to be triaged labels Jun 2, 2023
@denelon
Copy link
Contributor

denelon commented Jun 2, 2023

Could someone submit a feedback hub report so we can get additional logs?
Run a command that fails this way in WinGet and then go to:
https://aka.ms/winget-feedback will launch feedback hub.
Share the link at the end so we can go straight to those logs please.

@denelon
Copy link
Contributor

denelon commented Jun 2, 2023

@hahn-kev is this resolved?

Two things were happening at the same time. We've resolved one of them (we needed to purge the cache), and this code should help for future problems.

@hahn-kev
Copy link
Author

hahn-kev commented Jun 3, 2023

This issue is resolved for me now. Sorry I can't submit feedback anymore since the problem is gone.

@khewweifeng
Copy link

Is this related ? #3303

@khewweifeng
Copy link

Could someone submit a feedback hub report so we can get additional logs? Run a command that fails this way in WinGet and then go to: https://aka.ms/winget-feedback will launch feedback hub. Share the link at the end so we can go straight to those logs please.

https://aka.ms/AAl1u6t like this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In-PR Issue related to a PR Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Feedback-Hub Issue needs feedback hub report URL
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants