Skip to content

[0.12.2] Fiber visualization seems broken #1204

@jamezmoran

Description

@jamezmoran

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting responseClarification on something is requested from the reporterbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions