Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
Crash test mode leaves no core dump on Linux, so test runs stop popping desktop crash notices
islandmed8524c37e6fd2
diff --git a/src/app/CrashLog.cpp b/src/app/CrashLog.cppindex d2bc3074..4c49cd55 100644--- a/src/app/CrashLog.cpp+++ b/src/app/CrashLog.cpp@@ -27,6 +27,9 @@#include <fcntl.h>#include <signal.h>#include <unistd.h>+#if defined(__linux__)+#include <sys/prctl.h>+#endif#if __has_include(<execinfo.h>)#include <execinfo.h>#define SF_HAVE_BACKTRACE 1@@ -296,6 +299,9 @@ void action(const std::string& what) {void quietSystemCrashDialog() {#if defined(_WIN32)SetErrorMode(SetErrorMode(0) | SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);+#elif defined(__linux__)+ // No core dump either: systemd-coredump would store one and the desktop would pop a crash notice per test run.+ prctl(PR_SET_DUMPABLE, 0, 0, 0, 0);#endif}diff --git a/src/app/CrashLog.h b/src/app/CrashLog.hindex 4059a40b..ecf8c936 100644--- a/src/app/CrashLog.h+++ b/src/app/CrashLog.h@@ -20,7 +20,8 @@ void note(const std::string& line);// Something about to be done (a command): logged before it runs, so even a crash no handler sees leaves it as the// log's last line, and named by a crash note. A repeat of the last one isn't written again.void action(const std::string& what);-// For --crash-test: no system crash dialog after the note (Windows Error Reporting would wait for a click).+// For --crash-test: no system crash dialog after the note (Windows Error Reporting would wait for a click), and on+// Linux no core dump (systemd-coredump would keep one and notify the desktop on every test run).void quietSystemCrashDialog();// The session ended normally (the next start doesn't call it a crash).void stop();