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

Application crach on Windows 11 ARM #19783

Closed
1 task done
DBojsen opened this issue Aug 5, 2022 · 10 comments
Closed
1 task done

Application crach on Windows 11 ARM #19783

DBojsen opened this issue Aug 5, 2022 · 10 comments
Labels
Issue-Bug Something isn't working Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Resolution-External External issue, unrelated to PowerToys Severity-High Bugs that we consider a blocking issue for release (crashes stuff outside of PT) Status-No recent activity no activity in the past 5 days when follow up's are needed

Comments

@DBojsen
Copy link

DBojsen commented Aug 5, 2022

Microsoft PowerToys version

0.61.1

Running as admin

  • Yes

Area(s) with issue?

General, Settings

Steps to reproduce

Start the application - Errors in eventlog:
Description: A .NET application failed.
Application: PowerToys.Awake.exe
Path: C:\Program Files\PowerToys\modules\Awake\PowerToys.Awake.exe
Message: Failed to load the dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7\hostpolicy.dll], HRESULT: 0x800700C1
An error occurred while loading required library hostpolicy.dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7]

Description: A .NET application failed.
Application: PowerToys.ColorPickerUI.exe
Path: C:\Program Files\PowerToys\modules\ColorPicker\PowerToys.ColorPickerUI.exe
Message: Failed to load the dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7\hostpolicy.dll], HRESULT: 0x800700C1
An error occurred while loading required library hostpolicy.dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7]

Description: A .NET application failed.
Application: PowerToys.PowerLauncher.exe
Path: C:\Program Files\PowerToys\modules\launcher\PowerToys.PowerLauncher.exe
Message: Failed to load the dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7\hostpolicy.dll], HRESULT: 0x800700C1
An error occurred while loading required library hostpolicy.dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7]

Attempt to open settings from systray icon:
Description: A .NET application failed.
Application: PowerToys.Settings.exe
Path: C:\Program Files\PowerToys\Settings\PowerToys.Settings.exe
Message: Failed to load the dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7\hostpolicy.dll], HRESULT: 0x800700C1
An error occurred while loading required library hostpolicy.dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7]

✔️ Expected Behavior

That the application runs as it used to

❌ Actual Behavior

No response

Other Software

No response

@DBojsen DBojsen added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Aug 5, 2022
@Jay-o-Way Jay-o-Way added Severity-High Bugs that we consider a blocking issue for release (crashes stuff outside of PT) Product-Awake Issues regarding the PowerToys Awake utility labels Aug 5, 2022
@Jay-o-Way
Copy link
Collaborator

Jay-o-Way commented Aug 5, 2022

Looks more like it's a .NET problem. Did the installation go allright? Maybe you could try to install .NET manually?

@Jay-o-Way Jay-o-Way removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-Awake Issues regarding the PowerToys Awake utility labels Aug 5, 2022
@DBojsen
Copy link
Author

DBojsen commented Aug 5, 2022

No issues installing, and so far only program I have issues with

@DBojsen
Copy link
Author

DBojsen commented Aug 5, 2022

BTW FancyZones still work (my main reason for installing PowerToys), I just can't change the settings

@snickler
Copy link
Collaborator

snickler commented Aug 5, 2022

@DBojsen - can you open up command prompt and run dotnet --info and show your output?

@DBojsen
Copy link
Author

DBojsen commented Aug 5, 2022

@DBojsen - can you open up command prompt and run dotnet --info and show your output?

Of course - my output is:

.NET SDK:
 Version:   7.0.100-preview.6.22352.1
 Commit:    492644e08e

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.22000
 OS Platform: Windows
 RID:         win10-arm64
 Base Path:   C:\Program Files\dotnet\sdk\7.0.100-preview.6.22352.1\

Host:
  Version:      7.0.0-preview.6.22324.4
  Architecture: arm64
  Commit:       d3fa592f6d

.NET SDKs installed:
  5.0.410 [C:\Program Files\dotnet\sdk]
  6.0.400-preview.22330.6 [C:\Program Files\dotnet\sdk]
  7.0.100-preview.6.22352.1 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.0-preview.6.22330.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.27 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.0-preview.6.22324.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.27 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 7.0.0-preview.6.22351.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
  x64   [C:\Program Files\dotnet]
    registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x64\InstallLocation]
  x86   [C:\Program Files (x86)\dotnet]
    registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

@snickler
Copy link
Collaborator

snickler commented Aug 5, 2022

@DBojsen - Thanks for this. I'm assuming you have Visual Studio 2022 17.2 installed? If so, it's possible that it installed the x64 version of .NET 6.0.7 instead of the arm64 version. The 0x800700C1 code is for "Not a valid Win32 application" and is only thrown when trying to load a dll from an incompatible architecture.

@snickler
Copy link
Collaborator

snickler commented Aug 5, 2022

@DBojsen if you do have Visual Studio installed, open `Developer Command Prompt for VS 2022" and run the following command:

dumpbin /headers "C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7\hostpolicy.dll" | findstr /i machine

This should return AA64 machine (ARM64) if the Arm64 runtime is installed.

@DBojsen
Copy link
Author

DBojsen commented Aug 5, 2022

Thank you @snickler

It didn't - returned 8664 machine (x64)

@snickler
Copy link
Collaborator

snickler commented Aug 5, 2022

@DBojsen Here's some guidance around the .NET SDKs and Arm64 dotnet/sdk#22380

I would recommend uninstalling the 6.0.7 runtime and installing the 6.0.7 Arm64 runtime for this specific case, but it might involve some extra SDK related reinstalling per the issue linked above. Once the proper arch for the runtime is installed, things should run properly.

Let us know! :)

@Jay-o-Way Jay-o-Way added Resolution-Won't fix Resolution-External External issue, unrelated to PowerToys and removed Resolution-Won't fix labels Aug 5, 2022
@Jay-o-Way Jay-o-Way added Area-ARM64 Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Aug 13, 2022
@ghost ghost added the Status-No recent activity no activity in the past 5 days when follow up's are needed label Aug 18, 2022
@ghost
Copy link

ghost commented Aug 18, 2022

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

@ghost ghost closed this as completed Aug 23, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Resolution-External External issue, unrelated to PowerToys Severity-High Bugs that we consider a blocking issue for release (crashes stuff outside of PT) Status-No recent activity no activity in the past 5 days when follow up's are needed
Projects
None yet
Development

No branches or pull requests

3 participants