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

Sampling capture silently fails on Windows #157

Open
mropert opened this issue Apr 3, 2022 · 0 comments
Open

Sampling capture silently fails on Windows #157

mropert opened this issue Apr 3, 2022 · 0 comments

Comments

@mropert
Copy link

mropert commented Apr 3, 2022

Trying to get sampling profiles on Windows sometimes results in an empty capture.

It is unclear to me what exactly fails. Here's what I found so far:

  • Sample captures are usually missing on a new machine/setup. Instrumentation works fine.
  • Debugging the target app once in MSVC and loading all symbols seems to fix subsequent capture.
  • Clearing the symbol cache in MSVC does not break the ability to make new sampling captures.

There seems to be some quirk of DbgHelp that is fixed by debugging the target once in MSVC. Perhaps logging/reporting the errors returned by the Windows API in the Optick library could shed more light to it?

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