External geometry after edit
Open, Needs TriagePublic

Description

I've had this happen a couple times. I'll finish a model then decide to change something and go back to that sketch and edit it. Ideally everything after that sketch in the workflow should update correctly without issue, most of the time thats not the case. Sketches break, some sketches randomly decide to be positioned on a new plane, often one that is never referenced. But thats a different issue. More recently when a sketch is edited, sketches down the work tree select a piece of external geometry that has nothing to do with that sketch. You cant add constraints to the broken sketch, you cant delete geometry from the sketch. If you try to delete the random external geometry freecad crashes with error
Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: 'NoneType' object has no attribute 'setActiveObject'
Not able to delete a constraint on point with the given index: 63
Not able to delete a constraint on point with the given index: 62
Not able to delete a constraint on point with the given index: 61
Not able to delete a constraint on point with the given index: 60
Not yet supported geometry for external geometry
Clear constraints to external geometry
Not yet supported geometry for external geometry
Clear constraints to external geometry
Program received signal SIGSEGV, Segmentation fault.
#0 /lib/x86_64-linux-gnu/libc.so.6(+0x33060) [0x7fb516ff8060]
#1 0x7fb4ac1b2166 in SketcherGui::ViewProviderSketch::onDelete(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 /usr/lib/freecad/lib/SketcherGui.so+0x9e6
#2 0x7fb520860b29 in StdCmdDelete::activated(int) from /usr/lib/freecad/lib/libFreeCADGui.so+0x179
#3 0x7fb520856bbc in Gui::Command::invoke(int) from /usr/lib/freecad/lib/libFreeCADGui.so+0x5c
#4 0x7fb51873f660 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x4d0
#5 0x7fb5191eb672 in QAction::triggered(bool) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x42
#6 0x7fb5191ec9d3 in QAction::activate(QAction::ActionEvent) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x83
#7 0x7fb5191ecf2c in QAction::event(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0xbc
#8 0x7fb5191f154c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x8c
#9 0x7fb5191f852c in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x2cc
#10 0x7fb52082f191 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x41
#11 0x7fb51872af1d in QCoreApplication::notifyInternal(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x8d
#12 /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x1fb536) [0x7fb519228536]
#13 /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x1fb719) [0x7fb519228719]
#14 0x7fb5191fa00c in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x1dac
#15 0x7fb52082f191 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x41
#16 0x7fb51872af1d in QCoreApplication::notifyInternal(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x8d
#17 /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26b653) [0x7fb519298653]
#18 /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26bb63) [0x7fb519298b63]
#19 0x7fb519271908 in QApplication::x11ProcessEvent(_XEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0xa48
#20 /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26e502) [0x7fb51929b502]
#21 /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x2a7) [0x7fb51063c7f7]
#22 /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4aa60) [0x7fb51063ca60]
#23 /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7fb51063cb0c]
#24 0x7fb51875b854 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x64
#25 /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26e5d6) [0x7fb51929b5d6]
#26 0x7fb5187297ef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x3f
#27 0x7fb518729b55 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x1b5
#28 0x7fb51872fbd9 in QCoreApplication::exec() from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x99
#29 0x7fb5207e5281 in Gui::Application::runApplication() from /usr/lib/freecad/lib/libFreeCADGui.so+0x15e1
#30 freecad(main+0x654) [0x564939df8344]
#31 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7fb516fe52e1]
#32 freecad(_start+0x2a) [0x564939df958a]

west created this task.Apr 3 2018, 3:52 PM