Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMException during symbol lookup when using OpenStackViewer and MutableTraceEventStackSource #2108

Open
ara-ayvazyan opened this issue Aug 30, 2024 · 0 comments

Comments

@ara-ayvazyan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant