[SOLVED] IFC Import SEGFAULT and Error in ArchBuildingPart ?

This forum section is only for IFC-related issues
Post Reply
Cyril
Posts: 133
Joined: Wed Aug 23, 2017 5:04 pm
Location: Geneva (Switzerland)
Contact:

[SOLVED] IFC Import SEGFAULT and Error in ArchBuildingPart ?

Post by Cyril »

OS: Manjaro Linux (XFCE/xfce)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16942 (Git)
Build type: Release
Branch: master
Hash: 6380b28e2430bf9e651f26113ea5267818d1d034
Python version: 3.7.3
Qt version: 5.12.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_CH)
  1. Open FreeCAD
  2. Import Ifc (any even the simplest one)
  3. FreeCAD crash
Error message :

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
#0  /usr/lib/libc.so.6(+0x378b0) [0x7ff5a0c6e8b0]
#1  0x7ff5a2af4c41 in Gui::ViewProviderDocumentObject::updateView() from /usr/lib/freecad/lib/libFreeCADGui.so+0x81
#2  0x7ff5a2836aa9 in Gui::Document::slotNewObject(App::DocumentObject const&) from /usr/lib/freecad/lib/libFreeCADGui.so+0x169
#3  0x7ff5a2291eef in boost::signals2::detail::signal_impl<void (App::DocumentObject const&), boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (App::DocumentObject const&)>, boost::function<void (boost::signals2::connection const&, App::DocumentObject const&)>, boost::signals2::mutex>::operator()(App::DocumentObject const&) from /usr/lib/freecad/lib/libFreeCADApp.so+0x27f
#4  0x7ff5a22639d7 in App::Document::addObject(char const*, char const*, bool) from /usr/lib/freecad/lib/libFreeCADApp.so+0x1b7
#5  0x7ff5a22c9a3f in App::DocumentPy::addObject(_object*) from /usr/lib/freecad/lib/libFreeCADApp.so+0x8f
#6  0x7ff5a22ca318 in App::DocumentPy::staticCallback_addObject(_object*, _object*) from /usr/lib/freecad/lib/libFreeCADApp.so+0x38
#7  /usr/lib/libpython3.7m.so.1.0(_PyMethodDef_RawFastCallKeywords+0x148) [0x7ff5a1c9be68]
#8  /usr/lib/libpython3.7m.so.1.0(_PyCFunction_FastCallKeywords+0x21) [0x7ff5a1c9c101]
#9  /usr/lib/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x51b9) [0x7ff5a1d0cd19]
#10  /usr/lib/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x2f9) [0x7ff5a1c54d09]
#11  /usr/lib/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0x2b2) [0x7ff5a1c9b882]
#12  /usr/lib/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x6cd) [0x7ff5a1d0822d]
#13  /usr/lib/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x2f9) [0x7ff5a1c54d09]
#14  /usr/lib/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0x2b2) [0x7ff5a1c9b882]
#15  /usr/lib/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x4b8a) [0x7ff5a1d0c6ea]
#16  /usr/lib/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x2f9) [0x7ff5a1c54d09]
#17  /usr/lib/libpython3.7m.so.1.0(PyEval_EvalCodeEx+0x44) [0x7ff5a1c55c64]
#18  /usr/lib/libpython3.7m.so.1.0(PyEval_EvalCode+0x1c) [0x7ff5a1c55c8c]
#19  /usr/lib/libpython3.7m.so.1.0(+0x237694) [0x7ff5a1d7e694]
#20  /usr/lib/libpython3.7m.so.1.0(PyRun_StringFlags+0x7d) [0x7ff5a1d7f69d]
#21  0x7ff5a2000f48 in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /usr/lib/freecad/lib/libFreeCADBase.so+0x68
#22  0x7ff5a288fff9 in Gui::Command::doCommand(Gui::Command::DoCmd_Type, char const*, ...) from /usr/lib/freecad/lib/libFreeCADGui.so+0x139
#23  0x7ff5a27f34af in Gui::Application::open(char const*, char const*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x13f
#24  0x7ff5a289b43f in StdCmdOpen::activated(int) from /usr/lib/freecad/lib/libFreeCADGui.so+0xbbf
#25  0x7ff5a2894877 in Gui::Command::invoke(int) from /usr/lib/freecad/lib/libFreeCADGui.so+0x57
#26  0x7ff5a124c1d7 in QMetaObject::activate(QObject*, int, int, void**) from /usr/lib/libQt5Core.so.5+0x777
#27  0x7ff5a162c5e3 in QAction::triggered(bool) from /usr/lib/libQt5Widgets.so.5+0x43
#28  0x7ff5a162ecca in QAction::activate(QAction::ActionEvent) from /usr/lib/libQt5Widgets.so.5+0xfa
#29  /usr/lib/libQt5Widgets.so.5(+0x2cf40d) [0x7ff5a17a940d]
#30  /usr/lib/libQt5Widgets.so.5(+0x2d6b22) [0x7ff5a17b0b22]
#31  0x7ff5a17b1a9c in QMenu::mouseReleaseEvent(QMouseEvent*) from /usr/lib/libQt5Widgets.so.5+0x26c
#32  0x7ff5a1673af8 in QWidget::event(QEvent*) from /usr/lib/libQt5Widgets.so.5+0x1d8
#33  0x7ff5a17b3f8c in QMenu::event(QEvent*) from /usr/lib/libQt5Widgets.so.5+0x16c
#34  0x7ff5a1632da4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt5Widgets.so.5+0x84
#35  0x7ff5a163a609 in QApplication::notify(QObject*, QEvent*) from /usr/lib/libQt5Widgets.so.5+0x459
#36  0x7ff5a2863709 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x89
#37  0x7ff5a1221849 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt5Core.so.5+0x179
#38  0x7ff5a1639937 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) from /usr/lib/libQt5Widgets.so.5+0x1b7
#39  /usr/lib/libQt5Widgets.so.5(+0x1b556b) [0x7ff5a168f56b]
#40  /usr/lib/libQt5Widgets.so.5(+0x1b7cd7) [0x7ff5a1691cd7]
#41  0x7ff5a1632da4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt5Widgets.so.5+0x84
#42  0x7ff5a163a3c1 in QApplication::notify(QObject*, QEvent*) from /usr/lib/libQt5Widgets.so.5+0x211
#43  0x7ff5a2863709 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x89
#44  0x7ff5a1221849 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt5Core.so.5+0x179
#45  0x7ff59f44052d in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /usr/lib/libQt5Gui.so.5+0x6dd
#46  0x7ff59f4411ef in QGuiApplicationPrivate::processTabletEvent(QWindowSystemInterfacePrivate::TabletEvent*) from /usr/lib/libQt5Gui.so.5+0x42f
#47  0x7ff59f441906 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) from /usr/lib/libQt5Gui.so.5+0xe6
#48  0x7ff59f41ad9c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt5Gui.so.5+0xbc
#49  /usr/lib/libQt5XcbQpa.so.5(+0x6db8c) [0x7ff59abc2b8c]
#50  /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x2bf) [0x7ff59e86c90f]
#51  /usr/lib/libglib-2.0.so.0(+0x6d869) [0x7ff59e86e869]
#52  /usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x2e) [0x7ff59e86e8ae]
#53  0x7ff5a1276969 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt5Core.so.5+0x69
#54  0x7ff5a12204dc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt5Core.so.5+0x13c
#55  0x7ff5a1228596 in QCoreApplication::exec() from /usr/lib/libQt5Core.so.5+0x96
#56  0x7ff5a27fa670 in Gui::Application::runApplication() from /usr/lib/freecad/lib/libFreeCADGui.so+0x1580
#57  freecad(main+0x72f) [0x56222964f4bf]
#58  /usr/lib/libc.so.6(__libc_start_main+0xf3) [0x7ff5a0c5ace3]
#59  freecad(_start+0x2e) [0x56222964f7ee]
Please see attached log.
Attachments
FreeCAD.log
(20.76 KiB) Downloaded 36 times
Last edited by Cyril on Sun Jun 23, 2019 3:10 pm, edited 1 time in total.
I blog about HVAC / BIM / Energy : pythoncvc.net. If you like you can follow the RSS feed.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: IFC Import SEGFAULT and Error in ArchBuildingPart ?

