Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeCAD Crash #62

Closed
ceremcem opened this issue Sep 5, 2018 · 7 comments
Closed

FreeCAD Crash #62

ceremcem opened this issue Sep 5, 2018 · 7 comments

Comments

@ceremcem
Copy link
Collaborator

ceremcem commented Sep 5, 2018

Again, I can't provide the reproduction steps, I remember I was doing something with the Array, but here is the traceback for build:

OS: Debian GNU/Linux 9.5 (stretch)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14975 (Git)
Build type: Unknown
Branch: LinkStage3
Hash: e5b70fb32bd814d02dd4722de319c8d40e2913af
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)
reeCAD 0.18, Libs: 0.18R14975 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2018
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Sheet Metal workbench loaded
<asm3.sys> 98.360515 - sys_slvs.py(52): redundant constraints
<asm3.sys> 120.204103 - sys_slvs.py(52): redundant constraints
<asm3.sys> 1446.098198 - sys_slvs.py(52): redundant constraints
<asm3.sys> 43.372435 - sys_slvs.py(52): redundant constraints
<asm3.sys> 0.805653 - sys_slvs.py(52): redundant constraints
<asm3.sys> 0.708539 - sys_slvs.py(52): redundant constraints
<asm3.sys> 0.795237 - sys_slvs.py(52): redundant constraints
<asm3.sys> 0.876447 - sys_slvs.py(52): redundant constraints
<asm3.sys> 0.687543 - sys_slvs.py(52): redundant constraints
<asm3.sys> 1.189395 - sys_slvs.py(52): redundant constraints
<asm3.sys> 0.79017 - sys_slvs.py(52): redundant constraints
<asm3.sys> 325.392522 - sys_slvs.py(52): redundant constraints
<asm3.sys> 4031.043138 - sys_slvs.py(52): redundant constraints
<asm3.sys> 35.778228 - sys_slvs.py(52): redundant constraints
'Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link'Traceback (most recent call last):
  File "/home/aea/.FreeCAD/Macro/param-from-document-name.FCMacro", line 8, in <module>
    sheet.set('B3', 5)
<type 'exceptions.TypeError'>: set() argument 2 must be string, not int
'Array' cannot build shape of 'Link'Traceback (most recent call last):
  File "/home/aea/.FreeCAD/Macro/param-from-document-name.FCMacro", line 17, in <module>
    sheet.set('C3', '=%d' % x_repeat)
