Segfault when importing tracks from and old board with KicadStepUp

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!
leoheck
Posts: 336
Joined: Tue Mar 13, 2018 5:56 pm

Segfault when importing tracks from and old board with KicadStepUp

Postby leoheck » Sun May 24, 2020 12:55 am

Segfault when importing tracks from and old board with KicadStepUp

Does this help to debug something?

1. I had imported an old Board.
2. I was importing its tracks then I got this:

Code: Select all

    making zone ""...
  zones done
done copper layer F.Cu
Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x46210) [0x7ff4c8a48210]
#1  0x7ff4ca8106bc in App::DocumentObject::getNameInDocument() const from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADApp.so+0xc
#2  0x7ff4cb451f84 in Gui::DocumentItem::getViewProvider(App::DocumentObject*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADGui.so+0x34
#3  0x7ff4cb452896 in Gui::DocumentItem::populateItem(Gui::DocumentObjectItem*, bool, bool) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADGui.so+0x7f6
#4  0x7ff4cb452cf9 in Gui::DocumentItem::createNewItem(Gui::ViewProviderDocumentObject const&, QTreeWidgetItem*, int, std::shared_ptr<Gui::DocumentObjectData>) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADGui.so+0x169
#5  0x7ff4cb45b264 in Gui::TreeWidget::_slotDeleteObject(Gui::ViewProviderDocumentObject const&, Gui::DocumentItem*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADGui.so+0x494
#6  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADGui.so(+0x37ac0c) [0x7ff4cb1fbc0c]
#7  0x7ff4cb253cbb in Gui::Document::slotDeletedObject(App::DocumentObject const&) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADGui.so+0x16b
#8  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADApp.so(+0x19ec9c) [0x7ff4ca7e7c9c]
#9  0x7ff4ca7fec6b in App::Document::removeObject(char const*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADApp.so+0xeb
#10  0x7ff4ca864bef in App::DocumentPy::removeObject(_object*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADApp.so+0x6f
#11  0x7ff4ca864d44 in App::DocumentPy::staticCallback_removeObject(_object*, _object*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADApp.so+0x24
#12  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libpython3.8.so.1.0(PyCFunction_Call+0xf7) [0x7ff4cac70fa7]
#13  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libpython3.8.so.1.0(_PyObject_MakeTpCall+0x250) [0x7ff4cac27240]
#14  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x4dde) [0x7ff4cacb5dfe]
#15  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libpython3.8.so.1.0(_PyEval_EvalCodeWithName+0x7ff) [0x7ff4cac23eff]
#16  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libpython3.8.so.1.0(_PyFunction_Vectorcall+0x1e3) [0x7ff4cac614b3]
#17  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x489) [0x7ff4cacb14a9]
#18  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libpython3.8.so.1.0(_PyFunction_Vectorcall+0x10b) [0x7ff4cac613db]
#19  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x485c) [0x7ff4cacb587c]
#20  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libpython3.8.so.1.0(_PyFunction_Vectorcall+0x10b) [0x7ff4cac613db]
#21  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libpython3.8.so.1.0(+0x182a5b) [0x7ff4cac61a5b]
#22  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libpython3.8.so.1.0(PyVectorcall_Call+0x71) [0x7ff4cac269e1]
#23  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADBase.so(PP_Run_Method+0xeb) [0x7ff4ca5cec0b]
#24  0x7ff4ca53d78b in Base::InterpreterSingleton::runMethodVoid(_object*, char const*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADBase.so+0x2b
#25  0x7ff4cb2be6ed in Gui::PythonCommand::activated(int) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADGui.so+0xad
#26  0x7ff4cb2c6126 in Gui::Command::invoke(int, Gui::Command::TriggerSource) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADGui.so+0x316
#27  0x7ff4c8f797b8 in QMetaObject::activate(QObject*, int, int, void**) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Core.so.5+0x780
#28  0x7ff4c978796e in QAction::triggered(bool) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Widgets.so.5+0x32
#29  0x7ff4c9789239 in QAction::activate(QAction::ActionEvent) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Widgets.so.5+0xcb
#30  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Widgets.so.5(+0x20e128) [0x7ff4c9826128]
#31  0x7ff4c98261e8 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Widgets.so.5+0x88
#32  0x7ff4c98bcffa in QToolButton::mouseReleaseEvent(QMouseEvent*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Widgets.so.5+0xa
#33  0x7ff4c97b7c3e in QWidget::event(QEvent*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Widgets.so.5+0xce
#34  0x7ff4c98bd091 in QToolButton::event(QEvent*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Widgets.so.5+0x4f
#35  0x7ff4c978c82a in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Widgets.so.5+0xde
#36  0x7ff4c9791095 in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Widgets.so.5+0x79d
#37  0x7ff4cb28b9a9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADGui.so+0x89
#38  0x7ff4c8f63186 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Core.so.5+0x88
#39  0x7ff4c979053f in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Widgets.so.5+0x283
#40  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Widgets.so.5(+0x1af554) [0x7ff4c97c7554]
#41  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Widgets.so.5(+0x1b03a6) [0x7ff4c97c83a6]
#42  0x7ff4c978c82a in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Widgets.so.5+0xde
#43  0x7ff4c97923f1 in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Widgets.so.5+0x1af9
#44  0x7ff4cb28b9a9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADGui.so+0x89
#45  0x7ff4c8f63186 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Core.so.5+0x88
#46  0x7ff4c930940b in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Gui.so.5+0x6d3
#47  0x7ff4c9309ff7 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Gui.so.5+0x175
#48  0x7ff4c92f6dd4 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Gui.so.5+0x64
#49  /tmp/.mount_freecaD7KGBU/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x5af0e) [0x7ff4c42c6f0e]
#50  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_dispatch+0x2cb) [0x7ff4c5fdf63b]
#51  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/./libglib-2.0.so.0(+0x53881) [0x7ff4c5fdf881]
#52  /tmp/.mount_freecaD7KGBU/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_iteration+0x2e) [0x7ff4c5fdf90e]
#53  0x7ff4c8f9242b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Core.so.5+0x63
#54  0x7ff4c8f5fbc1 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Core.so.5+0x187
#55  0x7ff4c8f63a39 in QCoreApplication::exec() from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libQt5Core.so.5+0x105
#56  0x7ff4cb20355a in Gui::Application::runApplication() from /tmp/.mount_freecaD7KGBU/usr/bin/../lib/libFreeCADGui.so+0x155a
#57  /tmp/.mount_freecaD7KGBU/usr/bin/freecad(+0x37cd) [0x55db237b17cd]
#58  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7ff4c8a290b3]
#59  /tmp/.mount_freecaD7KGBU/usr/bin/freecad(+0x451f) [0x55db237b251f]