Post by Kunda1 »

Cyril wrote: Sun Jun 23, 2019 9:35 am Version: 0.19.16942 (Git)
Greets @Cyril fellow Manjaro user here.
Quick favor, can you in general update to the latest v0.19 (current revision is at 17120) to conduct your tests (because the dev version is updated very frequently)?
You can also try the AppImage as well (though at times it lags behind HEAD quite substantially).
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Cyril
Posts: 133
Joined: Wed Aug 23, 2017 5:04 pm
Location: Geneva (Switzerland)
Contact:

Re: IFC Import SEGFAULT and Error in ArchBuildingPart ?

Post by Cyril »

Kunda1 wrote: Sun Jun 23, 2019 12:04 pm
Cyril wrote: Sun Jun 23, 2019 9:35 am Version: 0.19.16942 (Git)
Greets @Cyril fellow Manjaro user here.
Quick favor, can you in general update to the latest v0.19 (current revision is at 17120) to conduct your tests (because the dev version is updated very frequently)?
You can also try the AppImage as well (though at times it lags behind HEAD quite substantially).
Greets @Kunda1. I have updated / recompiled this morning so I was up to date at the time I wrote. For some reason FreeCAD about is not displaying the correct commit.

I just updated the source again and compiled. When I go in about, I still get the same version. The Hash is wrong (the commit with this hash is 15 days old…) :
OS: Manjaro Linux (XFCE/xfce)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16942 (Git)
Build type: Release
Branch: master
Hash: 6380b28e2430bf9e651f26113ea5267818d1d034
Python version: 3.7.3
Qt version: 5.12.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_CH)
But when I do a git log I get the commit from 1 hour ago :

