From: Anthony Geay Date: Wed, 23 Jun 2021 11:34:52 +0000 (+0200) Subject: Avoid sigegv at exit due to pyqt5.15 X-Git-Tag: V9_8_0a1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5d4427b78b316a952964e851029958ce10b213ad;p=modules%2Fgui.git Avoid sigegv at exit due to pyqt5.15 --- diff --git a/src/Session/salome2810.cxx b/src/Session/salome2810.cxx index ec9f80443..9f0c2999f 100644 --- a/src/Session/salome2810.cxx +++ b/src/Session/salome2810.cxx @@ -27,6 +27,7 @@ int main(int argc, char *argv[]) { constexpr char MAIN_PROGRAM[] = "SALOME_Session_Server_No_Server"; constexpr char NO_SERVER_ENV_VAR[] = "SALOME_EMB_SERVANT"; + constexpr char PYQT5_NOT_MASTER[] = "PYQT5_NOT_MASTER"; #ifndef WIN32 const char *MODULES[]={"SHAPERSTUDY","GEOM","SMESH","YACS","HYBRIDPLUGIN","GHS3DPLUGIN","BLSURFPLUGIN","GMSHPLUGIN","HEXABLOCKPLUGIN","HEXOTICPLUGIN","GHS3DPRLPLUGIN","NETGENPLUGIN"}; const char *MODULES_PATH[]={"GUI","SHAPER","SHAPERSTUDY","GEOM","SMESH","YACS","HYBRIDPLUGIN","GHS3DPLUGIN","BLSURFPLUGIN","GMSHPLUGIN","HEXABLOCKPLUGIN","GHS3DPRLPLUGIN","NETGENPLUGIN"}; @@ -52,6 +53,7 @@ int main(int argc, char *argv[]) pe.insert(APPCONFIG,appconfig_val); //tells shutup to salome.salome_init invoked at shaper engine ignition pe.insert(NO_SERVER_ENV_VAR,"1"); + pe.insert(PYQT5_NOT_MASTER,"1"); //resource file retrieve QString resfile; {