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

tracy::DecodeCallstackPtr crashes if called too early #767

Open
not-magic opened this issue Apr 10, 2024 · 0 comments
Open

tracy::DecodeCallstackPtr crashes if called too early #767

not-magic opened this issue Apr 10, 2024 · 0 comments

Comments

@not-magic
Copy link

The callstack decoder would be very useful to hook into for applications, e.g. to report a callstack on an assert or in a log.

This is almost doable now including #include <client/TracyCallstack.hpp> and using tracy::DecodeCallstackPtr

The issue I am running into is if you try to call it too early it will crash because the callstack background worker hasn't finished yet. All I would need is some way to wait on these threads but I can't see a way to do that. I am using it with vcpkg so I guess a feature would need to be added to define TRACY_DBGHELP_LOCK?

Currently my workaround is to just sleep until at least 1 second has passed since app startup before calling tracy::DecodeCallstackPtr

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