Skip to content

Crash when running benchmarks on my machine #39

@Charanor

Description

@Charanor

Hello! I'm developing an ECS and wanted to use this to check its performance, however when running the benchmarks on my machine (Windows 10, running as administrator, on master branch without any changes) the script crashes when running the SystemWithOneComponent.DefaultEcs_ComponentSystem_MonoThread job. All benchmarks up until that point run fine.

Log file is attached, it does not include the exception so I will paste it below. The exception occurs between // Benchmark Process 16068 has exited with code 0. and Successfully reverted power plan (GUID: 381b4222-f694-41f0-9685-ff5bb260df2e FriendlyName: Balanced) lines at the very end of the log, if it matters.

BenchmarkRun-20240607-055225.log

Unhandled exception. System.InvalidOperationException: One workload iteration stop event is missing, unable to calculate stats
   at BenchmarkDotNet.Diagnostics.Windows.Tracing.ProcessMetrics.CalculateMetrics(Dictionary`2 profileSourceIdToInterval, PreciseMachineCounter[] counters)
   at BenchmarkDotNet.Diagnostics.Windows.Tracing.TraceLogParser.Parse(TraceLogEventSource traceLogEventSource, PreciseMachineCounter[] counters)
   at BenchmarkDotNet.Diagnostics.Windows.Tracing.TraceLogParser.Parse(String etlFilePath, PreciseMachineCounter[] counters)
   at BenchmarkDotNet.Diagnostics.Windows.EtwProfiler.ProcessResults(DiagnoserResults results)
   at BenchmarkDotNet.Diagnosers.CompositeDiagnoser.<>c__DisplayClass10_0.<ProcessResults>b__0(IDiagnoser diagnoser)
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
   at BenchmarkDotNet.Running.BenchmarkRunnerClean.Execute(ILogger logger, BenchmarkCase benchmarkCase, BenchmarkId benchmarkId, IToolchain toolchain, BuildResult buildResult, IResolver resolver)
   at BenchmarkDotNet.Running.BenchmarkRunnerClean.RunCore(BenchmarkCase benchmarkCase, BenchmarkId benchmarkId, ILogger logger, IResolver resolver, BuildResult buildResult)
   at BenchmarkDotNet.Running.BenchmarkRunnerClean.Run(BenchmarkRunInfo benchmarkRunInfo, Dictionary`2 buildResults, IResolver resolver, ILogger logger, EventProcessor eventProcessor, List`1 artifactsToCleanup, String resultsFolderPath, String logFilePath, Int32 totalBenchmarkCount, StartedClock& runsChronometer, Int32& benchmarksToRunCount, TaskbarProgress taskbarProgress)
   at BenchmarkDotNet.Running.BenchmarkRunnerClean.Run(BenchmarkRunInfo[] benchmarkRunInfos)
   at BenchmarkDotNet.Running.BenchmarkSwitcher.RunWithDirtyAssemblyResolveHelper(String[] args, IConfig config, Boolean askUserForInput)
   at BenchmarkDotNet.Running.BenchmarkSwitcher.Run(String[] args, IConfig config)
   at Program.<Main>$(String[] args) in E:\Projects\C#\Ecs.CSharp.Benchmark\source\Ecs.CSharp.Benchmark\Program.cs:line 32

P.S. is the benchmark supposed to take hours to run? The estimate (before crash) said something like 2h 50m which seems really long! Running on a i6 9600k @ 4.9Ghz with "high" priority in task manager for reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions