UniGetUI icon indicating copy to clipboard operation
UniGetUI copied to clipboard

[BUG] update check issue

Open ted423 opened this issue 7 months ago • 16 comments

Please confirm these before moving forward

  • [x] I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
  • [x] I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • [x] I have checked the FAQ section for solutions.
  • [x] This issue is about a bug (if it is not, please use the correct template).

UniGetUI Version

3.2.0

Windows version, edition, and architecture

Win11 LTSC

Describe your issue

Could leaving your machine powered on for a long time cause the update checker to behave abnormally? I noticed VS Code was reporting version 1.99 and prompting me to update to 1.100.0, even though I was pretty sure I’d already upgraded—and that notified “latest” version didn’t match what I saw on my other machines, which all showed 1.100.2. I hit “Refresh” several times with no change. When I finally clicked “Update,” it failed, though the log said it was downloading 1.100.2. Later, for unrelated reasons I rebooted my PC—and when it came back up it showed current version is 1.100.1. At that point clicking “Update” worked as expected.

Steps to reproduce the issue

No response

UniGetUI Log

down

Package Managers Logs

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
Package update operation for Package=Microsoft.VisualStudioCode with Manager=Winget
Installation options: <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=True;Version=;Architecture=;InstallationScope=Global;InstallationScope=;CustomParameters=;RemoveDataOnUninstall=False>
Overriden options: <Scope=;RunAsAdministrator=;WG_SpecifyVersion=;PS_NoScope=False>
Executing process with StartInfo:
 - FileName: "C:\Program Files\UniGetUI\Assets\Utilities\UniGetUI Elevator.exe"
 - Arguments: ""C:\Program Files\UniGetUI\winget-cli_x64\winget.exe"  update --id "Microsoft.VisualStudioCode" --exact --source winget --accept-source-agreements --disable-interactivity --scope machine --silent  --include-unknown --accept-package-agreements --force"
Start Time: "2025/5/16 17:09:49"
Found Microsoft Visual Studio Code [Microsoft.VisualStudioCode] Version 1.100.2
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
Successfully installed
End Time: "2025/5/16 17:10:11"
Process return value: "0" (0x0)
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
Package update operation for Package=Microsoft.VisualStudioCode with Manager=Winget
Installation options: <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=True;Version=;Architecture=;InstallationScope=Global;InstallationScope=;CustomParameters=;RemoveDataOnUninstall=False>
Overriden options: <Scope=;RunAsAdministrator=;WG_SpecifyVersion=;PS_NoScope=False>
Executing process with StartInfo:
 - FileName: "C:\Program Files\UniGetUI\Assets\Utilities\UniGetUI Elevator.exe"
 - Arguments: ""C:\Program Files\UniGetUI\winget-cli_x64\winget.exe"  update --id "Microsoft.VisualStudioCode" --exact --source winget --accept-source-agreements --disable-interactivity --scope machine --silent  --include-unknown --accept-package-agreements --force"
Start Time: "2025/5/16 16:52:46"
Found Microsoft Visual Studio Code [Microsoft.VisualStudioCode] Version 1.100.2
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
Installer failed with exit code: 1
Installer log is available at: C:\Users\xx\AppData\Local\Temp\UniGetUI\ElevatedWinGetTemp\WinGet\defaultState\WinGet-Microsoft.VisualStudioCode.1.100.2-2025-05-16-16-52-50.585.log
End Time: "2025/5/16 16:52:50"
Process return value: "-1978335226" (0x8A150006)

Package update operation for Package=Microsoft.VisualStudioCode with Manager=Winget
Installation options: <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=True;Version=;Architecture=;InstallationScope=Global;InstallationScope=;CustomParameters=;RemoveDataOnUninstall=False>
Overriden options: <Scope=;RunAsAdministrator=;WG_SpecifyVersion=;PS_NoScope=False>
Executing process with StartInfo:
 - FileName: "C:\Program Files\UniGetUI\Assets\Utilities\UniGetUI Elevator.exe"
 - Arguments: ""C:\Program Files\UniGetUI\winget-cli_x64\winget.exe"  update --id "Microsoft.VisualStudioCode" --exact --source winget --accept-source-agreements --disable-interactivity --scope machine --silent  --include-unknown --accept-package-agreements --force"
Start Time: "2025/5/16 16:50:10"
Found Microsoft Visual Studio Code [Microsoft.VisualStudioCode] Version 1.100.2
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://vscode.download.prss.microsoft.com/dbazure/download/stable/848b80aeb52026648a8ff9f7c45a9b0a80641e2e/VSCodeSetup-x64-1.100.2.exe
  ██████████████████████████████   103 MB /  103 MB
Successfully verified installer hash
Starting package install...
Installer failed with exit code: 1
Installer log is available at: C:\Users\xx\AppData\Local\Temp\UniGetUI\ElevatedWinGetTemp\WinGet\defaultState\WinGet-Microsoft.VisualStudioCode.1.100.2-2025-05-16-16-50-28.579.log
End Time: "2025/5/16 16:50:29"
Process return value: "-1978335226" (0x8A150006)
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
Package update operation for Package=Microsoft.VisualStudioCode with Manager=Winget
Installation options: <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=False;Version=;Architecture=;InstallationScope=Global;InstallationScope=;CustomParameters=;RemoveDataOnUninstall=False>
Overriden options: <Scope=;RunAsAdministrator=;WG_SpecifyVersion=;PS_NoScope=False>
Executing process with StartInfo:
 - FileName: "C:\Program Files\UniGetUI\winget-cli_x64\winget.exe"
 - Arguments: "update --id "Microsoft.VisualStudioCode" --exact --source winget --accept-source-agreements --disable-interactivity --scope machine --silent  --include-unknown --accept-package-agreements --force"
Start Time: "2025/5/16 16:22:00"
Failed to open the predefined source; please report to winget maintainers.
An unexpected error occurred while executing the command: 
0x80070005 : �ܾ����ʡ�
End Time: "2025/5/16 16:22:02"
Process return value: "-2147024891" (0x80070005)
无法更新 Microsoft Visual Studio Code
-----------------------
Retrying operation with RetryMode=Retry
Retried package operation for Package=Microsoft.VisualStudioCode with Manager=Winget
Updated installation options: <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=False;Version=;Architecture=;InstallationScope=Global;InstallationScope=;CustomParameters=;RemoveDataOnUninstall=False>
Overriden options: <Scope=;RunAsAdministrator=;WG_SpecifyVersion=;PS_NoScope=False>
Executing process with StartInfo:
 - FileName: "C:\Program Files\UniGetUI\winget-cli_x64\winget.exe"
 - Arguments: "update --id "Microsoft.VisualStudioCode" --exact --source winget --accept-source-agreements --disable-interactivity --scope machine --silent  --include-unknown --accept-package-agreements --force"
Start Time: "2025/5/16 16:49:37"
Failed to open the predefined source; please report to winget maintainers.
An unexpected error occurred while executing the command: 
0x80070005 : �ܾ����ʡ�
End Time: "2025/5/16 16:49:38"
Process return value: "-2147024891" (0x80070005)
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

Relevant information

No response

Screenshots and videos

No response

ted423 avatar May 16 '25 09:05 ted423

Image I found another pc has same problem, only quit and restart unigetui worked

ted423 avatar May 16 '25 09:05 ted423

Could leaving your machine powered on for a long time cause the update checker

What do you mean by long time? Days? Weeks?

marticliment avatar May 16 '25 13:05 marticliment

Could leaving your machine powered on for a long time cause the update checker

What do you mean by long time? Days? Weeks?

weeks

ted423 avatar May 18 '25 15:05 ted423

It could be happening that UniGetUI is bugging out due to having old updates loaded. I will see what I can do

marticliment avatar May 18 '25 15:05 marticliment

I suddenly remembered that both of these machines had been left on continuously before the unigetgui upgrade, with the software running the whole time, and they had just been updated shortly before the upgrade check —so I’m wondering if that might have had an impact.

ted423 avatar May 21 '25 01:05 ted423

it could, but checking for updates again on UniGetUI should have immediately fixed the issue

marticliment avatar May 21 '25 05:05 marticliment

Image

it should be 1.100.3 now

another pc

Image

ted423 avatar Jun 04 '25 03:06 ted423

This problematic PC(this one https://github.com/marticliment/UniGetUI/issues/3675#issuecomment-2886203514) has been running non-stop for nearly 8 days.

ted423 avatar Jun 04 '25 03:06 ted423

[2025/6/4 11:37:53] Found 0 installed packages from PowerShell7
[2025/6/4 11:37:53] Found 0 available updates from PowerShell7
[2025/6/4 11:37:53] Found 18 available updates from Winget
[2025/6/4 11:37:54] Found 2 available updates from Npm
[2025/6/4 11:39:25] An error occurred while retrieving the icon for package TheDocumentFoundation.LibreOffice
[2025/6/4 11:39:25] System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
                     ---> System.TimeoutException: A task was canceled.
                     ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
                       at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken)
                       at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage, Boolean, Boolean, CancellationToken)
                       at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage, Boolean, CancellationToken)
                       at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage, Boolean, CancellationToken)
                       at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage, HttpCompletionOption, CancellationTokenSource, Boolean, CancellationTokenSource, CancellationToken)
                       --- End of inner exception stack trace ---
                       --- End of inner exception stack trace ---
                       at System.Net.Http.HttpClient.HandleFailure(Exception, Boolean, HttpResponseMessage, CancellationTokenSource, CancellationToken, CancellationTokenSource)
                       at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage, HttpCompletionOption, CancellationTokenSource, Boolean, CancellationTokenSource, CancellationToken)
                       at UniGetUI.Core.IconEngine.IconCacheEngine.SaveIconToCacheAndGetPath(CacheableIcon icon, String iconLocation) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.Core.IconStore\IconCacheEngine.cs:line 187
                       at UniGetUI.Core.IconEngine.IconCacheEngine._getCacheOrDownloadIcon(Nullable`1 _icon, String ManagerName, String PackageId) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.Core.IconStore\IconCacheEngine.cs:line 146
                       at UniGetUI.Core.Classes.TaskRecycler`1.<>c__DisplayClass6_0`3.<RunOrAttachAsync>b__0() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.Core.Classes\TaskRecycler.cs:line 59
                       at System.Threading.Tasks.Task`1.InnerInvoke()
                       at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread, ExecutionContext, ContextCallback, Object)
                    --- End of stack trace from previous location ---
                       at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread, ExecutionContext, ContextCallback, Object)
                       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task&, Thread )
                    --- End of stack trace from previous location ---
                       at UniGetUI.Core.Classes.TaskRecycler`1._runTaskAndWait(Task`1 task, Int32 hash, Int32 cacheTimeSecsSecs)
                       at UniGetUI.PackageEngine.PackageClasses.Package.LoadIconUrlIfAny() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.PackageManagerClasses\Packages\Package.cs:line 184
[2025/6/4 11:40:26] Found 0 installed packages from PowerShell7
[2025/6/4 11:40:26] Found 0 available updates from PowerShell7
[2025/6/4 11:40:27] Found 2 available updates from Npm
[2025/6/4 11:40:27] Found 18 available updates from Winget
[2025/6/4 11:44:10] Found 0 installed packages from PowerShell7
[2025/6/4 11:44:10] Found 0 available updates from PowerShell7
[2025/6/4 11:44:11] Found 2 available updates from Npm
[2025/6/4 11:44:12] Found 18 available updates from Winget

ted423 avatar Jun 04 '25 03:06 ted423

Image

ted423 avatar Jun 04 '25 03:06 ted423