<type 'exceptions.TypeError'>: %d format: a number is required, not unicode
'Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link'<unknown exception traceback><type 'exceptions.SyntaxError'>: ('invalid syntax', ('/home/aea/.FreeCAD/Macro/param-from-document-name.FCMacro', 13, 12, 'regex_search = regex_pattern.search(doc_name)\n'))
'Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link'<App::Document> Document.cpp(2288): 'rpi_with_env' object 'Link' xlink property 'LinkedObject' not restored
'Array' cannot build shape of 'Link'23619.4 Selection.cpp(1425): Sub-object not found
23623 Selection.cpp(1425): Sub-object not found
'Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link''Array' cannot build shape of 'Link'Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x33060) [0x7fef92d95060]
#1  0x7fef9c58f9a2 in App::DocumentObject::getDocument() const from /opt/FreeCAD/lib/libFreeCADApp.so+0xc
#2  0x7fef9d7cb003 in Gui::ViewProviderDocumentObject::getDocument() const from /opt/FreeCAD/lib/libFreeCADGui.so+0x1f
#3  0x7fef9d5dc529 in Gui::DocumentItem::onDeleteDocument(Gui::DocumentItem*) from /opt/FreeCAD/lib/libFreeCADGui.so+0x1c9
#4  0x7fef9d5d74a3 in Gui::TreeWidget::slotDeleteDocument(Gui::Document const&) from /opt/FreeCAD/lib/libFreeCADGui.so+0xdf
#5  0x7fef9d5fc5d4 in boost::_mfi::mf1<void, Gui::TreeWidget, Gui::Document const&>::operator()(Gui::TreeWidget*, Gui::Document const&) const from /opt/FreeCAD/lib/libFreeCADGui.so+0x70
#6  0x7fef9d5faca0 in void boost::_bi::list2<boost::_bi::value<Gui::TreeWidget*>, boost::arg<1> >::operator()<boost::_mfi::mf1<void, Gui::TreeWidget, Gui::Document const&>, boost::_bi::rrlist1<Gui::Document const&> >(boost::_bi::type<void>, boost::_mfi::mf1<void, Gui::TreeWidget, Gui::Document const&>&, boost::_bi::rrlist1<Gui::Document const&>&, int) from /opt/FreeCAD/lib/libFreeCADGui.so+0x68
#7  0x7fef9d5f8920 in void boost::_bi::bind_t<void, boost::_mfi::mf1<void, Gui::TreeWidget, Gui::Document const&>, boost::_bi::list2<boost::_bi::value<Gui::TreeWidget*>, boost::arg<1> > >::operator()<Gui::Document const&>(Gui::Document const&) from /opt/FreeCAD/lib/libFreeCADGui.so+0x46
#8  0x7fef9d5f6a73 in boost::detail::function::void_function_obj_invoker1<boost::_bi::bind_t<void, boost::_mfi::mf1<void, Gui::TreeWidget, Gui::Document const&>, boost::_bi::list2<boost::_bi::value<Gui::TreeWidget*>, boost::arg<1> > >, void, Gui::Document const&>::invoke(boost::detail::function::function_buffer&, Gui::Document const&) from /opt/FreeCAD/lib/libFreeCADGui.so+0x36
#9  0x7fef9d3f0ad4 in boost::function1<void, Gui::Document const&>::operator()(Gui::Document const&) const from /opt/FreeCAD/lib/libFreeCADGui.so+0x68
#10  0x7fef9d3f0666 in boost::signals::detail::unusable boost::signals::detail::call_bound1<void>::caller<Gui::Document const&, boost::function<void (Gui::Document const&)> >::operator()<boost::signals::detail::connection_slot_pair>(boost::signals::detail::connection_slot_pair const&) const from /opt/FreeCAD/lib/libFreeCADGui.so+0x3e
#11  0x7fef9d3efa0d in boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<Gui::Document const&, boost::function<void (Gui::Document const&)> >, boost::signals::detail::named_slot_map_iterator>::dereference() const from /opt/FreeCAD/lib/libFreeCADGui.so+0x45
#12  0x7fef9d3eec96 in boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<Gui::Document const&, boost::function<void (Gui::Document const&)> >, boost::signals::detail::named_slot_map_iterator>::reference boost::iterators::iterator_core_access::dereference<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<Gui::Document const&, boost::function<void (Gui::Document const&)> >, boost::signals::detail::named_slot_map_iterator> >(boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<Gui::Document const&, boost::function<void (Gui::Document const&)> >, boost::signals::detail::named_slot_map_iterator> const&) from /opt/FreeCAD/lib/libFreeCADGui.so+0x18
#13  0x7fef9d3ed6c8 in boost::iterators::detail::iterator_facade_base<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<Gui::Document const&, boost::function<void (Gui::Document const&)> >, boost::signals::detail::named_slot_map_iterator>, boost::signals::detail::unusable, boost::iterators::single_pass_traversal_tag, boost::signals::detail::unusable const&, long, false, false>::operator*() const from /opt/FreeCAD/lib/libFreeCADGui.so+0x20
#14  0x7fef9d3ec0ca in boost::iterators::detail::postfix_increment_proxy<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<Gui::Document const&, boost::function<void (Gui::Document const&)> >, boost::signals::detail::named_slot_map_iterator> >::postfix_increment_proxy(boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<Gui::Document const&, boost::function<void (Gui::Document const&)> >, boost::signals::detail::named_slot_map_iterator> const&) from /opt/FreeCAD/lib/libFreeCADGui.so+0x1c
#15  0x7fef9d3e9779 in boost::iterators::detail::postfix_increment_result<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<Gui::Document const&, boost::function<void (Gui::Document const&)> >, boost::signals::detail::named_slot_map_iterator>, boost::signals::detail::unusable, boost::signals::detail::unusable const&, boost::iterators::single_pass_traversal_tag>::type boost::iterators::operator++<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<Gui::Document const&, boost::function<void (Gui::Document const&)> >, boost::signals::detail::named_slot_map_iterator>, boost::signals::detail::unusable, boost::iterators::single_pass_traversal_tag, boost::signals::detail::unusable const&, long>(boost::iterators::iterator_facade<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<Gui::Document const&, boost::function<void (Gui::Document const&)> >, boost::signals::detail::named_slot_map_iterator>, boost::signals::detail::unusable, boost::iterators::single_pass_traversal_tag, boost::signals::detail::unusable const&, long>&, int) from /opt/FreeCAD/lib/libFreeCADGui.so+0x23
#16  0x7fef9d3e5e7a in void boost::last_value<void>::operator()<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<Gui::Document const&, boost::function<void (Gui::Document const&)> >, boost::signals::detail::named_slot_map_iterator> >(boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<Gui::Document const&, boost::function<void (Gui::Document const&)> >, boost::signals::detail::named_slot_map_iterator>, boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<Gui::Document const&, boost::function<void (Gui::Document const&)> >, boost::signals::detail::named_slot_map_iterator>) const from /opt/FreeCAD/lib/libFreeCADGui.so+0x3c
#17  0x7fef9d3e2119 in boost::signal1<void, Gui::Document const&, boost::last_value<void>, int, std::less<int>, boost::function<void (Gui::Document const&)> >::operator()(Gui::Document const&) from /opt/FreeCAD/lib/libFreeCADGui.so+0x183
#18  0x7fef9d3d34a9 in Gui::Application::slotDeleteDocument(App::Document const&) from /opt/FreeCAD/lib/libFreeCADGui.so+0x103
#19  0x7fef9d3effdc in boost::_mfi::mf1<void, Gui::Application, App::Document const&>::operator()(Gui::Application*, App::Document const&) const from /opt/FreeCAD/lib/libFreeCADGui.so+0x70
#20  0x7fef9d3ef50a in void boost::_bi::list2<boost::_bi::value<Gui::Application*>, boost::arg<1> >::operator()<boost::_mfi::mf1<void, Gui::Application, App::Document const&>, boost::_bi::rrlist1<App::Document const&> >(boost::_bi::type<void>, boost::_mfi::mf1<void, Gui::Application, App::Document const&>&, boost::_bi::rrlist1<App::Document const&>&, int) from /opt/FreeCAD/lib/libFreeCADGui.so+0x68
#21  0x7fef9d3ee356 in void boost::_bi::bind_t<void, boost::_mfi::mf1<void, Gui::Application, App::Document const&>, boost::_bi::list2<boost::_bi::value<Gui::Application*>, boost::arg<1> > >::operator()<App::Document const&>(App::Document const&) from /opt/FreeCAD/lib/libFreeCADGui.so+0x46
#22  0x7fef9d3ecf4f in boost::detail::function::void_function_obj_invoker1<boost::_bi::bind_t<void, boost::_mfi::mf1<void, Gui::Application, App::Document const&>, boost::_bi::list2<boost::_bi::value<Gui::Application*>, boost::arg<1> > >, void, App::Document const&>::invoke(boost::detail::function::function_buffer&, App::Document const&) from /opt/FreeCAD/lib/libFreeCADGui.so+0x36
#23  0x7fef9c570dbc in boost::function1<void, App::Document const&>::operator()(App::Document const&) const from /opt/FreeCAD/lib/libFreeCADApp.so+0x68
#24  0x7fef9c56ba38 in boost::signals::detail::unusable boost::signals::detail::call_bound1<void>::caller<App::Document const&, boost::function<void (App::Document const&)> >::operator()<boost::signals::detail::connection_slot_pair>(boost::signals::detail::connection_slot_pair const&) const from /opt/FreeCAD/lib/libFreeCADApp.so+0x3e
#25  0x7fef9c5661f9 in boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::Document const&, boost::function<void (App::Document const&)> >, boost::signals::detail::named_slot_map_iterator>::dereference() const from /opt/FreeCAD/lib/libFreeCADApp.so+0x45
#26  0x7fef9c55efb4 in boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::Document const&, boost::function<void (App::Document const&)> >, boost::signals::detail::named_slot_map_iterator>::reference boost::iterators::iterator_core_access::dereference<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::Document const&, boost::function<void (App::Document const&)> >, boost::signals::detail::named_slot_map_iterator> >(boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::Document const&, boost::function<void (App::Document const&)> >, boost::signals::detail::named_slot_map_iterator> const&) from /opt/FreeCAD/lib/libFreeCADApp.so+0x18
#27  0x7fef9c556b48 in boost::iterators::detail::iterator_facade_base<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::Document const&, boost::function<void (App::Document const&)> >, boost::signals::detail::named_slot_map_iterator>, boost::signals::detail::unusable, boost::iterators::single_pass_traversal_tag, boost::signals::detail::unusable const&, long, false, false>::operator*() const from /opt/FreeCAD/lib/libFreeCADApp.so+0x20
#28  0x7fef9c549aec in boost::iterators::detail::postfix_increment_proxy<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::Document const&, boost::function<void (App::Document const&)> >, boost::signals::detail::named_slot_map_iterator> >::postfix_increment_proxy(boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::Document const&, boost::function<void (App::Document const&)> >, boost::signals::detail::named_slot_map_iterator> const&) from /opt/FreeCAD/lib/libFreeCADApp.so+0x1c
#29  0x7fef9c536a33 in boost::iterators::detail::postfix_increment_result<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::Document const&, boost::function<void (App::Document const&)> >, boost::signals::detail::named_slot_map_iterator>, boost::signals::detail::unusable, boost::signals::detail::unusable const&, boost::iterators::single_pass_traversal_tag>::type boost::iterators::operator++<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::Document const&, boost::function<void (App::Document const&)> >, boost::signals::detail::named_slot_map_iterator>, boost::signals::detail::unusable, boost::iterators::single_pass_traversal_tag, boost::signals::detail::unusable const&, long>(boost::iterators::iterator_facade<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::Document const&, boost::function<void (App::Document const&)> >, boost::signals::detail::named_slot_map_iterator>, boost::signals::detail::unusable, boost::iterators::single_pass_traversal_tag, boost::signals::detail::unusable const&, long>&, int) from /opt/FreeCAD/lib/libFreeCADApp.so+0x23
#30  0x7fef9c52442e in void boost::last_value<void>::operator()<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::Document const&, boost::function<void (App::Document const&)> >, boost::signals::detail::named_slot_map_iterator> >(boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::Document const&, boost::function<void (App::Document const&)> >, boost::signals::detail::named_slot_map_iterator>, boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::Document const&, boost::function<void (App::Document const&)> >, boost::signals::detail::named_slot_map_iterator>) const from /opt/FreeCAD/lib/libFreeCADApp.so+0x3c
#31  0x7fef9c5170a5 in boost::signal1<void, App::Document const&, boost::last_value<void>, int, std::less<int>, boost::function<void (App::Document const&)> >::operator()(App::Document const&) from /opt/FreeCAD/lib/libFreeCADApp.so+0x183
#32  0x7fef9c6ebf06 in App::Application::closeDocument(char const*) from /opt/FreeCAD/lib/libFreeCADApp.so+0xd0
#33  0x7fef9c6ecf0c in App::Application::openDocumentPrivate(char const*, bool, bool, std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<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 /opt/FreeCAD/lib/libFreeCADApp.so+0x27e
#34  0x7fef9c6ec940 in App::Application::openDocument(char const*) from /opt/FreeCAD/lib/libFreeCADApp.so+0x254
#35  0x7fef9c7180bb in App::Application::sOpenDocument(_object*, _object*, _object*) from /opt/FreeCAD/lib/libFreeCADApp.so+0xa5
#36  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x8541) [0x7fef9b536091]
#37  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x86c) [0x7fef9b69d29c]
#38  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x19) [0x7fef9b52d9c9]
#39  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyRun_StringFlags+0x76) [0x7fef9b5e5196]
#40  0x7fef9bbaeafc in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /opt/FreeCAD/lib/libFreeCADBase.so+0xd2
#41  0x7fef9d487546 in Gui::Command::_runCommand(char const*, int, Gui::Command::DoCmd_Type, char const*) from /opt/FreeCAD/lib/libFreeCADGui.so+0x9c
#42  0x7fef9d487246 in Gui::Command::_doCommand(char const*, int, Gui::Command::DoCmd_Type, char const*, ...) from /opt/FreeCAD/lib/libFreeCADGui.so+0x112
#43  0x7fef9d3d18a5 in Gui::Application::open(char const*, char const*) from /opt/FreeCAD/lib/libFreeCADGui.so+0x21d
#44  0x7fef9d3dc109 in Gui::Application::reopen(App::Document*) from /opt/FreeCAD/lib/libFreeCADGui.so+0x3c3
#45  0x7fef9d5d72c5 in Gui::TreeWidget::onReloadDoc() from /opt/FreeCAD/lib/libFreeCADGui.so+0xc9
#46  0x7fef9d5d2b65 in Gui::TreeWidget::mouseDoubleClickEvent(QMouseEvent*) from /opt/FreeCAD/lib/libFreeCADGui.so+0xad
#47  0x7fef94fe5a00 in QWidget::event(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0xe10
#48  0x7fef953a9c8e in QFrame::event(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x1e
#49  0x7fef954ceba3 in QAbstractItemView::viewportEvent(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x1e3
#50  0x7fef9551046c in QTreeView::viewportEvent(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x3c
#51  0x7fef944c80a1 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x91
#52  0x7fef94f8e52c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x6c
#53  0x7fef94f96ca7 in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x1a47
#54  0x7fef9d456771 in Gui::GUIApplication::notify(QObject*, QEvent*) from /opt/FreeCAD/lib/libFreeCADGui.so+0xff
#55  0x7fef944c7f1d in QCoreApplication::notifyInternal(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x8d
#56  0x7fef94f94ccb in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x14b
#57  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x2461a9) [0x7fef950101a9]
#58  0x7fef9500eb5c in QApplication::x11ProcessEvent(_XEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0xc9c
#59  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26e502) [0x7fef95038502]
#60  /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x2a7) [0x7fef8ba5d7f7]
#61  /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4aa60) [0x7fef8ba5da60]
#62  /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7fef8ba5db0c]
#63  0x7fef944f8854 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x64
#64  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26e5d6) [0x7fef950385d6]
#65  0x7fef944c67ef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x3f
#66  0x7fef944c6b55 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x1b5
#67  0x7fef944ccbd9 in QCoreApplication::exec() from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x99
#68  0x7fef9d3da512 in Gui::Application::runApplication() from /opt/FreeCAD/lib/libFreeCADGui.so+0x22d8
#69  freecad-git(main+0xa6f) [0x55e30c9b74f9]
#70  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7fef92d822e1]
#71  freecad-git(_start+0x2a) [0x55e30c9b690a]
<asm3.sys> 5554.692338 - sys_slvs.py(52): redundant constraints
<asm3.sys> 2636.301359 - sys_slvs.py(52): redundant constraints
Rebuilding Views for: Page/Page
<asm3.sys> 8498.598847 - sys_slvs.py(52): redundant constraints
Rebuilding Views for: Page/Page
<asm3.sys> 1512.132477 - sys_slvs.py(52): redundant constraints
<asm3.sys> 56.663338 - sys_slvs.py(52): redundant constraints
<asm3.sys> 83.695015 - sys_slvs.py(52): redundant constraints
<asm3.sys> 74.74724 - sys_slvs.py(52): redundant constraints
Rebuilding Views for: Page/Page
@realthunder
Copy link
Owner

