Skip to content

winget list freezes #2104

Closed
Closed

Description

@awg43

Brief description of your issue

"winget list" freezes, although "winget search" works fine.

Steps to reproduce

winget list
Results in a "freezed window" (the cursor on the title bar keeps running but no result is produced)

winget list (window)

=================
Maybe useful information:

PS C:\Users\Albert> winget --info
Windows Package Manager v1.2.10271
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.613
Package: Microsoft.DesktopAppInstaller v1.17.10271.0

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

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

The (verbose) log result of the "winget list" command:

2022-04-19 12:47:03.926 [CORE] WinGet, version [1.2.10271], activity [{9B7A6F0D-3E1B-4F21-8996-BDE8D72387EF}]
2022-04-19 12:47:03.926 [CORE] OS: Windows.Desktop v10.0.22000.613
2022-04-19 12:47:03.926 [CORE] Command line Args: "C:\Users\Albert\AppData\Local\Microsoft\WindowsApps\winget.exe" list
2022-04-19 12:47:03.926 [CORE] Package: Microsoft.DesktopAppInstaller v1.17.10271.0
2022-04-19 12:47:03.926 [CORE] IsCOMCall:0; Caller: winget-cli
2022-04-19 12:47:03.931 [CLI ] WinGet invoked with arguments: 'list'
2022-04-19 12:47:03.931 [CLI ] Found subcommand: list
2022-04-19 12:47:03.931 [CLI ] Leaf command to execute: root:list
2022-04-19 12:47:03.931 [CLI ] Executing command: list
2022-04-19 12:47:03.933 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-04-19 12:47:03.933 [REPO] Default source requested, multiple sources available, adding all to source references.
2022-04-19 12:47:03.933 [REPO] Adding to source references msstore
2022-04-19 12:47:03.933 [REPO] Adding to source references winget
2022-04-19 12:47:03.934 [REPO] Source past auto update time [5 mins]; it has been at least 11 mins
2022-04-19 12:47:03.934 [REPO] Source past auto update time [5 mins]; it has been at least 11 mins
2022-04-19 12:47:05.057 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2022-04-19 12:47:05.057 [CORE] Found matching extension.
2022-04-19 12:47:05.060 [REPO] Remote source data was not newer than existing, no update needed
2022-04-19 12:47:05.068 [REPO] Multiple sources available, creating aggregated source.
2022-04-19 12:47:05.068 [REPO] Adding to aggregated source: msstore
2022-04-19 12:47:05.068 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2022-04-19 12:47:05.198 [REPO] Response status: 200
2022-04-19 12:47:05.199 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2022-04-19 12:47:05.256 [REPO] Response status: 200
2022-04-19 12:47:05.257 [REPO] Adding to aggregated source: winget
2022-04-19 12:47:05.264 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2022-04-19 12:47:05.264 [CORE] Found matching extension.
2022-04-19 12:47:05.287 [REPO] Opening SQLite Index for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2022.419.1128.537_neutral__8wekyb3d8bbwe\Public\index.db'
2022-04-19 12:47:05.287 [SQL ] Opening SQLite connection: 'file:/C:/Program Files/WindowsApps/Microsoft.Winget.Source_2022.419.1128.537_neutral__8wekyb3d8bbwe/Public/index.db?immutable=1' [1, 40]
2022-04-19 12:47:05.288 [REPO] Opened SQLite Index with version [1.3], last write [2022-04-19 12:28:13.000]
2022-04-19 12:47:05.564 [REPO] Creating PredefinedInstalledSource with filter [None]
2022-04-19 12:47:05.564 [REPO] Creating new SQLite Index [4294967295.4294967295] at ':memory:'
2022-04-19 12:47:05.564 [SQL ] Opening SQLite connection: ':memory:' [6, 0]
2022-04-19 12:47:05.613 [REPO] Examining ARP entries for Machine | X64
2022-04-19 12:47:05.648 [REPO] Examining ARP entries for Machine | X86
2022-04-19 12:47:05.667 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\Schema\1_0\Interface_1_0.cpp(184)\WindowsPackageManager.dll!00007FF9C71F2465: (caller: 00007FF9C71EEC83) Exception(1) tid(1ab0) 800700B7 Kan geen bestand maken dat al bestaat.

2022-04-19 12:47:05.668 [REPO] Ignoring duplicate ARP entry Machine|X86|xampp [XAMPP]
2022-04-19 12:47:05.691 [REPO] Examining ARP entries for User | X64

