From 2a3792aaa39769a90850809935f2aa24cf233070 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 19 Aug 2026 17:53:11 +0200 Subject: [PATCH] Handle source code queries in no-callstack builds. The symbol worker thread, which answers source code queries, only exists when call stack support is compiled in. Handle the query directly in the main thread so it is always answered and the server can terminate. --- public/client/TracyProfiler.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp index ed5c0455..03c07b5d 100644 --- a/public/client/TracyProfiler.cpp +++ b/public/client/TracyProfiler.cpp @@ -3980,7 +3980,14 @@ bool Profiler::HandleServerQuery() break; #endif case ServerQuerySourceCode: +#ifdef TRACY_HAS_CALLSTACK QueueSourceCodeQuery( uint32_t( ptr ) ); +#else + TRACY_ASSERT( m_queryData ); + HandleSourceCodeQuery( m_queryData, m_queryImage, uint32_t( ptr ) ); + m_queryData = nullptr; + m_queryImage = nullptr; +#endif break; case ServerQueryDataTransfer: if( m_queryData )