Windows Performance Analyzer unable to open etl files 0x80070032

Harry Clarke 75 Reputation points
[XPerfCustomDataSource.XPerfDataProcessor]: Verbose - Enable table TraceStatsTable [b44f0dc4-f9fe-4aec-938e-7d0fd50cee92 - Trace Statistics]
[XPerfCustomDataSource.XPerfDataProcessor]: Verbose - Process the trace
An exception occurred while processing the events: 0x80070032. Aborting processing.

Unable to process 'file:///C:/Users/harry/My Drive/power.etl': System.Runtime.InteropServices.COMException (0x80070032): The request is not supported. (0x80070032)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at XPerfCustomDataSource.XPerfDataProcessor.ProcessEvents(IProgressCallback progressCallback)
   at XPerfCustomDataSource.XPerfDataProcessor.TryProcessTrace(ILogger logger, InteropProgressCallback progressCallback, Action`1 processEvents, CancellationToken cancellationToken)
   at XPerfCustomDataSource.XPerfDataProcessor.ProcessTrace(XPerfThreadProcArg xPerfArgs)
   at XPerfCustomDataSource.XPerfDataProcessor.XPerfThreadProc(Object state)
   at XPerfCustomDataSource.XPerfThread.<>c__DisplayClass2_0.<Run>b__0(Object x)
--- End of stack trace from previous location where exception was thrown ---
   at XPerfCustomDataSource.XPerfThread.Run(ParameterizedThreadStart action, Object state)
   at XPerfCustomDataSource.Extensibility.EtwParser.ProcessSource(ISourceDataProcessor`3 dataProcessor, ILogger logger, IProgress`1 progress, CancellationToken cancellationToken)
   at Microsoft.Performance.SDK.Runtime.Extensibility.SourceProcessingSession`3.ProcessSource(ILogger logger, IProgress`1 totalProgress, CancellationToken cancellationToken)
   at Microsoft.Performance.SDK.Processing.CustomDataProcessorWithSourceParser`3.ProcessAsyncCore(IProgress`1 progress, CancellationToken cancellationToken)
   at XPerfCustomDataSource.XPerfDataProcessor.ProcessAsyncCore(IProgress`1 progress, CancellationToken cancellationToken)
   at Microsoft.Performance.SDK.Processing.CustomDataProcessor.ProcessAsync(IProgress`1 progress, CancellationToken cancellationToken)
   at Microsoft.Performance.SDK.Runtime.ProcessingSourceExecutor.ExecuteAsync(CancellationToken cancellationToken)
Unable to process any data sources.

Most traces I generate on my machine are considered invalid by WPA.

wpr -start power
:: Wait about a minute
wpr -stop power.etl

The process gets about half way before giving up:

User's image

Having moved traces between my machines, I can see that the trace file is the problem.

Traces moved to this machine work with this instance of WPA, but traces moved to other machine's instances of WPA still fail to load.

Please could I get some guidance?
I'm trying to get to the bottom of why my computer won't sleep anymore, and I've exhausted the capabilities of powercfg.

Windows Performance Toolkit
Windows Performance Toolkit
A collection of Microsoft performance monitoring tools that produce in-depth performance profiles of Windows operating systems and applications.
64 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Evgeny Vasilenko 15 Reputation points

    Have same issue, Windows Performance Analyzer (Preview) from windows store solving this.

    3 people found this answer helpful.

  2. Tristan Gibeau 71 Reputation points Microsoft Employee

    Hi Harry,

    Could you try the latest preview of WPA in the ADK or SDK?

    We are tracking an issue with an ETW event emitted by .NET 7 that reports a similar error code during processing, the latest previews have a mitigation to work around the issue.


    2 people found this answer helpful.