]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2431 SISGSEGV when launching some unit tests from GUI
authornds <nds@opencascade.com>
Thu, 1 Feb 2018 04:00:59 +0000 (07:00 +0300)
committernds <nds@opencascade.com>
Thu, 1 Feb 2018 04:01:34 +0000 (07:01 +0300)
Workaround, to debug XGUI_DataModel and Model connection later to see why the model index is not valid and leads to crash.

src/PartSet/PartSet_Module.cpp

index a1086076715eff6389bff1c8f3e77601688fbfd1..70f6736b51f0c3c955c7b406c42ba577904ef242 100755 (executable)
@@ -1400,8 +1400,9 @@ void PartSet_Module::processEvent(const std::shared_ptr<Events_Message>& theMess
 
     SessionPtr aMgr = ModelAPI_Session::get();
     DocumentPtr aActiveDoc = aMgr->activeDocument();
-    if (myActivePartIndex.isValid())
-      aTreeView->setExpanded(myActivePartIndex, false);
+    // workaround for #2431 (SISGSEGV when launching some unit tests from GUI)
+    //if (myActivePartIndex.isValid())
+    //  aTreeView->setExpanded(myActivePartIndex, false);
 
     XGUI_DataModel* aDataModel = aWorkshop->objectBrowser()->dataModel();
     myActivePartIndex = aDataModel->documentRootIndex(aActiveDoc, 0);