Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

[Arm64][Widgets] Unable to use Core Widgets on Arm64 due to bug in System.Management.dll #865

@snickler

Description

@snickler

Dev Home version

0.137.141.0

Windows build number

10.0.25357.1

Other software

No response

Steps to reproduce the bug

  • Install Dev Home from Winget or Store
  • Add any of the Core Widgets like GPU, CPU or Memory
  • Note a "This widget could not be displayed" message in the pinned widget

Expected result

Data read from the Core Widgets to be displayed.

Actual result

image

Application: CoreWidgetProvider.exe
CoreCLR Version: 6.0.1623.17311
.NET Version: 6.0.16
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.TypeInitializationException: The type initializer for 'System.Management.ManagementPath' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'System.Management.WmiNetUtilsHelper' threw an exception.
 ---> System.ComponentModel.Win32Exception (193): Failed to load required native library 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\wminet_utils.dll'.
   at System.Management.WmiNetUtilsHelper..cctor()
   --- End of inner exception stack trace ---
   at System.Management.MTAHelper.IsNoContextMTA()
   at System.Management.MTAHelper.CreateInMTA(Type type)
   at System.Management.ManagementPath.CreateWbemPath(String path)
   at System.Management.ManagementPath..cctor()
   --- End of inner exception stack trace ---
   at System.Management.ManagementScope._Clone(ManagementScope scope, IdentifierChangedEventHandler handler)
   at System.Management.ManagementObjectSearcher..ctor(ManagementScope scope, ObjectQuery query, EnumerationOptions options)

Some quick searching on this particular problem led me to a commit that fixes this bug in the .NET 8 Preview 4 version of the System.Management NuGet package

dotnet/runtime@258b44f

Included System Information

Surface Pro X
Windows 11 Canary 10.0.25357.1

Included Extensions Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-WidgetsRelated to in-package widgetsIssue-BugSomething isn't working or needs investigationResolution-DuplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions