From 6b2abcb47a1195dae73bde04203070512e161fc6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 28 Jul 2026 23:47:49 +0200 Subject: [PATCH] Properly set countMap to 0 when loading a trace. The live capture code path already does the equivalent thing. --- server/TracyWorker.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index d055cf81..a9a8600a 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -1788,6 +1788,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks, bool allow if( !t->timeline.empty() ) { uint8_t countMap[64*1024]; + memset( countMap, 0, sizeof( countMap ) ); // Don't touch thread compression cache in a thread. ProcessTimeline( countMap, t->timeline, m_data.localThreadCompress.DecompressMustRaw( t->id ) ); }