From 78a7553c6fccd123c6cebab8101be64e055943cf Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 21 Aug 2026 22:02:50 +0200 Subject: [PATCH] Guarantee forward progress in the plot preprocess loop. --- profiler/src/profiler/TracyTimelineItemPlot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyTimelineItemPlot.cpp b/profiler/src/profiler/TracyTimelineItemPlot.cpp index c6b0b138..07689ccc 100644 --- a/profiler/src/profiler/TracyTimelineItemPlot.cpp +++ b/profiler/src/profiler/TracyTimelineItemPlot.cpp @@ -199,7 +199,7 @@ void TimelineItemPlot::Preprocess( const TimelineContext& ctx, TaskDispatch& td, while( it < end ) { auto next = std::upper_bound( it, end, int64_t( it->time.Val() + MinVisNs ), [] ( const auto& l, const auto& r ) { return l < r.time.Val(); } ); - assert( next > it ); + if( next <= it ) next = it + 1; const auto rsz = uint32_t( next - it ); if( rsz < 4 ) {