Skip to content

COMException during symbol lookup when using OpenStackViewer and MutableTraceEventStackSource #2108

Open

Description

When opening a stack view via OpenStackViewer with MutableTraceEventStackSource from an extension, symbols are loaded and shown as expected.
However, the following exception occurs when trying to open any other view, e.g., built-in "CPU Stacks", and no symbols are shown.

An exception occurred during symbol lookup.  Continuing...
Exception: System.Runtime.InteropServices.COMException (0x80040155): Interface not registered (Exception from HRESULT: 0x80040155)
   at Dia2Lib.DiaLoader.IClassFactory.CreateInstance(Object aggregator, Guid& refiid, Object& createdObject)
   at Dia2Lib.DiaLoader.GetDiaSourceObject()
   at Microsoft.Diagnostics.Symbols.NativeSymbolModule..ctor(SymbolReader reader, String pdbFilePath, Action`1 loadData)
   at Microsoft.Diagnostics.Symbols.SymbolReader.OpenSymbolFile(String pdbFilePath)
   at Microsoft.Diagnostics.Tracing.Etlx.TraceCodeAddresses.OpenPdbForModuleFile(SymbolReader symReader, TraceModuleFile moduleFile)
   at Microsoft.Diagnostics.Tracing.Etlx.TraceCodeAddresses.LookupSymbolsForModule(SymbolReader reader, TraceModuleFile moduleFile, IEnumerator`1 codeAddressIndexCursor, Boolean enumerateAll, Int32& totalAddressCount)
   at Microsoft.Diagnostics.Tracing.Etlx.TraceCodeAddresses.LookupSymbolsForModule(SymbolReader reader, TraceModuleFile file)
Completed: Looking up high importance PDBs that are locally cached   (Elapsed Time: 0.079 sec)

Same happens when opening them in the reverse order. Essentially, the first view has no issues with loading symbols, while the second one fails with the above exception.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions