#758·tracy

Negative TscTime triggered assertion

Author: IIIIIIIIllCreated Mar 23, 2024Updated Aug 21, 2026

Using v0.10 on Ubuntu 20.04 Crash site is tracy/server/TracyWorker.cpp:5031 with this line of code : assert( fd->frames.empty() || fd->frames.back().start <= time );

Reproducible with the following code snippet.

#include <iostream>
#include "tracy/public/tracy/Tracy.hpp"

int main() {
    while (true) {
        std::cout << "Hello, World!" << std::endl;
        //#1 optional sleep
        FrameMark;
    }
    return 0;
}

I tried to inspect the issue with gdb and found somehow the call to get time on line 5030 (const auto time = TscTime( ev.time );) gives negative result. Interestingly when I added a sleep before the FrameMark, it usually takes a bit longer for tracy to crash.