From 02cb526827b8f75dd602c07d262423023d224114 Mon Sep 17 00:00:00 2001 From: Marina Bertolino Date: Fri, 22 Sep 2017 18:23:29 +0200 Subject: [PATCH] BUG: mantis 1422: fix stack size for macx --- Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetModel.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetModel.cxx b/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetModel.cxx index 1fa1e283ef..fba7bea73f 100644 --- a/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetModel.cxx +++ b/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetModel.cxx @@ -166,6 +166,13 @@ QtWidgetModel // launch the output image writing AppliThread * taskAppli = new AppliThread( m_Application ); + #ifdef __APPLE__ + /* bug mantis 1422 : + X Mb *1024*1024 (bytes) + X = 9 to get 9M stacksize! + */ + taskAppli->setStackSize(static_cast(9*1024*1024)); + #endif QObject::connect( taskAppli, -- 2.22.2