View Issue Details

IDProjectCategoryView StatusLast Update
0003416FreeCADBugpublic2018-04-04 14:12
Reporterpager48 Assigned Towmayer  
Status closedResolutionfixed 
Product Version0.17 
Fixed in Version0.17 
Summary0003416: Crash on draft operation for a face

OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13483 (Git) AppImage
Build type: None
Branch: master
Hash: 0ac32464e45fa9648cdaf702ebda06650dabe9dc
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)
Steps To Reproduce-Open part named "crasher"
-Select top or bottom face
-Try to draft

Results: crash
TagsNo tags attached.
FreeCAD Information



2018-04-01 01:12


crasher.fcstd (11,682 bytes)


2018-04-01 12:40

administrator   ~0011093

@chrisb can you confirm?


2018-04-03 19:54

developer   ~0011115

Nothing wrong here. No crash.
I am able to draft on top or bottom face.
OS: Ubuntu 17.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13491 (Git)
Build type: Unknown
Branch: master
Hash: ba3fb75b48962f4b78c6e3ebdebf3965e35aa1e4
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: French/France (fr_FR)


2018-04-03 20:25

developer   ~0011116

I can confirm the crash here. Th crash occurs immediately after selecteing the top face and clicking PartDesign->Draft.

OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13483 (Git)
Build type: Release
Branch: (HEAD detached at 0ac3246)
Hash: 0ac32464e45fa9648cdaf702ebda06650dabe9dc
Python version: 2.7.14
Qt version: 5.10.1
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Germany (de_DE)


2018-04-03 20:35

developer   ~0011117

Can confirm with the most recent version as well:

OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13498 (Git)
Build type: Release
Branch: (HEAD detached at 85b42a1)
Hash: 85b42a16d960c4ca11dbb8288ad08cf12a0291dc
Python version: 2.7.14
Qt version: 5.10.1
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Germany (de_DE)


2018-04-03 20:38

developer   ~0011118

My bad. I was testing the Draft WB.
I was not aware of this PartDesign.Draft tool.
It crashes also for me :
Log: Loading PartDesign module... done
Log: Loading GUI of PartDesign module... done
Log: X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 31 (X_GrabKeyboard)
  Resource id:  0x0
Err: Program received signal SIGSEGV, Segmentation fault.
Err: #0  /lib/x86_64-linux-gnu/ [0x7fbc69c7d140]
Err: #1  0x7fbc1dde6730 in Geom_Circle::Circ() const from /usr/local/lib/
Err: 0000002  0x7fbc1de0bf46 in GeomAdaptor_Curve::Circle() const from /usr/local/lib/
Err: 0000003  0x7fbc1bb155de in BRepAdaptor_Curve::Circle() const from /usr/local/lib/
Err: 0000004  0x7fbc09fa0c75 in PartDesign::Draft::execute() from /home/tomate/Software/FreeCAD/build/Mod/PartDesign/
Err: 0000005  0x7fbc6c64440f in App::DocumentObject::recompute() from /home/tomate/Software/FreeCAD/build/lib/
Err: 0000006  0x7fbc1f00f8cb in Part::Feature::recompute() from /home/tomate/Software/FreeCAD/build/Mod/Part/
Err: 0000007  0x7fbc6c5da5eb in App::Document::_recomputeFeature(App::DocumentObject*) from /home/tomate/Software/FreeCAD/build/lib/
Err: 0000008  0x7fbc6c5d8fcc in App::Document::recompute() from /home/tomate/Software/FreeCAD/build/lib/
Err: 0000009  0x7fbc6c6857e4 in App::DocumentPy::recompute(_object*) from /home/tomate/Software/FreeCAD/build/lib/
Err: 0000010  0x7fbc6c67f563 in App::DocumentPy::staticCallback_recompute(_object*, _object*) from /home/tomate/Software/FreeCAD/build/lib/
Err: 0000011  /usr/lib/x86_64-linux-gnu/ [0x7fbc6b860b09]
Err: 0000012  /usr/lib/x86_64-linux-gnu/ [0x7fbc6b988b88]
Err: 0000013  /usr/lib/x86_64-linux-gnu/ [0x7fbc6b8577f9]
Err: 0000014  /usr/lib/x86_64-linux-gnu/ [0x7fbc6b900e76]
Err: 0000015  0x7fbc6be91991 in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /home/tomate/Software/FreeCAD/build/lib/
Err: 0000016  0x7fbc6d2a81e5 in Gui::Command::doCommand(Gui::Command::DoCmd_Type, char const*, ...) from /home/tomate/Software/FreeCAD/build/lib/
Err: 0000017  0x7fbc6d2a8aaa in Gui::Command::updateActive() from /home/tomate/Software/FreeCAD/build/lib/
Err: 0000018  0x7fbc09a239ec in finishFeature(Gui::Command const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, App::DocumentObject*, bool, bool) from /home/tomate/Software/FreeCAD/build/Mod/PartDesign/
Err: 0000019  0x7fbc09a27b0b 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 /home/tomate/Software/FreeCAD/build/Mod/PartDesign/
Err: 0000020  0x7fbc09a284e0 in CmdPartDesignDraft::activated(int) from /home/tomate/Software/FreeCAD/build/Mod/PartDesign/
Err: 0000021  0x7fbc6d2a785e in Gui::Command::invoke(int) from /home/tomate/Software/FreeCAD/build/lib/
Err: 0000022  0x7fbc6d29b001 in Gui::Action::onActivated() from /home/tomate/Software/FreeCAD/build/lib/
Err: 0000023  /home/tomate/Software/FreeCAD/build/lib/ [0x7fbc6d2a03b6]
Err: 0000024  0x7fbc6a761f70 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) from /usr/lib/x86_64-linux-gnu/
Err: 0000025  0x7fbc6ac73dc2 in QAction::triggered(bool) from /usr/lib/x86_64-linux-gnu/
Err: 0000026  0x7fbc6ac75113 in QAction::activate(QAction::ActionEvent) from /usr/lib/x86_64-linux-gnu/
Err: 0000027  /usr/lib/x86_64-linux-gnu/ [0x7fbc6b055fa3]
Err: 0000028  0x7fbc6b0560f4 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) from /usr/lib/x86_64-linux-gnu/
Err: 0000029  0x7fbc6b11c0aa in QToolButton::mouseReleaseEvent(QMouseEvent*) from /usr/lib/x86_64-linux-gnu/
Err: 0000030  0x7fbc6acd0930 in QWidget::event(QEvent*) from /usr/lib/x86_64-linux-gnu/
Err: 0000031  0x7fbc6ac7a03c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/
Err: 0000032  0x7fbc6ac81136 in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/
Err: 0000033  0x7fbc6d273ca2 in Gui::GUIApplication::notify(QObject*, QEvent*) from /home/tomate/Software/FreeCAD/build/lib/
Err: 0000034  0x7fbc6a74d8ad in QCoreApplication::notifyInternal(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/
Err: 0000035  0x7fbc6ac8073d in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) from /usr/lib/x86_64-linux-gnu/
Err: 0000036  /usr/lib/x86_64-linux-gnu/ [0x7fbc6acfe452]
Err: 0000037  0x7fbc6acfdce3 in QApplication::x11ProcessEvent(_XEvent*) from /usr/lib/x86_64-linux-gnu/
Err: 0000038  /usr/lib/x86_64-linux-gnu/ [0x7fbc6ad27592]
Err: #39  /lib/x86_64-linux-gnu/ [0x7fbc63ab6fb7]
Err: #40  /lib/x86_64-linux-gnu/ [0x7fbc63ab71f0]
Err: 0000041  /lib/x86_64-linux-gnu/ [0x7fbc63ab727c]
Err: 0000042  0x7fbc6a77e20e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/
Err: 0000043  /usr/lib/x86_64-linux-gnu/ [0x7fbc6ad27666]
Err: 0000044  0x7fbc6a74c12f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/
Err: 0000045  0x7fbc6a74c495 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/
Err: 0000046  0x7fbc6a752459 in QCoreApplication::exec() from /usr/lib/x86_64-linux-gnu/
Err: 0000047  0x7fbc6d201b93 in Gui::Application::runApplication() from /home/tomate/Software/FreeCAD/build/lib/
Err: 0000048  /home/tomate/Software/FreeCAD/build/bin/FreeCAD(main+0xa89) [0x56450f6f20e3]
Err: 0000049  /lib/x86_64-linux-gnu/ [0x7fbc69c671c1]
Err: 0000050  /home/tomate/Software/FreeCAD/build/bin/FreeCAD(_start+0x2a) [0x56450f6f14ba]


2018-04-03 23:34

administrator   ~0011119

Thanks fellas. Assigned to wmayer to address pre-release.


2018-04-04 14:12

administrator   ~0011122

Doesn't happen in debug mode of OCC because it does a type check and raises an exception because the type is a b-spline. In release mode no type is done causing to access a null pointer.

Fixed in

Issue History

Date Modified Username Field Change
2018-04-01 01:12 pager48 New Issue
2018-04-01 01:12 pager48 File Added: crasher.fcstd
2018-04-01 12:40 Kunda1 Note Added: 0011093
2018-04-02 17:19 Kunda1 Product Version 0.18 => 0.17
2018-04-03 19:54 Chris_G Note Added: 0011115
2018-04-03 20:25 chrisb Note Added: 0011116
2018-04-03 20:35 chrisb Note Added: 0011117
2018-04-03 20:38 Chris_G Note Added: 0011118
2018-04-03 23:34 Kunda1 Assigned To => wmayer
2018-04-03 23:34 Kunda1 Status new => assigned
2018-04-03 23:34 Kunda1 Note Added: 0011119
2018-04-04 14:12 wmayer Status assigned => closed
2018-04-04 14:12 wmayer Resolution open => fixed
2018-04-04 14:12 wmayer Fixed in Version => 0.17
2018-04-04 14:12 wmayer Note Added: 0011122