From ecc066ef36710d36a994a21e341d60d44b46de06 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 1 Feb 2018 07:00:59 +0300 Subject: [PATCH] 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. --- src/PartSet/PartSet_Module.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.39.2