Crash on Loft

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
bruce
Posts: 10
Joined: Sun Aug 11, 2019 8:46 pm

Crash on Loft

Postby bruce » Mon Oct 12, 2020 1:21 am

I'm experiencing a crash in FreeCAD_0.19-22665-Linux-Conda_glibc2.12-x86_64.AppImage when lofting through a number of circular profiles.

Steps to reproduce.

1. Open the attached file (part3.FCstd)
2. Create a new subtractive loft starting with inner_0_sk
3. Added sketches inner_1_sk, inner_2_sk, and inner_3_sk in that order.
4. Click OK to accept the loft.
5. FreeCAD crashes.

The following is reported on the terminal

Code: Select all

FreeCAD 0.19, Libs: 0.19R22665 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2020
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Loading Assembly4 WorkBench
Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x3be30) [0x7fd576ecbe30]
#1  /tmp/.mount_FreeCAA40B2C/usr/lib/./libTKBool.so.7(+0x270559) [0x7fd54f94e559]
#2  0x7fd54f9aef1b in BRepFill_CompatibleWires::SameNumberByPolarMethod(bool) from /tmp/.mount_FreeCAA40B2C/usr/lib/./libTKBool.so.7+0x130b
#3  0x7fd54f9b487a in BRepFill_CompatibleWires::Perform(bool) from /tmp/.mount_FreeCAA40B2C/usr/lib/./libTKBool.so.7+0xb6a
#4  0x7fd554b3b196 in BRepOffsetAPI_ThruSections::Build() from /tmp/.mount_FreeCAA40B2C/usr/lib/./libTKOffset.so.7+0x296
#5  0x7fd4ec437037 in PartDesign::Loft::execute() from /tmp/.mount_FreeCAA40B2C/usr/lib/_PartDesign.so+0x7f7
#6  0x7fd578c66ea2 in App::DocumentObject::recompute() from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libFreeCADApp.so+0xf2
#7  0x7fd5552a713c in Part::Feature::recompute() from /tmp/.mount_FreeCAA40B2C/usr/lib/Part.so+0xc
#8  0x7fd578bf906c in App::Document::_recomputeFeature(App::DocumentObject*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libFreeCADApp.so+0x31c
#9  0x7fd578c528bc in App::Document::recompute(std::vector<App::DocumentObject*, std::allocator<App::DocumentObject*> > const&, bool, bool*, int) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libFreeCADApp.so+0x60c
#10  0x7fd578cba5b2 in App::DocumentPy::recompute(_object*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libFreeCADApp.so+0x382
#11  0x7fd578cbaa54 in App::DocumentPy::staticCallback_recompute(_object*, _object*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libFreeCADApp.so+0x24
#12  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libpython3.8.so.1.0(PyCFunction_Call+0xf7) [0x7fd5790ca2e7]
#13  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libpython3.8.so.1.0(_PyObject_MakeTpCall+0x250) [0x7fd579080890]
#14  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x4ea2) [0x7fd57910ee62]
#15  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libpython3.8.so.1.0(_PyEval_EvalCodeWithName+0x2e2) [0x7fd57907d022]
#16  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libpython3.8.so.1.0(PyEval_EvalCodeEx+0x44) [0x7fd57907dde4]
#17  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libpython3.8.so.1.0(PyEval_EvalCode+0x1c) [0x7fd57913369c]
#18  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libpython3.8.so.1.0(+0x219ecf) [0x7fd579151ecf]
#19  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libpython3.8.so.1.0(+0x252c44) [0x7fd57918ac44]
#20  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libpython3.8.so.1.0(PyRun_StringFlags+0x7d) [0x7fd57918acdd]
#21  0x7fd57898a11a in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libFreeCADBase.so+0x6a
#22  0x7fd579723af8 in Gui::Command::_runCommand(char const*, int, Gui::Command::DoCmd_Type, char const*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libFreeCADGui.so+0x98
#23  0x7fd4d1f97bd2 in void Gui::_cmdDocument<char const (&) [12]>(Gui::Command::DoCmd_Type, App::Document const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const (&) [12]) from /tmp/.mount_FreeCAA40B2C/usr/lib/PartDesignGui.so+0x4b2
#24  0x7fd4d1f98465 in PartDesignGui::TaskDlgFeatureParameters::accept() from /tmp/.mount_FreeCAA40B2C/usr/lib/PartDesignGui.so+0x145
#25  0x7fd4d1f9be98 in PartDesignGui::TaskDlgSketchBasedParameters::accept() from /tmp/.mount_FreeCAA40B2C/usr/lib/PartDesignGui.so+0x4b8
#26  0x7fd4d2028259 in PartDesignGui::TaskDlgLoftParameters::accept() from /tmp/.mount_FreeCAA40B2C/usr/lib/PartDesignGui.so+0x579
#27  0x7fd5799c44e9 in Gui::TaskView::TaskView::accept() from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libFreeCADGui.so+0x59
#28  0x7fd5773c60d2 in QMetaObject::activate(QObject*, int, int, void**) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Core.so.5+0x780
#29  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Widgets.so.5(+0x274d73) [0x7fd577cdad73]
#30  0x7fd5773c60d2 in QMetaObject::activate(QObject*, int, int, void**) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Core.so.5+0x780
#31  0x7fd577c73360 in QAbstractButton::clicked(bool) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Widgets.so.5+0x32
#32  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Widgets.so.5(+0x20da19) [0x7fd577c73a19]
#33  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Widgets.so.5(+0x20e2ae) [0x7fd577c742ae]
#34  0x7fd577c7434a in QAbstractButton::mouseReleaseEvent(QMouseEvent*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Widgets.so.5+0x88
#35  0x7fd577c05c23 in QWidget::event(QEvent*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Widgets.so.5+0x135
#36  0x7fd577bda83a in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Widgets.so.5+0xde
#37  0x7fd577bdf0a9 in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Widgets.so.5+0x79d
#38  0x7fd5796f10c9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libFreeCADGui.so+0x89
#39  0x7fd5773afa9c in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Core.so.5+0x88
#40  0x7fd577bde553 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Widgets.so.5+0x283
#41  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Widgets.so.5(+0x1af580) [0x7fd577c15580]
#42  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Widgets.so.5(+0x1b03d2) [0x7fd577c163d2]
#43  0x7fd577bda83a in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Widgets.so.5+0xde
#44  0x7fd577be0405 in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Widgets.so.5+0x1af9
#45  0x7fd5796f10c9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libFreeCADGui.so+0x89
#46  0x7fd5773afa9c in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Core.so.5+0x88
#47  0x7fd577756724 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Gui.so.5+0x684
#48  0x7fd5777572f7 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Gui.so.5+0x175
#49  0x7fd577744020 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Gui.so.5+0x64
#50  /tmp/.mount_FreeCAA40B2C/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x5b1ea) [0x7fd57314a1ea]
#51  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_dispatch+0x2cb) [0x7fd574384dab]
#52  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/./libglib-2.0.so.0(+0x54ff1) [0x7fd574384ff1]
#53  /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_iteration+0x2e) [0x7fd57438507e]
#54  0x7fd5773ded23 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Core.so.5+0x63
#55  0x7fd5773ac4d7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Core.so.5+0x187
#56  0x7fd5773b034f in QCoreApplication::exec() from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libQt5Core.so.5+0x105
#57  0x7fd5796674f2 in Gui::Application::runApplication() from /tmp/.mount_FreeCAA40B2C/usr/bin/../lib/libFreeCADGui.so+0x15a2
#58  /tmp/.mount_FreeCAA40B2C/usr/bin/freecad(+0x37cd) [0x5573e3a717cd]
#59  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7fd576eb6cca]
#60  /tmp/.mount_FreeCAA40B2C/usr/bin/freecad(+0x4521) [0x5573e3a72521]
Source File:
part3.FCStd
(36.97 KiB) Downloaded 28 times
Thank you in advance for your time.
chrisb
Posts: 30741
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash on Loft

Postby chrisb » Mon Oct 12, 2020 1:21 pm

Moved to Help forum.
You need at least FreeCAD 0.19.23300 to edit my current sketches.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Posts: 30741
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash on Loft

Postby chrisb » Mon Oct 12, 2020 7:16 pm

I can confirm the crash.

OS: macOS 10.15
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22611 (Git)
Build type: Release
Branch: master
Hash: 7eeec7a5990cc786723225ca8de16ca3186545b3
Python version: 3.8.5
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)
You need at least FreeCAD 0.19.23300 to edit my current sketches.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
GlouGlou
Posts: 2751
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Crash on Loft

Postby GlouGlou » Mon Oct 12, 2020 8:07 pm

Confirmed.
Probably because the starting points are not aligned. make twisted shape and crash.
Attachments
Capture.JPG
Capture.JPG (20.22 KiB) Viewed 323 times
bruce
Posts: 10
Joined: Sun Aug 11, 2019 8:46 pm

Re: Crash on Loft

Postby bruce » Mon Oct 12, 2020 11:54 pm

GlouGlou,

I did the rotation and it now lofts correctly.

How do you display the start point dots? I've been searching for some time now and cannot find it.

OS: Debian GNU/Linux bullseye/sid (GNOME/gnome)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22665 (Git) AppImage
Build type: Release
Branch: master
Hash: b0d7850406e046f3b7a8cd5da261e7d54df6bd99
Python version: 3.8.6
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/Canada (en_CA)
User avatar
Kunda1
Posts: 9212
Joined: Thu Jan 05, 2017 9:03 pm

Re: Crash on Loft

Postby Kunda1 » Sat Oct 17, 2020 12:44 am

OP, Please open a ticket in the tracker
Don't forget to link to this thread and link from this thread back to ticket.
Thanks
Alone you go faster. Together we go farther
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
GlouGlou
Posts: 2751
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Crash on Loft

Postby GlouGlou » Sat Oct 17, 2020 8:48 am

bruce wrote:
Mon Oct 12, 2020 11:54 pm
How do you display the start point dots? I've been searching for some time now and cannot find it.
Just adjust this value as need.
Sometimes, it's very useful. ;)
Attachments
Capture.JPG
Capture.JPG (65.62 KiB) Viewed 172 times
bruce
Posts: 10
Joined: Sun Aug 11, 2019 8:46 pm

Re: Crash on Loft

Postby bruce » Mon Oct 19, 2020 10:05 pm

Kunda1 wrote:
Sat Oct 17, 2020 12:44 am
OP, Please open a ticket in the tracker
Don't forget to link to this thread and link from this thread back to ticket.
Thanks
I've opened ticket issue #4470