From: nds Date: Thu, 1 Feb 2018 04:00:59 +0000 (+0300) Subject: Issue #2431 SISGSEGV when launching some unit tests from GUI X-Git-Tag: V_3.0.0~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ecc066ef36710d36a994a21e341d60d44b46de06;p=modules%2Fshaper.git Issue #2431 SISGSEGV when launching some unit tests from GUI Workaround, to debug XGUI_DataModel and Model connection later to see why the model index is not valid and leads to crash. --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index a10860767..70f6736b5 100755 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -1400,8 +1400,9 @@ void PartSet_Module::processEvent(const std::shared_ptr& 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);