dotnet / dotnet/BenchmarkDotNet
COMException when generating ETW Log for benchmark
- Lingua principale
- C#
- Stelle
- 11.5k
- Fork
- 1.1k
- Merge medio
- 6g 11h
- PR unite (30g)
- 12
Descrizione
Just posting this here for visibility as it's the same problem as microsoft/perfview#1723.
I'm seeing COMExceptions when trying to generate an ETW trace for a benchmark.
The exception is
```
Unhandled exception. System.Runtime.InteropServices.COMException (0x800700AA): The requested resource is in use. (0x800700AA)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Microsoft.Diagnostics.Tracing.Session.TraceEventSession.EnableKernelProvider(Keywords flags, Keywords stackCapture)
at BenchmarkDotNet.Diagnostics.Windows.KernelSession.EnableProviders()
at BenchmarkDotNet.Diagnostics.Windows.EtwProfiler.Start(DiagnoserActionParameters parameters)
at BenchmarkDotNet.Diagnostics.Windows.EtwProfiler.Handle(HostSignal signal, DiagnoserActionParameters parameters)
at BenchmarkDotNet.Diagnosers.CompositeDiagnoser.Handle(HostSignal signal, DiagnoserActionParameters parameters)
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia confrontando questo report con microsoft/perfview#1723, quindi segui lo stack da BenchmarkDotNet.Diagnostics.Windows.EtwProfiler.Start passando per KernelSession.EnableProviders e TraceEventSession.EnableKernelProvider. Riproduci il problema di generazione della traccia ETW e documenta una soluzione confermata per la COMException dovuta a una risorsa in uso.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- observability, performance
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100