Code: Select all

[freecad-git]$ git log -n1

commit da6155d0ae98839555d3ae9c5a56b71df8df0046 (HEAD -> makepkg, origin/master$
Author: wmayer <wmayer@users.sourceforge.net>
Date:   Sun Jun 23 15:35:49 2019 +0200

    Fix a couple of gcc compiler warnings:
    -Wint-in-bool-context
    -Wunused-function
Where the about takes its info from ? Maybe there is something to modify in the PKGBUILD file to correctly update these info.

About the issue described in my first post. It is solved. Would you say that in these case I should wait at least a day (a week ?), rebuild and retest before reporting ? 
I blog about HVAC / BIM / Energy : pythoncvc.net. If you like you can follow the RSS feed.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [SOLVED] IFC Import SEGFAULT and Error in ArchBuildingPart ?

Post by Kunda1 »

The version issue may be related to issue #4014.
Cyril wrote: Sun Jun 23, 2019 2:42 pm About the issue described in my first post. It is solved. Would you say that in these case I should wait at least a day (a week ?), rebuild and retest before reporting ?
Yea, sometimes the development happens so quickly bugs become obsolete! :lol:
I'd say once the hash revision number thing gets fixed, to look at the revision number and reference the github.com/freecad/freecad revision and see if there is a large discrepancy and make a decision based on that to recompile. The best most thorough way is to look at the git log and see if there may have been any mentions of fixes regarding the issue you're encountering, then you can makea more informed decision if it's worth your time to recompile. But don't fret, it's also ok to also post issues and find out like this that they have been fixed. 8-)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply