devhome icon indicating copy to clipboard operation
devhome copied to clipboard

Unhandled Exception getting GPU Stats

Open GabrielFernandes-Dev opened this issue 2 years ago • 8 comments

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

GabrielFernandes-Dev avatar Jun 09 '23 15:06 GabrielFernandes-Dev

@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.

krschau avatar Jun 09 '23 17:06 krschau

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

GabrielFernandes-Dev avatar Jun 09 '23 18:06 GabrielFernandes-Dev

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

wsy avatar Apr 14 '24 13:04 wsy

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

LambdaSoft avatar Jun 19 '24 01:06 LambdaSoft

It is still not working for me.

duxingzhe avatar Jun 19 '24 05:06 duxingzhe

Still not working

BigWull avatar Jul 05 '24 12:07 BigWull

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

Serios avatar Jul 13 '24 07:07 Serios