——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\xx\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity "
Process start time: 2025/6/4 11:44:10
Process end time:   2025/6/4 11:44:10

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 2025/6/4 11:44:10
Process end time:   2025/6/4 11:44:12

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is OtherTask
Process start time: 2025/6/4 11:44:10
Process end time:   2025/6/4 11:44:11

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 2025/6/4 11:45:42
Process end time:   2025/6/4 11:45:43

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is OtherTask
Process start time: 2025/6/4 11:45:42
Process end time:   2025/6/4 11:45:43

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 2025/6/4 11:45:47
Process end time:   2025/6/4 11:45:47

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\xx\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity "
Process start time: 2025/6/4 11:45:52
Process end time:   2025/6/4 11:45:52

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 2025/6/4 11:45:52
Process end time:   2025/6/4 11:45:52

-- Task information
 ...

The task reported success

——————————————————————————————————————————

ted423 avatar Jun 04 '25 03:06 ted423

PS C:\Users\xx> C:\Users\xx\AppData\Local\Microsoft\WindowsApps\winget.exe update
名称                         ID                            版本                可用               源
--------------------------------------------------------------------------------------------------------
Oxipng                       Shssoichiro.Oxipng            9.1.3               9.1.5              winget
WizTree v4.24                AntibodySoftware.WizTree      4.24                4.25               winget
XnView MP (x64)              XnSoft.XnViewMP               1.8.6.0             1.9.1.0            winget
KeePassXC                    KeePassXCTeam.KeePassXC       2.7.9               2.7.10             winget
Adobe Acrobat (64-bit)       Adobe.Acrobat.Reader.64-bit   25.001.20474        25.001.20521       winget
PowerShell 7-x64             Microsoft.PowerShell          7.5.0.0             7.5.1.0            winget
Google Chrome                Google.Chrome                 133.0.6943.127      137.0.7151.69      winget
Microsoft Visual Studio Code Microsoft.VisualStudioCode    1.97.2              1.100.3            winget
CodeLite                     CodeLite.CodeLite             8.0.0               17.0.0             winget
Microsoft Edge               Microsoft.Edge                136.0.3240.92       137.0.3296.62      winget
Wireshark 4.4.5 x64          WiresharkFoundation.Wireshark 4.4.5               4.4.6              winget
PowerToys (Preview) x64      Microsoft.PowerToys           0.88.0              0.91.1             winget
企业微信                     Tencent.WeCom                 4.1.32.6007         4.1.36.6012        winget
AB Download Manager          amir1376.ABDownloadManager    1.6.2               1.6.3              winget
FastCopy                     FastCopy.FastCopy             4.2.2               5.9.0              winget
GitHub Desktop               GitHub.GitHubDesktop          3.4.13              3.4.20             winget
WinSCP 6.3.7                 WinSCP.WinSCP                 6.3.7               6.5.1              winget
Microsoft Teams              Microsoft.Teams               25017.203.3370.1174 25094.310.3616.953 winget
18 升级可用。

ted423 avatar Jun 04 '25 03:06 ted423

Image

ted423 avatar Jun 04 '25 03:06 ted423

Image search show the correct version when the update check is stuck.

the install error is that need to close vscode , but winget can't show the reason,maybe is just the version's display issue

ted423 avatar Jun 04 '25 06:06 ted423

I've disabled the 'close to system tray' setting because I found this might better suit my usage habits. I don't really need the software to check for updates in real-time. This means that while future issues in this area (or 'related to this functionality') , they will no longer affect me.

ted423 avatar Jun 06 '25 06:06 ted423

It seems I'm still having an issue. I'm using version control to manage my Python site-packages directory. After an upgrade, I messed things up by making some manual changes, which caused problems. I then used version control to roll back the changes. Now, the update list in unigetui is stuck. Refreshing it does nothing. Only after a full restart does it correctly display all the available pip packages to be updated.

ted423 avatar Sep 16 '25 08:09 ted423