#4225 : BUG : FreeCAD crash when making draft in PartDesign

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!
Doom-fr
Posts: 5
Joined: Tue Dec 10, 2019 11:57 am

#4225 : BUG : FreeCAD crash when making draft in PartDesign

Postby Doom-fr » Tue Dec 10, 2019 12:09 pm

When I select a face of my design and click on draft, FreeCAD crashes.
It is systematic on this file and this kind of problem occurs often.

Step to reproduce :
1. open the file
2. go to Part Design
3. select the face (see attached picture to know which one)
4. click on draft icon => it crashes immediatly

I use FreeCAD_0.18-16146-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage

Code: Select all

OS: Ubuntu 18.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16146 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.18.4)
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Can you fix it ?

D.
Attachments
protection_thermoformage_v0.FCStd
FreeCAD test file
(21.5 KiB) Downloaded 12 times
Selection_319.png
show the face to select
Selection_319.png (122.65 KiB) Viewed 432 times
Last edited by Doom-fr on Sun Dec 15, 2019 8:26 pm, edited 1 time in total.
chrisb
Posts: 28842
Joined: Tue Mar 17, 2015 9:14 am

Re: BUG : FreeCAD crash when making draft in PartDesign

Postby chrisb » Tue Dec 10, 2019 2:44 pm

Moved to Help forum.

- Please retry with a most recent 0.19 version
- if the problem persists, you can try to reset the configuration with the button in the preferences. Another possibility is to delete your config files or to move them in case you want to restore them.
- if the problem persists, create a log file by starting FreeCAD with the additional parameter -l (small letter L). The log file will be placed in your ~/.FreeCAD directory.

Oh, and I cannot confirm:
OS: macOS High Sierra (10.13)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18829 (Git)
Build type: Release
Branch: master
Hash: 186d52ffd47696fadcd91369365e97f084051e7b
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Germany (en_DE)
A Sketcher Lecture with in-depth information is available in English, auf deutsch, en français, en español.
User avatar
ppemawm
Posts: 744
Joined: Fri May 17, 2013 3:54 pm
Location: Manhattan New York

Re: BUG : FreeCAD crash when making draft in PartDesign

Postby ppemawm » Tue Dec 10, 2019 4:38 pm

Doom-fr wrote:
Tue Dec 10, 2019 12:09 pm
When I select a face of my design and click on draft, FreeCAD crashes.
Works OK here:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16093 +17 (Git)
Build type: Release
Branch: (HEAD detached at 0.18.1)
Hash: f7dccfaa909e5b9da26bf50c4a22ccca9bb10c40
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)


When selecting the draft face (highlighted) the model disappears, but I would not call it a "Crash". Same behavior in V0.19.
Select neutral plane and image reappears, see highlight in image.
Select pull direction, I used outside corner.
Voila!
Capture.JPG
Capture.JPG (96.2 KiB) Viewed 415 times
"It is a poor workman who blames his tools..." ;)
openBrain
Posts: 4836
Joined: Fri Nov 09, 2018 5:38 pm

Re: BUG : FreeCAD crash when making draft in PartDesign

Postby openBrain » Tue Dec 10, 2019 5:36 pm

Doom-fr wrote:
Tue Dec 10, 2019 12:09 pm
Can you fix it ?
Welcome here Doom. This is already fixed. Just upgrade. ;)
Doom-fr
Posts: 5
Joined: Tue Dec 10, 2019 11:57 am

Re: BUG : FreeCAD crash when making draft in PartDesign

Postby Doom-fr » Tue Dec 10, 2019 9:37 pm

Hi everybody and thanks for your answers.

Unfortunately none of these works.
(And when I say "crash", it is really a crash of the application with death of the full window)

Here is output for last version (I have also attached the log file) :

Code: Select all

 ./FreeCAD_0.19-18846-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage -l
/tmp/.mount_FreeCA5IGMCX
FreeCAD 0.19, Libs: 0.19R18846 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

connect failed: No such file or directory
Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7f561b612f20]
#1  0x7f55ffc4c95f in PartDesign::Draft::execute() from /tmp/.mount_FreeCA5IGMCX/usr/lib/_PartDesign.so+0x167f
#2  0x7f561d3b623e in App::DocumentObject::recompute() from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libFreeCADApp.so+0x9e
#3  0x7f55a04dac4c in Part::Feature::recompute() from /tmp/.mount_FreeCA5IGMCX/usr/lib/./Part.so+0xc
#4  0x7f561d354cfd in App::Document::_recomputeFeature(App::DocumentObject*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libFreeCADApp.so+0x2fd
#5  0x7f561d3a985c in App::Document::recompute(std::vector<App::DocumentObject*, std::allocator<App::DocumentObject*> > const&, bool, bool*, int) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libFreeCADApp.so+0x60c
#6  0x7f561d401cc2 in App::DocumentPy::recompute(_object*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libFreeCADApp.so+0x382
#7  0x7f561d402144 in App::DocumentPy::staticCallback_recompute(_object*, _object*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libFreeCADApp.so+0x24
#8  /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libpython3.7m.so.1.0(_PyMethodDef_RawFastCallKeywords+0x104) [0x7f561d78c034]
#9  /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libpython3.7m.so.1.0(_PyCFunction_FastCallKeywords+0x26) [0x7f561d78cba6]
#10  /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libpython3.7m.so.1.0(+0x6f3df) [0x7f561d6de3df]
#11  /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x710a) [0x7f561d6dc10a]
#12  /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0xac4) [0x7f561d897284]
#13  /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libpython3.7m.so.1.0(PyEval_EvalCodeEx+0x3f) [0x7f561d89736f]
#14  /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libpython3.7m.so.1.0(PyEval_EvalCode+0x1c) [0x7f561d766abc]
#15  /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libpython3.7m.so.1.0(PyRun_StringFlags+0x94) [0x7f561d7b71b4]
#16  0x7f561e9c743a in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libFreeCADBase.so+0x6a
#17  0x7f561ddf6168 in Gui::Command::_runCommand(char const*, int, Gui::Command::DoCmd_Type, char const*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libFreeCADGui.so+0x98
#18  0x7f561ddf6352 in Gui::Command::_doCommand(char const*, int, Gui::Command::DoCmd_Type, char const*, ...) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libFreeCADGui.so+0x102
#19  0x7f561ddf69f4 in Gui::Command::updateActive() from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libFreeCADGui.so+0x44
#20  0x7f557776ed76 in finishFeature(Gui::Command const*, App::DocumentObject*, App::DocumentObject*, bool, bool) from /tmp/.mount_FreeCA5IGMCX/usr/lib/PartDesignGui.so+0x2d6
#21  0x7f557776f8ed in finishDressupFeature(Gui::Command const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Part::Feature*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) from /tmp/.mount_FreeCA5IGMCX/usr/lib/PartDesignGui.so+0x4fd
#22  0x7f557777aca5 in CmdPartDesignDraft::activated(int) from /tmp/.mount_FreeCA5IGMCX/usr/lib/PartDesignGui.so+0x375
#23  0x7f561ddff271 in Gui::Command::invoke(int, Gui::Command::TriggerSource) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libFreeCADGui.so+0x321
#24  0x7f561bd357b8 in QMetaObject::activate(QObject*, int, int, void**) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Core.so.5+0x780
#25  0x7f561c54396e in QAction::triggered(bool) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Widgets.so.5+0x32
#26  0x7f561c545239 in QAction::activate(QAction::ActionEvent) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Widgets.so.5+0xcb
#27  /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Widgets.so.5(+0x20e128) [0x7f561c5e2128]
#28  0x7f561c5e21e8 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Widgets.so.5+0x88
#29  0x7f561c678ffa in QToolButton::mouseReleaseEvent(QMouseEvent*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Widgets.so.5+0xa
#30  0x7f561c573c3e in QWidget::event(QEvent*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Widgets.so.5+0xce
#31  0x7f561c679091 in QToolButton::event(QEvent*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Widgets.so.5+0x4f
#32  0x7f561c54882a in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Widgets.so.5+0xde
#33  0x7f561c54d095 in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Widgets.so.5+0x79d
#34  0x7f561ddc59e9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libFreeCADGui.so+0x89
#35  0x7f561bd1f186 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Core.so.5+0x88
#36  0x7f561c54c53f in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Widgets.so.5+0x283
#37  /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Widgets.so.5(+0x1af554) [0x7f561c583554]
#38  /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Widgets.so.5(+0x1b03a6) [0x7f561c5843a6]
#39  0x7f561c54882a in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Widgets.so.5+0xde
#40  0x7f561c54e3f1 in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Widgets.so.5+0x1af9
#41  0x7f561ddc59e9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libFreeCADGui.so+0x89
#42  0x7f561bd1f186 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Core.so.5+0x88
#43  0x7f561c0c540b in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Gui.so.5+0x6d3
#44  0x7f561c0c5ff7 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Gui.so.5+0x175
#45  0x7f561c0b2dd4 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Gui.so.5+0x64
#46  /tmp/.mount_FreeCA5IGMCX/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x5af0e) [0x7f5615a46f0e]
#47  /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_dispatch+0x2e8) [0x7f5617f789d8]
#48  /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/./libglib-2.0.so.0(+0x51c21) [0x7f5617f78c21]
#49  /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_iteration+0x2e) [0x7f5617f78cae]
#50  0x7f561bd4e42b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Core.so.5+0x63
#51  0x7f561bd1bbc1 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Core.so.5+0x187
#52  0x7f561bd1fa39 in QCoreApplication::exec() from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libQt5Core.so.5+0x105
#53  0x7f561dd466c0 in Gui::Application::runApplication() from /tmp/.mount_FreeCA5IGMCX/usr/bin/../lib/libFreeCADGui.so+0x15b0
#54  /tmp/.mount_FreeCA5IGMCX/usr/bin/freecad(main+0x74d) [0x56112c96a7cd]
#55  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f561b5f5b97]
#56  /tmp/.mount_FreeCA5IGMCX/usr/bin/freecad(+0x451f) [0x56112c96b51f]
Attachments
FreeCAD.log
(17.97 KiB) Downloaded 6 times
Doom-fr
Posts: 5
Joined: Tue Dec 10, 2019 11:57 am

Re: BUG : FreeCAD crash when making draft in PartDesign

Postby Doom-fr » Tue Dec 10, 2019 9:39 pm

And with 0.17, it works !

Code: Select all

OS: Ubuntu 18.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git) AppImage
Build type: None
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Doom-fr
Posts: 5
Joined: Tue Dec 10, 2019 11:57 am

Re: BUG : FreeCAD crash when making draft in PartDesign

Postby Doom-fr » Fri Dec 13, 2019 8:31 pm

Hi,
Are you agree that it is a new bug ?
And so, can I make an issue for that ?
openBrain
Posts: 4836
Joined: Fri Nov 09, 2018 5:38 pm

Re: BUG : FreeCAD crash when making draft in PartDesign

Postby openBrain » Sun Dec 15, 2019 3:20 pm

Doom-fr wrote:
Fri Dec 13, 2019 8:31 pm
Hi,
Are you agree that it is a new bug ?
And so, can I make an issue for that ?
It would be better that someone can reproduce. ;) But thanks for your perseverance.
I can't not reproduce here too, but I see you're using the AppImage while none of us do.

Guys, is there someone using 0.19 AppImage that could try to reproduce ?
---
OS: Ubuntu 18.04.3 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18817 (Git)
Build type: Unknown
Branch: master
Hash: 6d79dbea432e4c7b53b0b94667a9930b7d5b5104
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)
openBrain
Posts: 4836
Joined: Fri Nov 09, 2018 5:38 pm

Re: BUG : FreeCAD crash when making draft in PartDesign

Postby openBrain » Sun Dec 15, 2019 3:24 pm

Zolko wrote: Ping
@Zolko : seems from your posts that you're using AppImage. Could you please try to reproduce the bug described at OP ? Thx.
User avatar
Zolko
Posts: 1088
Joined: Mon Dec 17, 2018 10:02 am

Re: BUG : FreeCAD crash when making draft in PartDesign

Postby Zolko » Sun Dec 15, 2019 4:35 pm

openBrain wrote:
Sun Dec 15, 2019 3:24 pm
@Zolko : seems from your posts that you're using AppImage. Could you please try to reproduce the bug described at OP ? Thx.
Doom-fr wrote:
Tue Dec 10, 2019 12:09 pm
Step to reproduce :
1. open the file
2. go to Part Design
3. select the face (see attached picture to know which one)
4. click on draft icon => it crashes immediatly

I use FreeCAD_0.18-16146-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage
yes, it crashes with FreeCAD_0.19-18846.AppImage exactly as described
try the Assembly4 workbench for FreCAD v0.19
install with Tools > Addon Manager > Assembly4 — tutorials here and here