[fixed] [regression] crash with additive helix

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

[fixed] [regression] crash with additive helix

Post by uwestoehr »

I use current master.

- I open this example file:
Helix-Test-Crash.FCStd
(6.49 KiB) Downloaded 21 times
- I select the sketch and press the Additive Helix button

result: crash with illegal storage access.

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.26512 (Git)
Build type: Release
Branch: master
Hash: ffe240a539a5780ccb48130b9c504ee7f8298223
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.2
Locale: German/Germany (de_DE)
wmayer wrote: .
user1234
Veteran
Posts: 3345
Joined: Mon Jul 11, 2016 5:08 pm

Re: [regression] crash with additive helix

Post by user1234 »

Dito on:

Code: Select all

OS: Debian GNU/Linux 11 (bullseye) (X-Cinnamon/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.20.26512 (Git)
Build type: Debug
Branch: master
Hash: ffe240a539a5780ccb48130b9c504ee7f8298223
Python version: 3.9.2
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.6.0
Locale: English/United States (en_US)

Log:

Code: Select all

Log: Shape tria info: Faces:26 Edges:56 Nodes:15489 Triangles:28206 IdxVec:1440
Err: Program received signal SIGSEGV, Segmentation fault.
Err: #0  /lib/x86_64-linux-gnu/libc.so.6(+0x3bd60) [0x7f6fba524d60]
Err: #1  0x7f6fbcfef0b8 in App::PropertyFloat::getValue() const from /home/user/Programs/FreeCADmaster/lib/libFreeCADApp.so+0xc
Err: #2  0x7f6fbe90670e in App::PropertyQuantity::getValue() const from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0x18
Err: #3  0x7f6e8ce88df6 in PartDesignGui::TaskHelixParameters::updateStatus() from /home/user/Programs/FreeCADmaster/Mod/PartDesign/PartDesignGui.so+0xc0
Err: #4  0x7f6e8ce87174 in PartDesignGui::TaskHelixParameters::TaskHelixParameters(PartDesignGui::ViewProviderHelix*, QWidget*) from /home/user/Programs/FreeCADmaster/Mod/PartDesign/PartDesignGui.so+0x418
Err: #5  0x7f6e8ce8b0f9 in PartDesignGui::TaskDlgHelixParameters::TaskDlgHelixParameters(PartDesignGui::ViewProviderHelix*) from /home/user/Programs/FreeCADmaster/Mod/PartDesign/PartDesignGui.so+0x87
Err: #6  0x7f6e8cec8105 in PartDesignGui::ViewProviderHelix::getEditDialog() from /home/user/Programs/FreeCADmaster/Mod/PartDesign/PartDesignGui.so+0x2b
Err: #7  0x7f6e8ce90d18 in PartDesignGui::ViewProvider::setEdit(int) from /home/user/Programs/FreeCADmaster/Mod/PartDesign/PartDesignGui.so+0x236
Err: #8  0x7f6e8cec83cc in PartDesignGui::ViewProviderHelix::setEdit(int) from /home/user/Programs/FreeCADmaster/Mod/PartDesign/PartDesignGui.so+0x54
Err: #9  0x7f6fbe8ea1ff in Gui::ViewProvider::startEditing(int) from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0x2d
Err: #10  0x7f6fbe911dd9 in Gui::ViewProviderDragger::startEditing(int) from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0x2f
Err: #11  0x7f6fbe3baf44 in Gui::Document::setEdit(Gui::ViewProvider*, int, char const*) from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0x12f8
Err: #12  0x7f6fbe42f78c in Gui::DocumentPy::setEdit(_object*) from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0x296
Err: #13  0x7f6fbe42ae42 in Gui::DocumentPy::staticCallback_setEdit(_object*, _object*) from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0xea
Err: #14  /lib/x86_64-linux-gnu/libpython3.9.so.1.0(+0x10cc74) [0x7f6fbbc3ac74]
Err: #15  /lib/x86_64-linux-gnu/libpython3.9.so.1.0(_PyObject_MakeTpCall+0x90) [0x7f6fbbbf4a50]
Err: #16  /lib/x86_64-linux-gnu/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x8632) [0x7f6fbbba62f2]
Err: #17  /lib/x86_64-linux-gnu/libpython3.9.so.1.0(+0x1a4ddc) [0x7f6fbbcd2ddc]
Err: #18  /lib/x86_64-linux-gnu/libpython3.9.so.1.0(_PyEval_EvalCodeWithName+0x4e) [0x7f6fbbcd312e]
Err: #19  /lib/x86_64-linux-gnu/libpython3.9.so.1.0(PyEval_EvalCodeEx+0x3e) [0x7f6fbbcd317e]
Err: #20  /lib/x86_64-linux-gnu/libpython3.9.so.1.0(PyEval_EvalCode+0x1b) [0x7f6fbbcce72b]
Err: #21  /lib/x86_64-linux-gnu/libpython3.9.so.1.0(+0x1e9735) [0x7f6fbbd17735]
Err: #22  /lib/x86_64-linux-gnu/libpython3.9.so.1.0(PyRun_StringFlags+0x93) [0x7f6fbbd18013]
Err: #23  0x7f6fbc28eea4 in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /home/user/Programs/FreeCADmaster/lib/libFreeCADBase.so+0xd2
Err: #24  0x7f6fbe4a6cdc in Gui::Command::_runCommand(char const*, int, Gui::Command::DoCmd_Type, char const*) from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0xca
Err: #25  0x7f6fbe4f099d in void Gui::_cmdDocument<std::ostream&>(Gui::Command::DoCmd_Type, App::Document const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::ostream&) from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0x135
Err: #26  0x7f6fbe4f0be6 in void Gui::_cmdDocument<std::ostream&>(Gui::Command::DoCmd_Type, App::DocumentObject const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::ostream&) from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0x4e
Err: #27  0x7f6fbe4ef9db in void Gui::cmdGuiDocument<std::ostream&>(App::DocumentObject const*, std::ostream&) from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0x5b
Err: #28  0x7f6e8cda301a in PartDesignGui::setEdit(App::DocumentObject*, PartDesign::Body*) from /home/user/Programs/FreeCADmaster/Mod/PartDesign/PartDesignGui.so+0x405
Err: #29  0x7f6e8cd6940c in finishFeature(Gui::Command const*, App::DocumentObject*, App::DocumentObject*, bool, bool) from /home/user/Programs/FreeCADmaster/Mod/PartDesign/PartDesignGui.so+0x35c
Err: #30  0x7f6e8cd6c720 in finishProfileBased(Gui::Command const*, Part::Feature const*, App::DocumentObject*) from /home/user/Programs/FreeCADmaster/Mod/PartDesign/PartDesignGui.so+0x1c5
Err: #31  /home/user/Programs/FreeCADmaster/Mod/PartDesign/PartDesignGui.so(+0x2f6119) [0x7f6e8cd6f119]
Err: #32  /home/user/Programs/FreeCADmaster/Mod/PartDesign/PartDesignGui.so(+0x2ff77e) [0x7f6e8cd7877e]
Err: #33  0x7f6e8cd825da in boost::function2<void, Part::Feature*, App::DocumentObject*>::operator()(Part::Feature*, App::DocumentObject*) const from /home/user/Programs/FreeCADmaster/Mod/PartDesign/PartDesignGui.so+0x62
Err: #34  /home/user/Programs/FreeCADmaster/Mod/PartDesign/PartDesignGui.so(+0x2f201d) [0x7f6e8cd6b01d]
Err: #35  0x7f6e8cd6b9eb in prepareProfileBased(PartDesign::Body*, Gui::Command*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (Part::Feature*, App::DocumentObject*)>) from /home/user/Programs/FreeCADmaster/Mod/PartDesign/PartDesignGui.so+0x46b
Err: #36  0x7f6e8cd6f35e in CmdPartDesignAdditiveHelix::activated(int) from /home/user/Programs/FreeCADmaster/Mod/PartDesign/PartDesignGui.so+0xf6
Err: #37  0x7f6fbe4a5946 in Gui::Command::_invoke(int, bool) from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0x25c
Err: #38  0x7f6fbe4a56bb in Gui::Command::invoke(int, Gui::Command::TriggerSource) from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0x105
Err: #39  0x7f6fbe4952f2 in Gui::Action::onActivated() from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0x26
Err: #40  /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so(+0x10c9553) [0x7f6fbe49c553]
Err: #41  /lib/x86_64-linux-gnu/libQt5Core.so.5(+0x2e45e0) [0x7f6fbab795e0]
Err: #42  0x7f6fbb600b62 in QAction::triggered(bool) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x42
Err: #43  0x7f6fbb6033a1 in QAction::activate(QAction::ActionEvent) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0xe1
Err: #44  /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2521b2) [0x7f6fbb6f61b2]
Err: #45  0x7f6fbb6f62d1 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0xf1
Err: #46  0x7f6fbb7e59ca in QToolButton::mouseReleaseEvent(QMouseEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0xa
Err: #47  0x7f6fbb646fae in QWidget::event(QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1ce
Err: #48  0x7f6fbb60715f in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x7f
Err: #49  0x7f6fbb60e04b in QApplication::notify(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x49b
Err: #50  0x7f6fbe457be1 in Gui::GUIApplication::notify(QObject*, QEvent*) from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0xff
Err: #51  0x7f6fbab42fca in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x12a
Err: #52  0x7f6fbb60d076 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1d6
Err: #53  /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1bb011) [0x7f6fbb65f011]
Err: #54  /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1be33e) [0x7f6fbb66233e]
Err: #55  0x7f6fbb60715f in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x7f
Err: #56  0x7f6fbe457be1 in Gui::GUIApplication::notify(QObject*, QEvent*) from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0xff
Err: #57  0x7f6fbab42fca in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x12a
Err: #58  0x7f6fbaf1d583 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /lib/x86_64-linux-gnu/libQt5Gui.so.5+0x653
Err: #59  0x7f6fbaef364c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /lib/x86_64-linux-gnu/libQt5Gui.so.5+0xac
Err: #60  /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5(+0x697da) [0x7f6fb4eba7da]
Err: #61  /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x25b) [0x7f6fb88efe6b]
Err: #62  /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x52118) [0x7f6fb88f0118]
Err: #63  /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2f) [0x7f6fb88f01cf]
Err: #64  0x7f6fbab9a51f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x5f
Err: #65  0x7f6fbab4198b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x12b
Err: #66  0x7f6fbab49c00 in QCoreApplication::exec() from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x90
Err: #67  0x7f6fbe331322 in Gui::Application::runApplication() from /home/user/Programs/FreeCADmaster/lib/libFreeCADGui.so+0x2656
Err: #68  /home/user/Programs/FreeCADmaster/bin/FreeCAD(+0xa27a) [0x5601f5f7527a]
Err: #69  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f6fba50fd0a]
Err: #70  /home/user/Programs/FreeCADmaster/bin/FreeCAD(+0x957a) [0x5601f5f7457a]

Greetings
user1234
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: [regression] crash with additive helix

Post by chrisb »

Works here:

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.26375 (Git)
Build type: Release
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: C/Default (C)
Attachments
SnipScreenshot-5b3099.png
SnipScreenshot-5b3099.png (37.63 KiB) Viewed 1054 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [regression] crash with additive helix

Post by wmayer »

git commit 46e516f5d3
updateStatus() crashed because propPitch is not yet initialized.
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: [regression] crash with additive helix

Post by uwestoehr »

wmayer wrote: Tue Nov 30, 2021 9:39 am git commit 46e516f5d3
many thanks!
Post Reply