(By the way: i don't know why the preview shows some lines with in far larger font...)

Expected behavior

I expected to get a list of programs that are available on my machine.
That list would be 20 or more lines (how many lines is just what i want to know) from the 3280+
lines shown by the command "winget search".

Actual behavior

As described above.

Environment

PS C:\Users\Albert> winget --info
Windows Package Manager v1.2.10271
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.613
Package: Microsoft.DesktopAppInstaller v1.17.10271.0

Activity

  1. ghost added
    Needs-Triage
    on Apr 19, 2022
  2. added
    Issue-Bug
    and removed
    Needs-Triage
    on Apr 19, 2022
  3. jedieaston commented on Apr 19, 2022

    @jedieaston
    Contributor

    Just curious, does winget source reset --force fix this issue? It looks like there's a chance some of the sources could be corrupt. (Although it doesn't break until it checks your locally installed apps... weird.)

  4. awg43 commented on Apr 19, 2022

    @awg43
    Author

    Alas, i already tried it yesterday. Does not help.
    Any idea where i should/could do some searching?

  5. florelis commented on Apr 19, 2022

    @florelis
    Member

    awg43 This is not related to your issue but

    (By the way: i don't know why the preview shows some lines with in far larger font...)

    It's because of markdown. There are some lines that are just ===; these are marking the lines above as headers which show larger. You can prevent it by making all the logs show in monospaced font by surrounding them with three backticks ``` above and below.

  6. Trenly commented on Apr 19, 2022

    @Trenly
    Contributor

    I've seen this behavior in Windows sandbox occasionally, where the thread will appear to freeze. I've found that pressing Ctrl+C can cause the task to resume.

  7. awg43 commented on Apr 19, 2022

    @awg43
    Author

    I will keep the three backticks in mind. Thanks.
    Pressing Ctrl+C does not help. Thanks.

  8. awg43 commented on Apr 25, 2022

    @awg43
    Author

    To: denelon
    Thanks for adding this issue to the issues which may be solved by next release.
    Would any additional information help?

    Do you have any suggestion on how/where to "dig in my PC", trying to bypass this problem?

  9. denelon commented on May 6, 2022

    @denelon
    Collaborator

    awg43
    Milestones are aspirational, and I put all bugs in the next milestone. Most of them will not be completed in 1.3 and will be moved to 1.4.

    We do have some theories on what is causing this issue. We're suspecting it may have to do with localizing the names of packages in Windows Apps & Features, but there may be other things going on.

    Do you see the same problem if you search for a specific app?

    For example: winget list "App Installer"

  10. awg43 commented on May 6, 2022

    @awg43
    Author

    Demitrius Nelon (@denelon)
    First I updated to 7.2.3. Than used "winget reset source --force", than used "winget list". This resulted in
    winget source rest
    and again it freezes. Indeed this may caused by localization...

    I also tested searching for a specific app (having the app "Everything" installed):
    This resulted also in a freezed output:
    winget list everything

  11. 1 remaining item

  12. modified the milestones: v1.5-Client, on Apr 18, 2023
  13. PeithonKing commented on Sep 28, 2023

    @PeithonKing

    Did anyone succesfullly fix this issue? It still happens.

  14. Rev1k-Ej commented on Oct 4, 2023

    @Rev1k-Ej

    Aritra Mukhopadhyay (@PeithonKing) I had the same problem. Not sure if the cause of it the same, but still.

    For me, issue was that I had "World" selected as region in windows settings. After I changed it to something more specific (Germany, in my case), I was able to update "App-Installer" via MS Store and then Winget started to work again.

    For the record:
    Paket: Microsoft.DesktopAppInstaller v1.21.2721.0

  15. kcarvajalm commented on Oct 11, 2023

    @kcarvajalm

    i fixed with this

    imagen

  16. mcb2001 commented on Dec 1, 2023

    @mcb2001

    i fixed with this

    imagen

    I did an update in Microsoft Store instead and that fixed it

  17. danielniccoli commented on Jan 6, 2024

    @danielniccoli

    Same problem with a fresh install of Windows 11

    grafik

    2024-01-06 20:17:37.118 [CORE] WinGet, version [1.2.10691], activity [{D4B89E35-5925-4132-A214-A999EF0FED3A}]
    2024-01-06 20:17:37.118 [CORE] OS: Windows.Desktop v10.0.22631.2861
    2024-01-06 20:17:37.118 [CORE] Command line Args: winget  source reset --force
    2024-01-06 20:17:37.118 [CORE] Package: Microsoft.DesktopAppInstaller v1.17.10691.0
    2024-01-06 20:17:37.118 [CORE] IsCOMCall:0; Caller: winget-cli
    2024-01-06 20:17:37.121 [CLI ] WinGet invoked with arguments: 'source' 'reset' '--force'
    2024-01-06 20:17:37.121 [CLI ] Found subcommand: source
    2024-01-06 20:17:37.121 [CLI ] Found subcommand: reset
    2024-01-06 20:17:37.121 [CLI ] Leaf command to execute: root:source:reset
    2024-01-06 20:17:37.121 [CLI ] Executing command: reset
    2024-01-06 20:17:37.129 [CLI ] Leaf command succeeded: root:source:reset
    
    2024-01-06 20:18:11.289 [CORE] WinGet, version [1.2.10691], activity [{A5940056-85A5-4B35-BC37-234334C75FC4}]
    2024-01-06 20:18:11.289 [CORE] OS: Windows.Desktop v10.0.22631.2861
    2024-01-06 20:18:11.289 [CORE] Command line Args: winget  install --id Microsoft.Powershell --source winget
    2024-01-06 20:18:11.289 [CORE] Package: Microsoft.DesktopAppInstaller v1.17.10691.0
    2024-01-06 20:18:11.289 [CORE] IsCOMCall:0; Caller: winget-cli
    2024-01-06 20:18:11.294 [CLI ] WinGet invoked with arguments: 'install' '--id' 'Microsoft.Powershell' '--source' 'winget'
    2024-01-06 20:18:11.294 [CLI ] Found subcommand: install
    2024-01-06 20:18:11.294 [CLI ] Leaf command to execute: root:install
    2024-01-06 20:18:11.297 [CLI ] Executing command: install
    2024-01-06 20:18:11.302 [REPO] Named source requested, found: winget
    2024-01-06 20:18:11.303 [REPO] Source past auto update time [5 mins]; it has been at least 28409478 mins
    
    
  18. Trenly commented on Jan 6, 2024

    @Trenly
    Contributor

    Same problem with a fresh install of Windows 11

    grafik

    2024-01-06 20:17:37.118 [CORE] WinGet, version [1.2.10691], activity [{D4B89E35-5925-4132-A214-A999EF0FED3A}]
    2024-01-06 20:17:37.118 [CORE] OS: Windows.Desktop v10.0.22631.2861
    2024-01-06 20:17:37.118 [CORE] Command line Args: winget  source reset --force
    2024-01-06 20:17:37.118 [CORE] Package: Microsoft.DesktopAppInstaller v1.17.10691.0
    2024-01-06 20:17:37.118 [CORE] IsCOMCall:0; Caller: winget-cli
    2024-01-06 20:17:37.121 [CLI ] WinGet invoked with arguments: 'source' 'reset' '--force'
    2024-01-06 20:17:37.121 [CLI ] Found subcommand: source
    2024-01-06 20:17:37.121 [CLI ] Found subcommand: reset
    2024-01-06 20:17:37.121 [CLI ] Leaf command to execute: root:source:reset
    2024-01-06 20:17:37.121 [CLI ] Executing command: reset
    2024-01-06 20:17:37.129 [CLI ] Leaf command succeeded: root:source:reset
    
    2024-01-06 20:18:11.289 [CORE] WinGet, version [1.2.10691], activity [{A5940056-85A5-4B35-BC37-234334C75FC4}]
    2024-01-06 20:18:11.289 [CORE] OS: Windows.Desktop v10.0.22631.2861
    2024-01-06 20:18:11.289 [CORE] Command line Args: winget  install --id Microsoft.Powershell --source winget
    2024-01-06 20:18:11.289 [CORE] Package: Microsoft.DesktopAppInstaller v1.17.10691.0
    2024-01-06 20:18:11.289 [CORE] IsCOMCall:0; Caller: winget-cli
    2024-01-06 20:18:11.294 [CLI ] WinGet invoked with arguments: 'install' '--id' 'Microsoft.Powershell' '--source' 'winget'
    2024-01-06 20:18:11.294 [CLI ] Found subcommand: install
    2024-01-06 20:18:11.294 [CLI ] Leaf command to execute: root:install
    2024-01-06 20:18:11.297 [CLI ] Executing command: install
    2024-01-06 20:18:11.302 [REPO] Named source requested, found: winget
    2024-01-06 20:18:11.303 [REPO] Source past auto update time [5 mins]; it has been at least 28409478 mins
    

    You're using winget 1.2, and the CDN for that version has been deprecated. Try upgrading to 1.6 or 1.7-preview

  19. danielniccoli commented on Jan 9, 2024

    @danielniccoli

    Kaleb Luedtke (@Trenly) This helped, thank you. I was expecting -- because I just installed Windows 11 and it searched and installed updated during the installation phase -- that I would have an up-to-date systems. I didn't even think of checking if it was up to date.

  20. denelon commented on Mar 6, 2024

    @denelon
    Collaborator

    We're on WinGet 1.7 now, and I believe this issue has been resolved.

  21. modified the milestones: , 1.8 Client on Mar 6, 2024
  22. andreas-thoren commented on Mar 13, 2024

    @andreas-thoren

    This is still an issue maybe not with winget itself but If you install Win 11 through downloadable iso from microsoft sometime the region settings gets wrong. See this post Aritra Mukhopadhyay (@PeithonKing)

    "Aritra Mukhopadhyay (@PeithonKing) I had the same problem. Not sure if the cause of it the same, but still.

    For me, issue was that I had "World" selected as region in windows settings. After I changed it to something more specific (Germany, in my case), I was able to update "App-Installer" via MS Store and then Winget started to work again."

    While the region setting is "World" Appinstaller does not get updated so you cannot fix the problem until region settings is fixed and you therefore can update Appinstaller.

  23. denelon commented on Mar 13, 2024

    @denelon
    Collaborator

    andreas-thoren, thanks for sharing. I don't think I've seen this before. I'm digging in a bit here to see if there is something we can do in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions