Windows Performance Analyzer unable to open etl files 0x80070032

Harry Clarke 100 Reputation points
2023-02-02T16:41:16.1133333+00:00
...
[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.
105 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Evgeny Vasilenko 30 Reputation points
    2023-07-05T00:53:31.38+00:00

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

    6 people found this answer helpful.

  2. Tristan Gibeau 76 Reputation points Microsoft Employee
    2023-02-05T04:07:25.0466667+00:00

    Hi Harry,

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

    https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewSDK

    https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewADK

    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.

    Tristan

    2 people found this answer helpful.

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Mike Tompson 16 Reputation points
    2024-03-15T20:23:00.6833333+00:00

    Any update to this issue? I just installed the SDK v10.1.22621.3233 from https://go.microsoft.com/fwlink/?linkid=2261842 and performed the Boot Trace using WPR on my W10 Pro 22H2 Build 19045.4170. WPA v11.1.5.2 got to about 50% while analyzing the .etl file, then gave the dreaded error: "An exception occurred while processing the events: 0x80070032".


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.