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

[BUG] WinGetUI fails to launch with no error message #2068

Closed
4 tasks done
stevehoek opened this issue Mar 30, 2024 · 30 comments
Closed
4 tasks done

[BUG] WinGetUI fails to launch with no error message #2068

stevehoek opened this issue Mar 30, 2024 · 30 comments
Assignees
Labels
bug Something isn't working needs-author-answer

Comments

@stevehoek
Copy link

Please confirm these before moving forward

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

Describe your issue

WinGetUI was working well after updating to v3.00, then I upgraded to v3.01 and it no longer launches. There is no message.
I have removed the app and the app's appdata folder and reinstalled and it is the same behavior
I have removed the appruntime and singleton as directed in a similar bug and it is the same behavior
In Windows Event Viewer | Windows | Applications there is this entry at the time I launched WinGetUI

Log Name: Application
Source: Windows App Runtime
Date: 3/30/2024 1:05:07 PM
Event ID: 5
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: GRR-SHOEK
Description:
Access is denied.
Event Xml:



5
0
2
0
0
0x80000000000000

228383


Application
GRR-SHOEK



Windows App Runtime
ERROR 0x80070005: Bootstrapper initialization failed while looking for version 1.5 (MSIX package version >= 5001.70.1338.0)

Steps to reproduce the issue

Launch the app, look at Task Manager and see it never starts

WingetUI Log

No logs, app will not run.

Package Managers Logs

No logs, app will not run.

Relevant information

No response

Screenshots and videos

No response

@stevehoek stevehoek added the bug Something isn't working label Mar 30, 2024
@marticliment
Copy link
Owner

Please uninstall any "App Sdk" or "App runtime" or "XAML" entry you can find on Windows Settings.

Then reinstall WingetUI

@stevehoek
Copy link
Author

stevehoek commented Mar 30, 2024

I uninstalled 4 entries in Windows Settings | Apps... Windows App Runtime Singleton, Main, and DDLM x86/x64
There were no XAML entries
There are older App runtimes installed (3.4x and 2000.609)

NO CHANGE - fails with the same Access Denied error in Event Log

Forgot to mention I'm on Windows 10 x64 22H2

@marticliment
Copy link
Owner

marticliment commented Mar 30, 2024

Please go to Windows Settings -> Uninstall programs and find “.NET 8.0.x”. Uninstall this program.
Then, please install this package: https://download.visualstudio.microsoft.com/download/pr/a4bc7333-6e30-4e2d-b300-0b4f23537e5b/4b81af6d46a02fba5d9ce030af438c67/dotnet-runtime-8.0.2-win-x64.exe

Then try to launch WingetUI again. If the issue does not work, please roll back to v3.0.0 and wait until I can fix this issue.

@stevehoek
Copy link
Author

stevehoek commented Mar 30, 2024

v3.0.0 fails with the same issue

I should also mention I have Visual Studio 2022 on this machine (as well as another one where WingetUI is working fine), and only found the .NET SDK 8.0.2 so I installed the runtime you linked and WingetUI still fails the same way

@stevehoek
Copy link
Author

I downloaded the source code and built it release and debug, and it also fails.

The program '[21056] WingetUI.exe' has exited with code 2147942405 (0x80070005).

I set a breakpoint at the first line of Main and AsyncMain and it didnt hit either

@stevehoek
Copy link
Author

For now I have gone back to v2.2.0 and it is working.
I'd be happy to try debug versions or local code changes to help you in any way to diag this.

@stevehoek
Copy link
Author

A bit more info... I have WinGetUI 3.0.1 on two other machines... one is Windows Server 2019 and it is working fine there still. The other is similar to the first machine I reported the bug on (Visual Studio, Windows 10 22H2) and it is now not working either. So I'm guessing an update to the WindowsAppRuntime either via the store or Visual Studio 2022 has caused the issue? Neither Store or VS is on the Server.

@marticliment
Copy link
Owner

This is an issue with the app runtime, and therefore the entry point is not even reached, and the debugger does not reach WingetUI code.
Please try uninstalling all app runtime related packages and then reinstalling WingetUI to install the correct app runtime.

@stevehoek
Copy link
Author

stevehoek commented Mar 30, 2024

Unfortunately I have done that on both the machines that are exhibiting the problem. Since they both have Visual Studio 2022 on them configured for C#, .NET, and Windows Desktop App development, I am hesitant to remove too much. I have removed the latest versions of Windows App Runtime 5001 (Main, Singleton, DDLM x86/x64) that were installed/updated around March 14. On the one machine where WIngetUI 3.x still works, those were the only versions installed, where as the other two machines have older version of the Windows App Runtime that I am hesitant to remove because other software may be dependent on them. All machines have multiple versions of the Windows Desktop Runtime, including 8.0.3 which I believe is the new name for ".NET". On the other two machines with Visual Studio installed there are lots of SDK's, such as the .NET 8.x SDK that comes from Visual Studio.

I have attached the winget list output from the good and the bad machine. Perhaps you can suggest other things to uninstall?

bad.txt
good.txt

@Enivex
Copy link

Enivex commented Mar 30, 2024

This is an issue with the app runtime, and therefore the entry point is not even reached, and the debugger does not reach WingetUI code. Please try uninstalling all app runtime related packages and then reinstalling WingetUI to install the correct app runtime.

This did not fix the issue for me. I uninstalled everything, and reinstalled WingetUI, and it still doesn't launch.

This was even a clean Windows install. (Curiously it did work before I reinstalled Windows.)

@stevehoek
Copy link
Author

stevehoek commented Mar 31, 2024

Yeah I feel like a big clue is that this version was working on both of my PC's until around March 14-16 approximately. Its hard to say for sure because I leave WingetUI running all the time. For sure it worked after the latest Microsoft Patch Tuesday on the 12th. I believe there was at least one Visual Studio 2022 update since then.

@Enivex
Copy link

Enivex commented Apr 1, 2024

For whatever reason it suddenly started working on my computer, even if I've seemingly made zero changes since last time I tried.

The thick plottens.

@marticliment
Copy link
Owner

marticliment commented Apr 1, 2024

Hello,

I have set a detailed guide on how to reset all WingetUI dependencies. Please follow it if WingetUI is still not working:
https://github.com/marticliment/WinGetUI/issues/2000

@EJSnow
Copy link

EJSnow commented Apr 2, 2024

I am having the exact same issue. WingetUI fails to launch, exiting with code -2147024891. There are several logs in Event Viewer from the Windows App Runtime, all saying access denied. I followed the guide you linked, but it didn't work. So yay! Also, I haven't been using WingetUI previously. I do have Visual Studio Community 2022 installed, along with the Windows SDK. Should I try uninstalling VS?

Edit: I am on Windows 10 22H2, fully updated. I have not tried downloading WingetUI 2.2.0.

@marticliment
Copy link
Owner

Hello,

What is the output and return code of installing this? https://aka.ms/windowsappsdk/1.5/latest/windowsappruntimeinstall-x64.exe

@EJSnow
Copy link

EJSnow commented Apr 2, 2024

Guess what, installing that thing fixed it! WingetUI opens up now! Thanks!

@EJSnow
Copy link

EJSnow commented Apr 2, 2024

Just a question. I used the .NET Runtime 8.02 you linked in your guide for resetting dependencies, and WingetUI shows an update for it (obviously). Should I install the update, or not?

@marticliment
Copy link
Owner

No, please do not

@EJSnow
Copy link

EJSnow commented Apr 2, 2024

Okay. I thought not, but I just wanted to be sure. Thanks for clarifying.

@stevehoek
Copy link
Author

Hello,

What is the output and return code of installing this? https://aka.ms/windowsappsdk/1.5/latest/windowsappruntimeinstall-x64.exe

Unfortunately this did not help me.

@stevehoek
Copy link
Author

stevehoek commented Apr 4, 2024

Hello,

What is the output and return code of installing this? https://aka.ms/windowsappsdk/1.5/latest/windowsappruntimeinstall-x64.exe

`Installing license: MSIX_MAINPACKAGE_LICENSE

Install License result : 0x0

Installing license: MSIX_SINGLETONPACKAGE_LICENSE

Install License result : 0x0

All install operations successful.`

@marticliment
Copy link
Owner

Trh also running the installer as admin, please

@stevehoek
Copy link
Author

Trh also running the installer as admin, please

That was from an admin command prompt

@keiznklei
Copy link

Currently running to all this issues from a fresh Windows 11 install. Tried all the steps from the guide and it didn't work. Curiously, 3.0.1 worked before resetting my machine. Currently, I downgraded to 2.2.0.

@stevehoek
Copy link
Author

Well, after Tuesday's Windows Updates and a VS 2022 update, WingetUI 3.01 is now working again!

@marticliment
Copy link
Owner

MS haa released .NET 8.0.4, most likely fixing the issue causing the crash

@stevehoek
Copy link
Author

@stevehoek
Copy link
Author

Likely this issue?

dotnet/runtime#99796

@marticliment
Copy link
Owner

Hello, everyone,

WingetUI 3.0.2 has been published. It fixes

  • Crashes with .NET Sdk 8.0.3 (no launch at all)
  • Crashes with .NET Sdk 8.0.4 (Cannot locate resource from 'ms-appx:///Microsoft.UI.Xaml/Themes/themeresources.xaml)
  • Crashes with the App Sdk (This app requires whe Windows App runtime) when it was already installed
  • Crashes when elevating WingetUI from non-admin users

WingetUI 3.0.2 can be downloaded directly from here. If the crashes persist, please reply here and I will reopen the issue.

@EJSnow
Copy link

EJSnow commented Apr 13, 2024

Forgot to mention: After I installed the Windows app runtime thing, WingetUI launched, but only if it was run as an admin. Just updated to 3.02, and now WingetUI launches just fine, even without admin privileges. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-author-answer
Projects
None yet
Development

No branches or pull requests

5 participants