winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Uninstall of portable application hangs while using 8-10% CPU

Open wattengard opened this issue 9 months ago • 1 comments

Brief description of your issue

Trying to uninstall package sharkdp.bat, winget hangs at "Starting package uninstall..."

Steps to reproduce

With sharkdp.bat installed, try to uninstall.

❯ winget remove sharkdp.bat
Found bat [sharkdp.bat]
Starting package uninstall...

Expected behavior

Package sharkdp.bat should be deleted from local storage

Actual behavior

Freeze and nothing happens. winget.exe continuously uses 8-10% CPU according to Task Manager.

Log output:

2025-03-25 08:06:02.909 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2025-03-25 08:06:02.909 [CORE] Found matching extension.
2025-03-25 08:06:03.765 [CORE] Downloading to path: C:\Users\CHRIST~1.WAT\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix
2025-03-25 08:06:03.766 [CORE] Started applying motw to C:\Users\CHRIST~1.WAT\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix with zone: 3
2025-03-25 08:06:03.770 [CORE] Finished applying motw
2025-03-25 08:06:03.770 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/source2.msix
2025-03-25 08:06:04.313 [CORE] Download hash: ecb94a8022e28c87bb2edcf26f36214dadfecbc10921ebd1622f81241e16e4a8
2025-03-25 08:06:04.313 [CORE] Download completed.
2025-03-25 08:06:04.443 [CORE] Started trust validation of msix at: C:\Users\CHRIST~1.WAT\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix
2025-03-25 08:06:04.501 [CORE] Result for certificate chain validation of Microsoft origin: 0
2025-03-25 08:06:04.579 [CORE] Result for trust info validation of the msix: 0
2025-03-25 08:06:04.580 [CORE] Starting AddPackage operation #0: file:///C:/Users/CHRIST~1.WAT/AppData/Local/Temp/WinGet/Microsoft.Winget.Source_8wekyb3d8bbwe.msix Options:  { SkipReputationCheck = 1, ExpectedDigests = {} }
2025-03-25 08:06:04.591 [CORE] Begin waiting for operation #0
2025-03-25 08:06:04.591 [CORE] Begin blocking for operation #0
2025-03-25 08:06:07.231 [CORE] Successfully completed #0
2025-03-25 08:06:07.244 [REPO] Multiple sources available, creating aggregated source.
2025-03-25 08:06:07.244 [REPO] Adding to aggregated source: msstore
2025-03-25 08:06:07.244 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2025-03-25 08:06:07.406 [REPO] Response status: 200
2025-03-25 08:06:07.406 [REPO] Authentication node not found. Assuming authentication type none.
2025-03-25 08:06:07.407 [REPO] Adding to aggregated source: winget
2025-03-25 08:06:07.415 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2025-03-25 08:06:07.415 [CORE] Found matching extension.
2025-03-25 08:06:07.473 [REPO] Opening database for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2025.325.529.49_neutral__8wekyb3d8bbwe\Public\index.db'
2025-03-25 08:06:07.473 [SQL ] Opening SQLite connection #1: 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2025.325.529.49_neutral__8wekyb3d8bbwe\Public\index.db' [1, 40]
2025-03-25 08:06:07.474 [REPO] Opened SQLite Index with version [2.0], last write [2025-03-25 05:29:13.000]
2025-03-25 08:06:08.455 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
2025-03-25 08:06:08.455 [SQL ] Opening SQLite connection #2: ':memory:' [6, 0]
2025-03-25 08:06:08.462 [REPO] Reading MSI UpgradeCodes
2025-03-25 08:06:08.625 [REPO] Reading MSI UpgradeCodes
2025-03-25 08:06:09.298 [SQL ] Opening SQLite connection #3: ':memory:' [6, 0]
2025-03-25 08:06:09.882 [REPO] Opening database for ReadWrite at 'C:\Users\christian.wattengard\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db'
2025-03-25 08:06:09.882 [SQL ] Opening SQLite connection #4: 'C:\Users\christian.wattengard\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db' [2, 0]
2025-03-25 08:06:09.884 [REPO] Opened SQLite Index with version [1.6], last write [2024-04-09 07:37:16.000]
2025-03-25 08:06:10.303 [REPO] Sending http POST request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/manifestSearch
2025-03-25 08:06:10.418 [REPO] Response status: 200
2025-03-25 08:06:10.426 [REPO] Opening database for ReadWrite at 'C:\Users\christian.wattengard\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2025-03-25 08:06:10.426 [SQL ] Opening SQLite connection #5: 'C:\Users\christian.wattengard\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db' [2, 0]
2025-03-25 08:06:10.427 [REPO] Opened SQLite Index with version [1.6], last write [2025-02-24 12:22:49.000]
2025-03-25 08:06:10.843 [CLI ] Found one app. App id: sharkdp.bat App name: bat

Does not break on CTRL-C, need to "End task" in task manager to kill it.

Have tried waiting up to 2 hours, nothing happens.

Environment

❯ winget --info
Windows Package Manager v1.10.340
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.5039
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.25.340.0

wattengard avatar Mar 25 '25 07:03 wattengard

When I try this, it works fine for me.

Image What do we need to be able to recreate this?

bhattumang7 avatar Oct 29 '25 20:10 bhattumang7