tracy icon indicating copy to clipboard operation
tracy copied to clipboard

[0.12.2] Fiber visualization seems broken

Open jamezmoran opened this issue 1 year ago • 3 comments

The active status of fibers seem to be showing up incorrectly recently, specifically all zones seem to show up as inactive. I've got a minimal repro to illustrate this:

int main() {
  tracy::StartupProfiler();
  std::this_thread::sleep_for(5s);
  for (int i = 0; i < 100; ++i) {
    TracyCFiberEnter("TestFiber");
    TracyCZoneN(ctx1, "inside fiber", true);
    std::this_thread::sleep_for(10ms);
    TracyCZoneEnd(ctx1);
    TracyCFiberLeave;

    TracyCZoneN(ctx2, "outside fiber", true);
    std::this_thread::sleep_for(10ms);
    TracyCZoneEnd(ctx2);

    TracyCFrameMark;
  }
  tracy::ShutdownProfiler();
  return 0;
}
Image

Notice how the execution bar above the fiber is always green, even though we definitely are entering and exiting the fiber, and the zones appear to fade out further to the left indicating they were inactive.

The expected behaviour of this is that the zones 'inside fiber' should not be a faded color, the execution status of the fiber is red during the 'outside fiber' zone on the main thread where we left the fiber. I've considered that I might be doing something wrong, but the example above seems fairly textbook. Is this a bug in tracy?

jamezmoran avatar Nov 22 '25 22:11 jamezmoran

Related PR: #1088

pvande avatar Nov 23 '25 23:11 pvande

Related PR: #1088

Oh nice, so I can assume this is in 0.13 ?

jamezmoran avatar Nov 24 '25 18:11 jamezmoran

Can we get confirmation if this has been resolved with https://github.com/wolfpld/tracy/pull/1088 / 0.13.x?

slomp avatar Dec 18 '25 00:12 slomp