Skip to content

Scaphandre reports Could'nt get process group affinity, WIN32_ERROR(998) on Windows 11 #419

@bpetit

Description

@bpetit

Bug description

Scaphandre reports an error about the process group affinity, on Windows 11 23H2 Family

scaphandre::sensors::msr_rapl: Could'nt get process group affinity
scaphandre::sensors::msr_rapl: Error was : WIN32_ERROR(998)

To Reproduce

On the same Windows 11 version:

  • compilation of windows-rapl-driver with Visual Studio 2022 (following the project's readme)
  • build scaphandre in debug mode, with cargo (following scaphandre doc)
  • install the driver manually (apply test mode, reboot, DriverLoader.exe install
  • the driver appears to work properly in driverquery
  • run scaphandre stdout

It still gives power data, but the error is confusing.

Expected behavior

Silence this error if this is not actually impacting the user. If it is, this is a bug.

Environment

Windows system information:

Nom du système d’exploitation	Microsoft Windows 11 Famille
Version	10.0.22631 Build 22631
Autre description du système d’exploitation	Non disponible
Fabricant du système d’exploitation	Microsoft Corporation
Ordinateur	DESKTOP-L79CG3D
Fabricant	LENOVO
Modèle	20L8S0Y800
Type	PC à base de x64
Référence (SKU) du système	LENOVO_MT_20L8_BU_Think_FM_ThinkPad T480s
Processeur	Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz, 1800 MHz, 4 cœur(s), 8 processeur(s) logique(s)
Version du BIOS/Date	LENOVO N22ET85W (1.62 ), 05/09/2025
Version SMBIOS	3.0
Version du contrôleur embarqué	1.23
Mode BIOS	UEFI
Fabricant de la carte de base	LENOVO
Produit de la carte de base	20L8S0Y800
Version de la carte de base	SDK0J40697 WIN
Rôle de la plateforme	Mobile
État du démarrage sécurisé	Désactivé
Configuration de PCR 7	Élévation requise à afficher

Additional context

Just installed 23h2 update of windows 11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions