View Issue Details

IDProjectCategoryView StatusLast Update
0001043DrawingBugpublic2013-07-01 15:37
Reporterpeterinker Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Fixed in Version0.14 
Summary0001043: Crash on inserting a view from model in sketcher
DescriptionI have a rather complex part imported from a .stp file. To create a drawing I did the following:

 * Clicked "Insert new drawing (A4 landscape)"
 * Clicked "Insert clip group in the active drawing"
 * Clicked "Insert an orthographic projection of a part in the active drawing"
 * Selected "Front" as primary view
 * As secondary view I checked the checkbox right below the middle one
   FreeCAD told me "Fata Error... " in the status bar
 * I unchecked the checkbox right below the middle view
 * FreeCAD crashed

I'm sorry that I can't share a .fcstd or .stp file.

OS: Linux
Platform: 64-bit
Version: 0.13.1884 (Git)
Branch: master
Hash: 540bf6e655303c0c114b38bf546f445313737d66
Python version: 2.7.3
Qt version: 4.8.4
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.5.4
TagsNo tags attached.

Activities

2013-03-02 17:47

 

backtrace (6,990 bytes)   
Program received signal SIGSEGV, Segmentation fault.
0x00007fffd16cd168 in LU_Decompose(math_Matrix&, math_IntegerVector&, double&, math_Vector&, double) () from /opt/opencascade/lib/libTKMath.so.0
#### Note by submitter: Here FreeCad notified me about a "Fatal error" in the status bar after I selected a checkbox in the secondary view ######
(gdb) continue
Continuing.
#### Note by submitter: Here I de-selected the checkbox from the secondary view again #####
SIGSEGV signal raised
Fatal error occurred while projecting shape

Program received signal SIGSEGV, Segmentation fault.
0x00007fffd16cd168 in LU_Decompose(math_Matrix&, math_IntegerVector&, double&, math_Vector&, double) () from /opt/opencascade/lib/libTKMath.so.0
(gdb) backtrace
#0  0x00007fffd16cd168 in LU_Decompose(math_Matrix&, math_IntegerVector&, double&, math_Vector&, double) () from /opt/opencascade/lib/libTKMath.so.0
#1  0x00007fffd16cd330 in LU_Decompose(math_Matrix&, math_IntegerVector&, double&, double) () from /opt/opencascade/lib/libTKMath.so.0
#2  0x00007fffd16c3f35 in math_Gauss::math_Gauss(math_Matrix const&, double) () from /opt/opencascade/lib/libTKMath.so.0
#3  0x00007fffd16c0ab9 in ?? () from /opt/opencascade/lib/libTKMath.so.0
#4  0x00007fffd16c1c80 in math_FunctionSetRoot::Perform(math_FunctionSetWithDerivatives&, math_Vector const&, math_Vector const&, math_Vector const&) ()
   from /opt/opencascade/lib/libTKMath.so.0
#5  0x00007fff5748c85e in HLRBRep_TheExactInterCSurf::Perform(double, double, double, math_FunctionSetRoot&, double, double, double, double, double, double) ()
   from /opt/opencascade/lib/libTKHLR.so.0
#6  0x00007fff5747f071 in HLRBRep_InterCSurf::InternalPerform(gp_Lin const&, HLRBRep_ThePolygonOfInterCSurf const&, void* const&, HLRBRep_ThePolyhedronOfInterCSurf const&, double, double, double, double) () from /opt/opencascade/lib/libTKHLR.so.0
#7  0x00007fff574c8c2d in HLRBRep_Intersector::Perform(gp_Lin const&, double) () from /opt/opencascade/lib/libTKHLR.so.0
#8  0x00007fff574bc3f6 in HLRBRep_Data::Classify(int, HLRBRep_EdgeData const&, unsigned int, int&, double) () from /opt/opencascade/lib/libTKHLR.so.0
#9  0x00007fff574bc79c in HLRBRep_Data::Compare(int, HLRBRep_EdgeData const&) () from /opt/opencascade/lib/libTKHLR.so.0
#10 0x00007fff574c46e0 in HLRBRep_Hider::Hide(int, BRepTopAdaptor_MapOfShapeTool&) () from /opt/opencascade/lib/libTKHLR.so.0
#11 0x00007fff574c6910 in HLRBRep_InternalAlgo::HideSelected(int, unsigned int) () from /opt/opencascade/lib/libTKHLR.so.0
#12 0x00007fff574c703d in HLRBRep_InternalAlgo::Hide() () from /opt/opencascade/lib/libTKHLR.so.0
#13 0x00007fff57750e6f in Drawing::ProjectionAlgos::execute() () from /usr/lib/freecad-git/lib/Drawing.so
#14 0x00007fff57751e46 in Drawing::ProjectionAlgos::ProjectionAlgos(TopoDS_Shape const&, Base::Vector3<float> const&) () from /usr/lib/freecad-git/lib/Drawing.so
#15 0x00007fff57743e8c in Drawing::FeatureViewPart::execute() () from /usr/lib/freecad-git/lib/Drawing.so
#16 0x00007ffff70f7bc2 in App::DocumentObject::recompute() () from /usr/lib/freecad-git/lib/libFreeCADApp.so
#17 0x00007ffff70d656c in App::Document::_recomputeFeature(App::DocumentObject*) () from /usr/lib/freecad-git/lib/libFreeCADApp.so
#18 0x00007ffff70d6c67 in App::Document::recompute() () from /usr/lib/freecad-git/lib/libFreeCADApp.so
#19 0x00007ffff71095bb in App::DocumentPy::recompute(_object*) () from /usr/lib/freecad-git/lib/libFreeCADApp.so
#20 0x00007ffff71095f3 in App::DocumentPy::staticCallback_recompute(_object*, _object*) () from /usr/lib/freecad-git/lib/libFreeCADApp.so
#21 0x00007ffff69ec05a in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#22 0x00007ffff69ecedd in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
#23 0x00007ffff69ecfb2 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
#24 0x00007ffff6a05eea in run_mod () from /usr/lib/libpython2.7.so.1.0
#25 0x00007ffff6a06ab8 in PyRun_StringFlags () from /usr/lib/libpython2.7.so.1.0
#26 0x00007ffff6d89733 in Base::InterpreterSingleton::runString(char const*) () from /usr/lib/freecad-git/lib/libFreeCADBase.so
---Type <return> to continue, or q <return> to quit---
#27 0x00007ffff7651dd2 in Gui::Command::doCommand(Gui::Command::DoCmd_Type, char const*, ...) () from /usr/lib/freecad-git/lib/libFreeCADGui.so
#28 0x00007ffff7652142 in Gui::Command::updateActive() () from /usr/lib/freecad-git/lib/libFreeCADGui.so
#29 0x00007fff5798d041 in DrawingGui::TaskOrthoViews::compute() () from /usr/lib/freecad-git/lib/DrawingGui.so
#30 0x00007fff5798d60e in DrawingGui::TaskOrthoViews::cb_toggled(bool) () from /usr/lib/freecad-git/lib/DrawingGui.so
#31 0x00007ffff56e0b8f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#32 0x00007ffff649c552 in QAbstractButton::toggled(bool) () from /usr/lib/libQtGui.so.4
#33 0x00007ffff61f19ce in QAbstractButton::setChecked(bool) () from /usr/lib/libQtGui.so.4
#34 0x00007ffff6203c46 in QCheckBox::nextCheckState() () from /usr/lib/libQtGui.so.4
#35 0x00007ffff61f166f in ?? () from /usr/lib/libQtGui.so.4
#36 0x00007ffff61f191c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#37 0x00007ffff5e86a49 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#38 0x00007ffff5e3718c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#39 0x00007ffff5e3be6b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#40 0x00007ffff761247f in Gui::GUIApplication::notify(QObject*, QEvent*) () from /usr/lib/freecad-git/lib/libFreeCADGui.so
#41 0x00007ffff56cb6ae in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#42 0x00007ffff5e37fcb in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
   from /usr/lib/libQtGui.so.4
#43 0x00007ffff5eb2ad4 in ?? () from /usr/lib/libQtGui.so.4
#44 0x00007ffff5eb1861 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#45 0x00007ffff5ed7a22 in ?? () from /usr/lib/libQtGui.so.4
#46 0x00007ffff15aa845 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#47 0x00007ffff15aab78 in ?? () from /usr/lib/libglib-2.0.so.0
#48 0x00007ffff15aac34 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#49 0x00007ffff56f9b66 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#50 0x00007ffff5ed769e in ?? () from /usr/lib/libQtGui.so.4
#51 0x00007ffff56ca3ff in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#52 0x00007ffff56ca688 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#53 0x00007ffff56cf328 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#54 0x00007ffff760f993 in Gui::Application::runApplication() () from /usr/lib/freecad-git/lib/libFreeCADGui.so
#55 0x0000000000404386 in main ()
backtrace (6,990 bytes)   

wmayer

2013-07-01 15:37

administrator   ~0003319

That's clearly a bug in the OCC source code. Nevertheless, a feature is activated in 0.14 to handle SIGSEGV as exceptions and thus doesn't stop FreeCAD.

Issue History

Date Modified Username Field Change
2013-03-02 17:47 peterinker New Issue
2013-03-02 17:47 peterinker File Added: backtrace
2013-07-01 15:37 wmayer Note Added: 0003319
2013-07-01 15:37 wmayer Status new => closed
2013-07-01 15:37 wmayer Resolution open => fixed
2013-07-01 15:37 wmayer Fixed in Version => 0.14