Can you please post the file causing this crash? The crash happened when you double click a partially loaded document, and FC tries to reopen the document fully.

@ceremcem
Copy link
Collaborator Author

ceremcem commented Sep 6, 2018

@ceremcem
Copy link
Collaborator Author

ceremcem commented Sep 6, 2018

@realthunder is this also related with your provided fix:
crash-reproduction

<asm3.gui> 17.960581 - gui.py(56): 
Traceback (most recent call last):
  File "/opt/FreeCAD/Ext/freecad/asm3/FCADLogger.py", line 83, in _catch
    return func(*args,**kargs)
  File "/opt/FreeCAD/Ext/freecad/asm3/gui.py", line 25, in _setElementVisible
    res = sobj.Proxy.parent.Object.isElementVisible(sobj.Name)
AttributeError: 'AsmElement' object has no attribute 'parent'

<asm3.gui> 0.013218 - gui.py(56): 
Traceback (most recent call last):
  File "/opt/FreeCAD/Ext/freecad/asm3/FCADLogger.py", line 83, in _catch
    return func(*args,**kargs)
  File "/opt/FreeCAD/Ext/freecad/asm3/gui.py", line 25, in _setElementVisible
    res = sobj.Proxy.parent.Object.isElementVisible(sobj.Name)
AttributeError: 'AsmElement' object has no attribute 'parent'

<asm3.gui> 3.06848 - gui.py(56): 
Traceback (most recent call last):
  File "/opt/FreeCAD/Ext/freecad/asm3/FCADLogger.py", line 83, in _catch
    return func(*args,**kargs)
  File "/opt/FreeCAD/Ext/freecad/asm3/gui.py", line 25, in _setElementVisible
    res = sobj.Proxy.parent.Object.isElementVisible(sobj.Name)
AttributeError: 'AsmElement' object has no attribute 'parent'

<asm3.gui> 0.556494 - gui.py(56): 
Traceback (most recent call last):
  File "/opt/FreeCAD/Ext/freecad/asm3/FCADLogger.py", line 83, in _catch
    return func(*args,**kargs)
  File "/opt/FreeCAD/Ext/freecad/asm3/gui.py", line 25, in _setElementVisible
    res = sobj.Proxy.parent.Object.isElementVisible(sobj.Name)
AttributeError: 'AsmElement' object has no attribute 'parent'

<asm3.gui> 0.000579 - gui.py(56): 
Traceback (most recent call last):
  File "/opt/FreeCAD/Ext/freecad/asm3/FCADLogger.py", line 83, in _catch
    return func(*args,**kargs)
  File "/opt/FreeCAD/Ext/freecad/asm3/gui.py", line 25, in _setElementVisible
    res = sobj.Proxy.parent.Object.isElementVisible(sobj.Name)
AttributeError: 'AsmElement' object has no attribute 'parent'

'Array' cannot build shape of 'Link'Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x33060) [0x7f883570b060]
#1  0x7f883e56835a in Base::Rotation::getValue(Base::Matrix4D&) const from /opt/FreeCAD/lib/libFreeCADBase.so+0x14
#2  0x7f883e55b40a in Base::Placement::toMatrix() const from /opt/FreeCAD/lib/libFreeCADBase.so+0x34
#3  0x7f883ff4b45c in Gui::TreeWidget::dropEvent(QDropEvent*) from /opt/FreeCAD/lib/libFreeCADGui.so+0x1812
#4  0x7f883795ae80 in QWidget::event(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x290
#5  0x7f8837d1fc8e in QFrame::event(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x1e
#6  0x7f8837e44ba3 in QAbstractItemView::viewportEvent(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x1e3
#7  0x7f8837e8646c in QTreeView::viewportEvent(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x3c
#8  0x7f8836e3e0a1 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x91
#9  0x7f883790452c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x6c
#10  0x7f883790c7de in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x157e
#11  0x7f883fdcc771 in Gui::GUIApplication::notify(QObject*, QEvent*) from /opt/FreeCAD/lib/libFreeCADGui.so+0xff
#12  0x7f8836e3df1d in QCoreApplication::notifyInternal(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x8d
#13  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x254288) [0x7f8837994288]
#14  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x25467d) [0x7f883799467d]
#15  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x2559b0) [0x7f88379959b0]
#16  0x7f8836e3dff5 in QCoreApplicationPrivate::sendThroughApplicationEventFilters(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0xa5
#17  0x7f88379044d8 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x18
#18  0x7f883790cca7 in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x1a47
#19  0x7f883fdcc771 in Gui::GUIApplication::notify(QObject*, QEvent*) from /opt/FreeCAD/lib/libFreeCADGui.so+0xff
#20  0x7f8836e3df1d in QCoreApplication::notifyInternal(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x8d
#21  0x7f883790accb in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x14b
#22  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x2461a9) [0x7f88379861a9]
#23  0x7f8837984b5c in QApplication::x11ProcessEvent(_XEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0xc9c
#24  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26e502) [0x7f88379ae502]
#25  /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x2a7) [0x7f882e3d37f7]
#26  /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4aa60) [0x7f882e3d3a60]
#27  /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7f882e3d3b0c]
#28  0x7f8836e6e854 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x64
#29  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26e5d6) [0x7f88379ae5d6]
#30  0x7f8836e3c7ef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x3f
#31  0x7f8836e3cb55 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x1b5
#32  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x255cbd) [0x7f8837995cbd]
#33  0x7f883791655a in QDrag::exec(QFlags<Qt::DropAction>, Qt::DropAction) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x5a
#34  0x7f8837e45881 in QAbstractItemView::startDrag(QFlags<Qt::DropAction>) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x141
#35  0x7f883ff48cc0 in Gui::TreeWidget::startDrag(QFlags<Qt::DropAction>) from /opt/FreeCAD/lib/libFreeCADGui.so+0x36
#36  0x7f8837e44003 in QAbstractItemView::mouseMoveEvent(QMouseEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x303
#37  0x7f883795ae80 in QWidget::event(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x290
#38  0x7f8837d1fc8e in QFrame::event(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x1e
#39  0x7f8837e44ba3 in QAbstractItemView::viewportEvent(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x1e3
#40  0x7f8837e8646c in QTreeView::viewportEvent(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x3c
#41  0x7f8836e3e0a1 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x91
#42  0x7f883790452c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x6c
#43  0x7f883790cca7 in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x1a47
#44  0x7f883fdcc771 in Gui::GUIApplication::notify(QObject*, QEvent*) from /opt/FreeCAD/lib/libFreeCADGui.so+0xff
#45  0x7f8836e3df1d in QCoreApplication::notifyInternal(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x8d
#46  0x7f883790accb in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x14b
#47  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x2461a9) [0x7f88379861a9]
#48  0x7f8837984b5c in QApplication::x11ProcessEvent(_XEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0xc9c
#49  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26e502) [0x7f88379ae502]
#50  /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x2a7) [0x7f882e3d37f7]
#51  /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4aa60) [0x7f882e3d3a60]
#52  /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7f882e3d3b0c]
#53  0x7f8836e6e854 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x64
#54  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26e5d6) [0x7f88379ae5d6]
#55  0x7f8836e3c7ef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x3f
#56  0x7f8836e3cb55 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x1b5
#57  0x7f8836e42bd9 in QCoreApplication::exec() from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x99
#58  0x7f883fd50512 in Gui::Application::runApplication() from /opt/FreeCAD/lib/libFreeCADGui.so+0x22d8
#59  freecad-git(main+0xa6f) [0x5591d26f84f9]
#60  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f88356f82e1]
#61  freecad-git(_start+0x2a) [0x5591d26f790a]
FreeCAD 0.18, Libs: 0.18R14975 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2018
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Sheet Metal workbench loaded
Rebuilding Views for: Page/Page

realthunder added a commit to realthunder/FreeCAD that referenced this issue Sep 6, 2018
@realthunder
Copy link
Owner

The drag and drop crash is fixed. But I didn't have the warning message when opening the file. Did you changed something in the file? If not, please attach your FC config files at ~/.FreeCAD/{system.cfg, user.cfg}.

@ceremcem
Copy link
Collaborator Author

ceremcem commented Sep 6, 2018

No, I didn't change anything. Here are the files:
cfg.zip

@realthunder
Copy link
Owner

Cannot reproduce the warning. My guess is because your FC loads the documents kind of slow, and it picks up mouse over highlight event somehow during loading. I just added a fix. Please sync asm3 repo and try again.

BTW, document loading does takes extra time, whether it is partial or not. I think it is best to put the pin head models all in one files. You can have the single pin head, and various arries of pin heads all inside one file, as the pinhead library. When you use the pin head in an actual assembly, only the referred array object will be loaded, others won't even shown up in the tree view.

@ceremcem
Copy link
Collaborator Author

ceremcem commented Sep 6, 2018

I synced everything and there is no such warnings. Thanks.

You can have the single pin head, and various arries of pin heads all inside one file, as the pinhead library.

I'll keep this in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants