From b22fcdc1746053473d6b7a4f14e0303cd8805d69 Mon Sep 17 00:00:00 2001 From: Filip Sykala Date: Wed, 15 Dec 2021 09:23:47 +0100 Subject: [PATCH] Fix GTK is not thread safe. --- src/slic3r/GUI/Jobs/EmbossJob.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/Jobs/EmbossJob.cpp b/src/slic3r/GUI/Jobs/EmbossJob.cpp index 1c26f19e17..259b1d7d3d 100644 --- a/src/slic3r/GUI/Jobs/EmbossJob.cpp +++ b/src/slic3r/GUI/Jobs/EmbossJob.cpp @@ -15,9 +15,10 @@ using namespace Slic3r; using namespace GUI; void EmbossJob::process(Ctl &ctl) { - // Changing cursor to busy - wxBeginBusyCursor(); - ScopeGuard sg([]() { wxEndBusyCursor(); }); + // Changing cursor to busy must be inside main thread + // GTK is not thread safe. + //wxBeginBusyCursor(); + //ScopeGuard sg([]() { wxEndBusyCursor(); }); // only for sure assert(m_input != nullptr);