From 79f7d99b0258c383606187ef4c0b9196158178fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Mon, 30 Mar 2026 22:09:14 +0200 Subject: [PATCH] Add SymSrv.dll check This is often a source of missing symbols or incomprehension as to why they are not getting resolved. Having a debug log will help debugging such cases. --- public/client/TracyCallstack.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/client/TracyCallstack.cpp b/public/client/TracyCallstack.cpp index d693d579..af912569 100644 --- a/public/client/TracyCallstack.cpp +++ b/public/client/TracyCallstack.cpp @@ -437,6 +437,11 @@ void DbgHelpInit() { SymError( "SymInitialize", GetLastError() ); } + else if( GetModuleHandleA( "SymSrv.dll" ) == NULL ) + { + TracyDebug( "SymSrv.dll was not loaded, it needs to be near a matching version of DbgHelp.dll. Symbol resolution may fail as symbol servers will not be used. See https://learn.microsoft.com/en-us/windows/win32/debug/calling-the-dbghelp-library" ); + } + #ifdef TRACY_DBGHELP_LOCK DBGHELP_UNLOCK;