You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Running benchmark with BenchmarkDotNet 15.0 fails with Fatal error. 0xC0000005, WakeLock #2745
Using version 14.0, the benchmark runs successfully. Updating to version 15, running the benchmark fails with a fatal error:
Build succeeded in 3,4s
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.BenchmarkRunner.RunWithDirtyAssemblyResolveHelper(System.Type, BenchmarkDotNet.Configs.IConfig, System.String[])
at BenchmarkDotNet.Running.BenchmarkRunner+<>c__DisplayClass0_0`1[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<Run>b__0()
at BenchmarkDotNet.Running.BenchmarkRunner.RunWithExceptionHandling(System.Func`1<BenchmarkDotNet.Reports.Summary>)
at BenchmarkDotNet.Running.BenchmarkRunner.Run[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](BenchmarkDotNet.Configs.IConfig, System.String[])
at Program.<Main>$(System.String[])
The reason might be I'm using a Surface Copilot device with ARM CPU (Snapdragon X 12-Core X1E80100 @3.40 GHz).
Activity
timcassell commentedon May 31, 2025
cc @leonvandermeer
timcassell commentedon Jun 2, 2025
@christiannagel Since you have the device to repro this issue, can you try to fix it and send a PR? https://github.com/dotnet/BenchmarkDotNet/blob/93d12c42c0adbc33702cdc42e1fc494d2c919208/src/BenchmarkDotNet/Running/WakeLock.cs
christiannagel commentedon Jun 2, 2025
@timcassell I'm currently speaking at a conference in Slovenia with limited time. I'll try to look into fixing it during the weekend.
Refactor REASON_CONTEXT structure to support the stricter memory layo…
Refactor WakeLock.PInvoke for compatibility with the ARM CPU dotnet#2745
Refactor WakeLock.PInvoke for compatibility with the ARM CPU #2745 (#…
nietras commentedon Jun 7, 2025
@timcassell you can use the
windows-11-armgithub runner for testing.timcassell commentedon Jun 7, 2025
Can you send a PR?
nietras commentedon Jun 8, 2025
#2760 and #2761
Bump BenchmarkDotNet from 0.14.0 to 0.15.3 (#18084)
Bump BenchmarkDotNet from 0.14.0 to 0.15.6 (#9)
build: Bump AwesomeAssertions and 7 others (#83)
Bump BenchmarkDotNet from 0.13.12 to 0.15.8 (#301)