From 43627afb24b05348642a1dde1f8ea4591c14032e Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 16 Nov 2021 13:02:44 -0500 Subject: [PATCH] Don't show dialog message when VCV Rack crashes. --- adapters/standalone.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/adapters/standalone.cpp b/adapters/standalone.cpp index 0f051865..16cfb6c8 100644 --- a/adapters/standalone.cpp +++ b/adapters/standalone.cpp @@ -47,12 +47,9 @@ static void fatalSignalHandler(int sig) { // Ignore abort() since we call it below. signal(SIGABRT, NULL); - FATAL("Fatal signal %d. Stack trace:\n%s", sig, system::getStackTrace().c_str()); - - // This might fail because we might not be in the main thread. - // But oh well, we're crashing anyway. - std::string text = APP_NAME + " has crashed. See " + logger::logPath + " for details."; - osdialog_message(OSDIALOG_ERROR, OSDIALOG_OK, text.c_str()); + std::string sigName = "SIG" + string::uppercase(sys_signame[sig]); + std::string stackTrace = system::getStackTrace(); + FATAL("Fatal signal %d %s. Stack trace:\n%s", sig, sigName.c_str(), stackTrace.c_str()); abort(); }