UniGetUI icon indicating copy to clipboard operation
UniGetUI copied to clipboard

[BUG] WingetUI no longer starts after installation of 2024-03 Cumulative Update for Windows 10 (KB5035845)

Open pro-sumer opened this issue 1 year ago • 9 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)

Describe your issue

Since the installation of the 2024-03 Cumulative Update for Windows 10 (KB5035845) WingetUI no longer starts (no GUI; errors in Event Viewer). I was still using WingetUI 2.x, but manually installing 3.x did not help either.

Steps to reproduce the issue

Start WingetUI

WingetUI Log

Not possible; WingetUI does not start

Package Managers Logs

Not possible; WingetUI does not start

Relevant information

Errors in Event Viewer:

Application: WingetUI.exe
CoreCLR Version: 8.0.324.11423
.NET Version: 8.0.3
Description: The process was terminated due to an internal error in the .NET Runtime at IP 0x00007FFF8F29C5E4 (0x00007FFF8F110000) with exit code 0x80131506.

and:

Faulting application name: WingetUI.exe, version: 1.0.0.0, time stamp: 0x65a80000
Faulting module name: coreclr.dll, version: 8.0.324.11423, time stamp: 0x65cd500d
Exception code: 0xc0000005
Fault offset: 0x000000000018c5e4
Faulting process id: 0x85c
Faulting application start time: 0x01da763314e64616
Faulting application path: C:\Program Files\WingetUI\WingetUI.exe
Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\coreclr.dll
Report Id: <REDACTED>
Faulting package full name: 
Faulting package-relative application ID: 

Screenshots and videos

N/A

pro-sumer avatar Mar 14 '24 17:03 pro-sumer

Hello @pro-sumer,

I am afraid this is caused by a faulty .NET runtime, as the error message suggest. Please try uninstalling all .NET 8 entries from Windows Settings and downloading the .NET 8 runtime again

marticliment avatar Mar 14 '24 19:03 marticliment

Can anyone help me with this?

I can't find any .NET entries in Windows Settings.

Instead, I manually removed C:\Program Files\dotnet\shared\Microsoft.NETCore.App (which only contained 8.0.3). WingetUI then informs me that I should install .NET 8 and offers to download the installer.

Next, I started the downloaded .NET 8 installer and chose "Repair". WingetUI gives the same errors as I reported before.

Finally, I started the .NET 8 installer again and chose "Uninstall" after which I started the .NET 8 installer once more and chose "Install". WingetUI gives the same errors as I reported before.

How can I fix my .NET 8 setup?

pro-sumer avatar Mar 14 '24 22:03 pro-sumer

The CLI winget shows these .NET entries:

Microsoft .Net Native Framework Package 1.2 Microsoft.NET.Native.Framework.1.2_8wekyb3d8bbwe     1.2.23231.0
Microsoft .Net Native Framework Package 1.3 Microsoft.NET.Native.Framework.1.3_8wekyb3d8bbwe     1.3.24211.0
Microsoft .Net Native Framework Package 1.6 Microsoft.NET.Native.Framework.1.6_8wekyb3d8bbwe     1.6.27413.0
Microsoft .Net Native Framework Package 1.7 Microsoft.NET.Native.Framework.1.7_8wekyb3d8bbwe     1.7.27413.0
Microsoft .Net Native Framework Package 2.1 Microsoft.NET.Native.Framework.2.1_8wekyb3d8bbwe     2.1.27427.0
Microsoft .Net Native Framework Package 2.2 Microsoft.NET.Native.Framework.2.2_8wekyb3d8bbwe     2.2.29512.0
Microsoft .Net Native Runtime Package 1.1   Microsoft.NET.Native.Runtime.1.1_8wekyb3d8bbwe       1.1.23406.0
Microsoft .Net Native Runtime Package 1.4   Microsoft.NET.Native.Runtime.1.4_8wekyb3d8bbwe       1.4.24201.0
Microsoft .Net Native Runtime Package 1.6   Microsoft.NET.Native.Runtime.1.6_8wekyb3d8bbwe       1.6.24903.0
Microsoft .Net Native Runtime Package 1.7   Microsoft.NET.Native.Runtime.1.7_8wekyb3d8bbwe       1.7.27422.0
Microsoft .Net Native Runtime Package 2.1   Microsoft.NET.Native.Runtime.2.1_8wekyb3d8bbwe       2.1.26424.0
Microsoft .Net Native Runtime Package 2.2   Microsoft.NET.Native.Runtime.2.2_8wekyb3d8bbwe       2.2.28604.0
Microsoft Windows Desktop Runtime - 8.0.3 … Microsoft.DotNet.DesktopRuntime.8                    8.0.3                         winget

pro-sumer avatar Mar 14 '24 22:03 pro-sumer

please try un installing the update that caused this issue through windows settings

marticliment avatar Mar 14 '24 22:03 marticliment

same problem I don't even know which (if any) update is responsible for this.

Anyway, I noticed that the setup of the WinGetUI 3 beta version is not able to recognize that a newer .NET 8.x x64 version is already installed and simply installs an additional older .NET 8.x x64 version.

But either way. WinGetUI no longer starts. Incidentally, I don't even have the update KB5035845

albotroz avatar Mar 15 '24 02:03 albotroz

please try un installing the update that caused this issue through windows settings

That update fixes 61 CVE's, so I'd rather not do that.

However, this weekend I will have access to two more PC's that most likely won't have updated yet and I will try to test WingetUI 3 before and after the updates.

On this PC I'm afraid I'll have to use the CLI until this is fixed.

pro-sumer avatar Mar 15 '24 09:03 pro-sumer

For me the solution was to remove .NET 8.0.3 and install .NET 8.0.2 https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-8.0.2-windows-x64-installer

ygorigor avatar Mar 15 '24 11:03 ygorigor

For me the solution was to remove .NET 8.0.3 and install .NET 8.0.2

Just tried that. Your workaround also works for me. Thanks for sharing!

What did change between 8.0.2 and 8.0.3 that breaks WingetUI?

pro-sumer avatar Mar 15 '24 12:03 pro-sumer

I can confirm that downgrading from NET 8.0.3 to .NET 8.0.2 allows WingetUI to start again. However, for me, the problem also affects other .NET software (e.g. https://github.com/Rem0o/FanControl.Releases), so I think that the culprit may be something more widespread and caused a problem in the new .NET version itself.

tomasz1986 avatar Mar 15 '24 12:03 tomasz1986

Downgrading to .NET 8.0.2 fixed it for me on Windows 10. Note that Winget UI 3.0.1 runs fine with .NET 8.0.3 on Windows 11.

stevemagruder avatar Mar 17 '24 07:03 stevemagruder

This shouldn't be closed yet, it's still an active issue preventing anyone with the latest up-to-date version of dotnet runtime 8.0.3 from using the program, I spent the last week uninstalling and re-installing dotnet runtime because the popups kept sending me to the new broken version.

Currently, this program does not launch for anyone unless they know to downgrade, and even when an update to dotnet runtime gets released nobody will have Winget UI working to update the package, again unless they know to upgrade.

It's also an issue with other programs so a linking issue to the upstream dotnet runtime repo to show them how widespread this issue is will help fix it sooner.

ShayBox avatar Mar 19 '24 06:03 ShayBox

I am afraid this is not an issue with WingetUI, but with .NET or App Sdk. The issue on App Sdk is already open, so leaving this issue open does not make sense for me.

I will publish a post explaining how to downgrade .NET and WingetUI and pin it to the top

marticliment avatar Mar 19 '24 19:03 marticliment