From d2e914b7f0d4d4fffad96e64453d9c79a9b3708e Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Wed, 29 Oct 2025 21:20:30 +0800 Subject: [PATCH] Show app build information in crash log --- src/dev-utils/BaseException.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dev-utils/BaseException.cpp b/src/dev-utils/BaseException.cpp index 9ca16080e3..d5a353b3ca 100644 --- a/src/dev-utils/BaseException.cpp +++ b/src/dev-utils/BaseException.cpp @@ -9,6 +9,8 @@ #include #include +#include "libslic3r_version.h" + static std::string g_log_folder; static std::atomic g_crash_log_count = 0; static std::mutex g_dump_mutex; @@ -35,6 +37,9 @@ CBaseException::CBaseException(HANDLE hProcess, WORD wPID, LPCTSTR lpSymbolPath, auto crash_log_path = boost::filesystem::path(log_folder / buf.str()).make_preferred(); std::string log_filename = crash_log_path.string(); output_file->open(log_filename, std::ios::out | std::ios::app); + + // Output app build info in crash log so we could look for the correct PDB files + OutputString(_T("%s\n\n"), _T(SLIC3R_APP_NAME " " SoftFever_VERSION " Build " GIT_COMMIT_HASH)); } }