Browse Source

Don't show dialog message when VCV Rack crashes.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
43627afb24
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      adapters/standalone.cpp

+ 3
- 6
adapters/standalone.cpp View File

@@ -47,12 +47,9 @@ static void fatalSignalHandler(int sig) {
// Ignore abort() since we call it below. // Ignore abort() since we call it below.
signal(SIGABRT, NULL); 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(); abort();
} }


Loading…
Cancel
Save