From 2191885f86cf9452c207687c5f2e21050880ccbb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 12 Sep 2026 20:00:58 +0200 Subject: [PATCH] Show a generic message for unreadable or corrupted trace files. FileReadError now also signals truncated or malformed traces, not just mapping failures, so the mmap-specific text misled users. --- profiler/src/profiler/TracyBadVersion.cpp | 2 +- update/src/update.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/profiler/src/profiler/TracyBadVersion.cpp b/profiler/src/profiler/TracyBadVersion.cpp index 9ae2a2af..c345b8af 100644 --- a/profiler/src/profiler/TracyBadVersion.cpp +++ b/profiler/src/profiler/TracyBadVersion.cpp @@ -58,7 +58,7 @@ void BadVersionImpl( BadVersionState& badVer ) ImGui::PushFont( g_fonts.normal, FontBig ); TextCentered( ICON_FA_TRIANGLE_EXCLAMATION ); ImGui::PopFont(); - ImGui::Text( "The file you are trying to open cannot be mapped to memory." ); + ImGui::Text( "The file could not be read or is corrupted." ); ImGui::Separator(); if( ImGui::Button( "OK" ) ) { diff --git a/update/src/update.cpp b/update/src/update.cpp index 2b006ed5..95308fa7 100644 --- a/update/src/update.cpp +++ b/update/src/update.cpp @@ -256,7 +256,7 @@ int main( int argc, char** argv ) } catch( const tracy::FileReadError& e ) { - fprintf( stderr, "The file you are trying to open cannot be mapped to memory.\n" ); + fprintf( stderr, "The file could not be read or is corrupted.\n" ); exit( 1 ); } catch( const tracy::LegacyVersion& e )