microsoft / devhome

The new Dev Home experience for Windows!
https://aka.ms/devhomedocs
MIT License
3.63k stars 323 forks source link

Unhandled Exception getting GPU Stats #1117

Open GabrielFernandes-Dev opened 1 year ago

GabrielFernandes-Dev commented 1 year ago

Dev Home version

0.1.3651.0

Windows build number

10.0.22000

Other software

No response

Steps to reproduce the bug

Installed the Dev Home app but the pc widgets never worked (CPU, GPU, Memory, and Network).

Cloning the project and trying to run whit Visual Studio Community 2022 the application starts and immediately throws an exception

Expected result

No response

Actual result

This is the DevHome app widgets.

image

Running whit Visual Studio Community get this exception in the \devhome\CoreWidgetProvider\Helpers\SystemData.cs Line 12.

System.TypeInitializationException: 'The type initializer for 'CoreWidgetProvider.Helpers.SystemData' threw an exception.' Inner Exception InvalidOperationException: Cannot load Counter Name data because an invalid index '' was read from the registry. Performance counters on the machine may need to be repaired.

image

Included System Information

I am currently with this configuration in my PC: Ryzen 5 3600 ASRock B450M 32 Gb DDR4 RTX 3060Ti

Included Extensions Information

No response

krschau commented 1 year ago

@gabrielgomes-coder When you ran locally, did you have this change in your branch? https://github.com/microsoft/devhome/pull/1077

I'm hoping I fixed this but I'm wondering if it's happening in another location.

GabrielFernandes-Dev commented 1 year ago

Yes, before this change not even the "${gpuUsage}" appeared, it was just empty

wsy commented 6 months ago

image Hi @krschau , This bug still exists in version '0.1201.442.0'. All widgets have this issue.

LambdaSoft commented 4 months ago

Today I updated through the Microsoft Store (0.1501.533.0) and, at least in my case, it was finally fixed

duxingzhe commented 4 months ago

It is still not working for me.

BigWull commented 4 months ago

Still not working

Serios commented 3 months ago

I can confirm that all the widgets regarding system performance are still throwing this error.