Skip to content

PowerCreateRequest - Fatal error. 0xC0000005 #2757

@nietras

Description

@nietras

After upgrading from 0.14.0 to 0.15.0 running benchmarks on github action runners no longer works:

Fatal error. 0xC0000005
   at BenchmarkDotNet.Running.WakeLock+PInvoke.PowerCreateRequest(REASON_CONTEXT)
   at BenchmarkDotNet.Running.WakeLock+PInvoke.PowerCreateRequest(System.String)
   at BenchmarkDotNet.Running.WakeLock+WakeLockSentinel..ctor(BenchmarkDotNet.Configs.WakeLockType, System.String, BenchmarkDotNet.Loggers.ILogger)
   at BenchmarkDotNet.Running.BenchmarkRunnerClean.Run(BenchmarkDotNet.Running.BenchmarkRunInfo[])
   at BenchmarkDotNet.Running.BenchmarkSwitcher.RunWithDirtyAssemblyResolveHelper(System.String[], BenchmarkDotNet.Configs.IConfig, Boolean)
   at BenchmarkDotNet.Running.BenchmarkRunner.RunWithDirtyAssemblyResolveHelper(System.Type[], BenchmarkDotNet.Configs.IConfig, System.String[])

see run at https://github.com/nietras/Sep/actions/runs/15510843198/job/43671737119

Seems like power cfg change now fails hard instead of just warning that it could not change the power cfg due to lack of permissions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions