View Issue Details

IDProjectCategoryView StatusLast Update
0001428FreeCADBugpublic2014-12-07 10:19
Reportershoogen Assigned Toshoogen  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status closedResolutionunable to reproduce 
Product Versiontrunk 
Summary0001428: Undo on FeaturePython causes crash
DescriptionI haven't yet found a way to reproduce this.
It happens when a FeaturePython is going to be restores using the undo function in the GUI.
The Object was a OpenSCADFeatures.RefineFeature.
As far as i understand the stacktrace the following python code (of the viewProvider) caused the problem

if hasattr(self.Object.Proxy,"Base"): objs.append(self.Object.Proxy.Base)
Additional Information#0 0x00000000000001b1 in ?? ()
#1 0x00007ffff6c78f5a in App::PropertyLink::getPyObject (this=0x4f74ee0)
    at free-cad/src/App/PropertyLinks.cpp:96
0000002 0x00007fff90223a1f in App::FeaturePythonPyT<Part::PartFeaturePy>::getCustomAttributes (this=0x4f1c6f0, attr=0x737dd4 "Base")
    at free-cad/src/App/FeaturePythonPyImp.inl:404
0000003 0x00007fff90222c40 in App::FeaturePythonPyT<Part::PartFeaturePy>::_getattr
    (this=0x4f1c6f0, attr=0x737dd4 "Base")
    at free-cad/src/App/FeaturePythonPyImp.inl:242
0000004 0x00007ffff67128dd in Base::PyObjectBase::__getattr (obj=0x4f1c6f8,
    attr=0x737dd4 "Base")
    at free-cad/src/Base/PyObjectBase.cpp:147
0000005 0x00007ffff618ce0b in ?? () from /usr/lib/libpython2.7.so.1.0
0000006 0x00007ffff610f422 in PyEval_EvalFrameEx ()
   from /usr/lib/libpython2.7.so.1.0
0000007 0x00007ffff61102e8 in PyEval_EvalCodeEx ()
   from /usr/lib/libpython2.7.so.1.0
0000008 0x00007ffff6166806 in ?? () from /usr/lib/libpython2.7.so.1.0
0000009 0x00007ffff61f5d3e in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
0000010 0x00007ffff6244810 in ?? () from /usr/lib/libpython2.7.so.1.0
0000011 0x00007ffff61f5d3e in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
0000012 0x00007ffff61f6647 in PyEval_CallObjectWithKeywords ()
   from /usr/lib/libpython2.7.so.1.0
0000013 0x00007ffff743563f in Py::Callable::apply (this=0x7fffffffb420, args=...)
    at free-cad/src/CXX/Python2/Objects.hxx:3235
0000014 0x00007ffff76d8910 in Gui::ViewProviderPythonFeatureImp::claimChildren (
    this=0x4d99860, base=...)
    at free-cad/src/Gui/ViewProviderPythonFeature.cpp:285
0000015 0x00007fff907f53f0 in Gui::ViewProviderPythonFeatureT<PartGui::ViewProviderPart>::claimChildren (this=0x4f11420)
    at free-cad/src/Gui/ViewProviderPythonFeature.h:109
0000016 0x00007ffff75b6732 in Gui::DocumentItem::slotChangeObject (this=0x1c58c80,
    view=...) at free-cad/src/Gui/Tree.cpp:883
0000017 0x00007ffff75c5812 in boost::_mfi::mf1<void, Gui::DocumentItem, Gui::ViewProviderDocumentObject const&>::operator() (this=0x36dc6d0, p=0x1c58c80, a1=...)
    at /usr/include/boost/bind/mem_fn_template.hpp:165
Tagsundo
FreeCAD Information

Activities

yorik

2014-03-11 01:42

administrator   ~0004411

I don't have this problem here: 1) create a Draft line (Part2DObjectPython) 2) delete the line 3) undo works correctly, no crash...

Isn't this something specific to your python feature?

Issue History

Date Modified Username Field Change
2014-02-21 19:13 shoogen New Issue
2014-03-11 01:42 yorik Note Added: 0004411
2014-08-18 12:09 shoogen Status new => closed
2014-08-18 12:09 shoogen Assigned To => shoogen
2014-08-18 12:09 shoogen Resolution open => unable to reproduce
2014-12-07 10:19 shoogen Tag Attached: undo