#3964 - Attempt to fix crash when closing on Linux (Debian unstable)

This commit is contained in:
enricoturri1966 2020-04-01 09:58:31 +02:00
parent daa6dd0a25
commit 1f3046f65d
4 changed files with 23 additions and 7 deletions

View file

@ -214,6 +214,10 @@ void MainFrame::shutdown()
// when closing the application using Command+Q, a mouse event is triggered after this lambda is completed,
// causing a crash
if (m_plater) m_plater->unbind_canvas_event_handlers();
// Cleanup of canvases' volumes needs to be done here or a crash may happen on some Linux Debian flavours
// see: https://github.com/prusa3d/PrusaSlicer/issues/3964
if (m_plater) m_plater->reset_canvas_volumes();
#endif // ENABLE_NON_STATIC_CANVAS_MANAGER
// Weird things happen as the Paint messages are floating around the windows being destructed.