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 Profiler Crashes with Context Switch feature #856

Open
satyajitidea opened this issue Aug 6, 2024 · 2 comments
Open

Tracy Profiler Crashes with Context Switch feature #856

satyajitidea opened this issue Aug 6, 2024 · 2 comments

Comments

@satyajitidea
Copy link

I am facing one crashing issue with Profiler when Context switch feature is use:

Here is the crashing call stack:

$./tracy-profiler
tracy-profiler: /home/satyajit/projects/tracy/server/TracyWorker.cpp:6673: void tracy::Worker::ProcessContextSwitch(const tracy::QueueContextSwitch&): Assertion `item.End() == -1' failed.
Aborted (core dumped)

Normally, tracy profiler works with context switch information, but occasionally it crashes with above call stack. Any help would be appreciated.

@wolfpld
Copy link
Owner

wolfpld commented Aug 6, 2024

You can probably build with asserts disabled and it will work. The worst that can happen is that some context switches will have incorrect data. But at that point, the incoming data is invalid anyway (the asserts protect against that), so the only solution would be to ignore the offending events. FWIW I can reproduce this on my end.

@satyajitidea
Copy link
Author

Thank you so much!!
After disabling assert,i can see tracy profiler is working as expected.

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

2 participants