FreeCAD crash ubuntu ppa in MechanicalMaterial

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
bernd
Posts: 9345
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

FreeCAD crash ubuntu ppa in MechanicalMaterial

Postby bernd » Thu Sep 24, 2015 12:37 pm

can someone who has installed upuntu ppa confirm the following problems I have ...

Code: Select all

App.newDocument()
import MechanicalMaterial
mat = MechanicalMaterial.makeMechanicalMaterial('MechanicalMaterial')
press in python konsole, the dot does not show up, if I try to press a few times the dot FreeCAD crashs ...

Code: Select all

mat.

Code: Select all


bhb@ubuntuVM:~$ 
bhb@ubuntuVM:~$ freecad
FreeCAD 0.16, Libs: 0.16R5617 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

pci id for fd 10: 80ee:beef, driver (null)
OpenGL Warning: vboxCall failed with VBox status code -2

OpenGL Warning: crVBoxHGCMCall failed -2
OpenGL Warning: crVBoxHGCMSetVersion failed -2
OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM.
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
freecad: /build/freecad-k3mBbL/freecad-0.16+bzr4188+201509231933~ubuntu15.04.1/src/Base/BaseClass.cpp:115: virtual PyObject* Base::BaseClass::getPyObject(): Assertion `0' failed.
Aborted (core dumped)
bhb@ubuntuVM:~$ 

OS: Ubuntu 15.04
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.16.5617 (Git)
Build type: None
Branch: master
Hash: 90ccc1cee40d9f9dae1ed1dd5ac91955dcb24aa6
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 4.0.0a
User avatar
sgrogan
Posts: 5655
Joined: Wed Oct 22, 2014 5:02 pm

Re: FreeCAD crash ubuntu ppa in MechanicalMaterial

Postby sgrogan » Thu Sep 24, 2015 1:01 pm

bernd wrote:can someone who has installed upuntu ppa confirm the following problems I have ...
I don't have the PPA here, but I think it's related to this
viewtopic.php?f=10&p=100901#p100852
The PPA loads all the material files in the same directory. If you swap out the material files from PrzemoF's branch I think all will be fixed.
User avatar
PrzemoF
Posts: 2764
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FreeCAD crash ubuntu ppa in MechanicalMaterial

Postby PrzemoF » Thu Sep 24, 2015 1:52 pm

Fedora (no ppa) here and the same problem:

Code: Select all

FreeCAD: /home/przemo/software/FreeCAD/freecad/src/Base/BaseClass.cpp:115: virtual PyObject* Base::BaseClass::getPyObject(): Assertion `0' failed.
Aborted (core dumped)
it's not related to the material files problem, as I just tested it on the gh/material_fix_v1 branch and it crashes as well.
bt:

Code: Select all

FreeCAD: /home/przemo/software/FreeCAD/freecad/src/Base/BaseClass.cpp:115: virtual PyObject* Base::BaseClass::getPyObject(): Assertion `0' failed.

Program received signal SIGABRT, Aborted.
0x00007fffee4fa8d7 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install Coin3-3.1.3-7.fc21.x86_64 GConf2-3.2.6-11.fc21.x86_64 OCE-foundation-0.16.1-2.fc21.x86_64 OCE-modeling-0.16.1-2.fc21.x86_64 OCE-ocaf-0.16.1-2.fc21.x86_64 OCE-visualization-0.16.1-2.fc21.x86_64 ORBit2-2.14.19-13.fc21.x86_64 OpenEXR-libs-2.1.0-5.fc21.x86_64 PackageKit-gtk3-module-1.0.6-1.fc21.x86_64 atk-2.14.0-1.fc21.x86_64 avahi-glib-0.6.31-31.fc21.x86_64 avahi-libs-0.6.31-31.fc21.x86_64 boost-filesystem-1.55.0-8.fc21.x86_64 boost-program-options-1.55.0-8.fc21.x86_64 boost-regex-1.55.0-8.fc21.x86_64 boost-signals-1.55.0-8.fc21.x86_64 boost-system-1.55.0-8.fc21.x86_64 boost-thread-1.55.0-8.fc21.x86_64 bzip2-libs-1.0.6-14.fc21.x86_64 cairo-1.14.2-1.fc21.x86_64 dbus-glib-0.104-1.fc21.x86_64 dbus-libs-1.8.18-1.fc21.x86_64 elfutils-libelf-0.161-6.fc21.x86_64 elfutils-libs-0.161-6.fc21.x86_64 expat-2.1.0-10.fc21.x86_64 fontconfig-2.11.1-5.fc21.x86_64 freetype-2.5.3-16.fc21.x86_64 gdk-pixbuf2-2.31.1-1.fc21.x86_64 glib2-2.42.2-1.fc21.x86_64 gnome-vfs2-2.24.4-17.fc21.x86_64 graphite2-1.2.4-3.fc21.x86_64 gstreamer1-1.4.5-1.fc21.x86_64 gstreamer1-plugins-base-1.4.5-1.fc21.x86_64 gtk-murrine-engine-0.98.2-7.fc21.x86_64 gtk2-2.24.28-1.fc21.x86_64 gvfs-1.22.4-2.fc21.x86_64 harfbuzz-0.9.36-1.fc21.x86_64 ilmbase-2.1.0-3.fc21.x86_64 jbigkit-libs-2.1-2.fc21.x86_64 keyutils-libs-1.5.9-4.fc21.x86_64 krb5-libs-1.12.2-17.fc21.x86_64 lcms2-2.6-4.fc21.x86_64 libICE-1.0.9-2.fc21.x86_64 libSM-1.2.2-2.fc21.x86_64 libX11-1.6.2-2.fc21.x86_64 libXau-1.0.8-4.fc21.x86_64 libXcomposite-0.4.4-6.fc21.x86_64 libXcursor-1.1.14-4.fc21.x86_64 libXdamage-1.1.4-6.fc21.x86_64 libXext-1.3.3-2.fc21.x86_64 libXfixes-5.0.1-4.fc21.x86_64 libXi-1.7.4-2.fc21.x86_64 libXinerama-1.1.3-4.fc21.x86_64 libXrandr-1.4.2-2.fc21.x86_64 libXrender-0.9.8-4.fc21.x86_64 libXxf86vm-1.1.3-4.fc21.x86_64 libart_lgpl-2.3.21-12.fc21.x86_64 libbluray-0.7.0-1.fc21.x86_64 libbonobo-2.32.1-8.fc21.x86_64 libbonoboui-2.24.5-8.fc21.x86_64 libcanberra-0.30-7.fc21.x86_64 libcanberra-gtk2-0.30-7.fc21.x86_64 libcom_err-1.42.12-4.fc21.x86_64 libdrm-2.4.60-1.fc21.x86_64 libedit-3.1-12.20150325cvs.fc21.x86_64 libffi-3.1-7.fc21.x86_64 libgcc-4.9.2-6.fc21.x86_64 libgcrypt-1.6.3-4.fc21.x86_64 libgnome-2.32.1-9.fc21.x86_64 libgnome-keyring-3.12.0-4.fc21.x86_64 libgnomecanvas-2.30.3-9.fc21.x86_64 libgnomeui-2.24.5-10.fc21.x86_64 libgpg-error-1.17-2.fc21.x86_64 libicu-52.1-6.fc21.x86_64 libjpeg-turbo-1.3.1-5.fc21.x86_64 libmng-2.0.2-3.fc21.x86_64 libogg-1.3.0-8.fc21.x86_64 libpciaccess-0.13.3-0.3.fc21.x86_64 libpng-1.6.10-3.fc21.x86_64 libselinux-2.3-9.fc21.x86_64 libstdc++-4.9.2-6.fc21.x86_64 libtdb-1.3.1-1.fc21.x86_64 libtiff-4.0.3-20.fc21.x86_64 libtool-ltdl-2.4.2-31.fc21.x86_64 libuuid-2.25.2-3.fc21.x86_64 libvorbis-1.3.4-3.fc21.x86_64 libwayland-client-1.6.0-1.fc21.x86_64 libwayland-server-1.6.0-1.fc21.x86_64 libwebp-0.4.3-2.fc21.x86_64 libxcb-1.11-5.fc21.x86_64 libxml2-2.9.1-7.fc21.x86_64 libxshmfence-1.2-1.fc21.x86_64 libxslt-1.1.28-8.fc21.x86_64 llvm-libs-3.5.0-6.fc21.x86_64 mesa-dri-drivers-10.4.7-1.20150323.fc21.x86_64 mesa-libEGL-10.4.7-1.20150323.fc21.x86_64 mesa-libGL-10.4.7-1.20150323.fc21.x86_64 mesa-libGLU-9.0.0-7.fc21.x86_64 mesa-libgbm-10.4.7-1.20150323.fc21.x86_64 mesa-libglapi-10.4.7-1.20150323.fc21.x86_64 ncurses-libs-5.9-16.20140323.fc21.x86_64 nss-mdns-0.10-15.fc21.x86_64 nss-softokn-freebl-3.19.2-1.0.fc21.x86_64 openjpeg-libs-1.5.1-14.fc21.x86_64 openssl-libs-1.0.1k-11.fc21.x86_64 orc-0.4.22-3.fc21.x86_64 pango-1.36.8-5.fc21.x86_64 pcre-8.35-12.fc21.x86_64 pixman-0.32.6-4.fc21.x86_64 popt-1.16-5.fc21.x86_64 proj-4.8.0-7.fc21.x86_64 python-libs-2.7.8-9.fc21.x86_64 python-pyside-1.2.2-2.fc21.x86_64 qt-4.8.6-30.fc21.x86_64 qt-mobility-location-1.2.2-0.17.20140317git169da60c.fc21.x86_64 qt-mobility-sensors-1.2.2-0.17.20140317git169da60c.fc21.x86_64 qt-x11-4.8.6-30.fc21.x86_64 qtwebkit-2.3.4-6.fc21.x86_64 shiboken-libs-1.2.2-2.fc21.x86_64 sqlite-3.8.10.2-1.fc21.x86_64 systemd-libs-216-25.fc21.x86_64 tbb-4.3-1.20141204.fc21.x86_64 xerces-c-3.1.1-8.fc21.x86_64 xz-libs-5.1.2-14alpha.fc21.x86_64 zlib-1.2.8-7.fc21.x86_64
(gdb) bt
#0  0x00007fffee4fa8d7 in raise () at /lib64/libc.so.6
#1  0x00007fffee4fc53a in abort () at /lib64/libc.so.6
#2  0x00007fffee4f347d in __assert_fail_base () at /lib64/libc.so.6
#3  0x00007fffee4f3532 in  () at /lib64/libc.so.6
#4  0x00007ffff6321499 in  () at /home/przemo/software/FreeCAD/build/lib/libFreeCADBase.so
#5  0x00007ffff6a4c5e5 in App::PropertyContainerPy::getCustomAttributes(char const*) const ()
    at /home/przemo/software/FreeCAD/build/lib/libFreeCADApp.so
#6  0x00007ffff6a4b132 in App::PropertyContainerPy::_getattr(char*) () at /home/przemo/software/FreeCAD/build/lib/libFreeCADApp.so
#7  0x00007ffff69e2a1f in App::DocumentObjectPy::_getattr(char*) () at /home/przemo/software/FreeCAD/build/lib/libFreeCADApp.so
#8  0x00007ffff6a27f27 in App::FeaturePythonPyT<App::DocumentObjectPy>::_getattr(char*) ()
    at /home/przemo/software/FreeCAD/build/lib/libFreeCADApp.so
#9  0x00007ffff637991f in Base::PyObjectBase::__getattr(_object*, char*) () at /home/przemo/software/FreeCAD/build/lib/libFreeCADBase.so
#10 0x00007ffff730c220 in Py::Object::getAttr(std::string const&) const () at /home/przemo/software/FreeCAD/build/lib/libFreeCADGui.so
#11 0x00007ffff74cf822 in Gui::CallTipsList::extractTipsFromObject(Py::Object&, Py::List&, QMap<QString, Gui::CallTip>&) const ()
    at /home/przemo/software/FreeCAD/build/lib/libFreeCADGui.so
#12 0x00007ffff74cf307 in Gui::CallTipsList::extractTips(QString const&) const ()
    at /home/przemo/software/FreeCAD/build/lib/libFreeCADGui.so
#13 0x00007ffff74d0f6a in Gui::CallTipsList::showTips(QString const&) () at /home/przemo/software/FreeCAD/build/lib/libFreeCADGui.so
#14 0x00007ffff74d94a0 in Gui::PythonConsole::keyPressEvent(QKeyEvent*) () at /home/przemo/software/FreeCAD/build/lib/libFreeCADGui.so
#15 0x00007ffff120bb9f in QWidget::event(QEvent*) () at /lib64/libQtGui.so.4
#16 0x00007ffff15cb49e in QFrame::event(QEvent*) () at /lib64/libQtGui.so.4
#17 0x00007ffff164e4e3 in QAbstractScrollArea::event(QEvent*) () at /lib64/libQtGui.so.4
#18 0x00007ffff166c645 in QPlainTextEdit::event(QEvent*) () at /lib64/libQtGui.so.4
#19 0x00007ffff11b7efc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQtGui.so.4
#20 0x00007ffff11c00a6 in QApplication::notify(QObject*, QEvent*) () at /lib64/libQtGui.so.4
#21 0x00007ffff730d631 in Gui::GUIApplication::notify(QObject*, QEvent*) () at /home/przemo/software/FreeCAD/build/lib/libFreeCADGui.so
#22 0x00007ffff06f722d in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /lib64/libQtCore.so.4
#23 0x00007ffff1258523 in QKeyMapper::sendKeyEvent(QWidget*, bool, QEvent::Type, int, QFlags<Qt::KeyboardModifier>, QString const&, bool, int, unsigned int, unsigned int, unsigned int, bool*) () at /lib64/libQtGui.so.4
#24 0x00007ffff12589c2 in QKeyMapperPrivate::translateKeyEvent(QWidget*, _XEvent const*, bool) () at /lib64/libQtGui.so.4
#25 0x00007ffff12332cf in QApplication::x11ProcessEvent(_XEvent*) () at /lib64/libQtGui.so.4
#26 0x00007ffff125aff4 in x11EventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQtGui.so.4
#27 0x00007fffe9d007fb in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#28 0x00007fffe9d00b98 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#29 0x00007fffe9d00c4c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#30 0x00007ffff072655e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#31 0x00007ffff125b176 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtGui.so.4
#32 0x00007ffff06f5d81 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#33 0x00007ffff06f60e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#34 0x00007ffff06fb7c9 in QCoreApplication::exec() () at /lib64/libQtCore.so.4
#35 0x00007ffff7308a34 in Gui::Application::runApplication() () at /home/przemo/software/FreeCAD/build/lib/libFreeCADGui.so
#36 0x0000000000405a42 in main ()
User avatar
sgrogan
Posts: 5655
Joined: Wed Oct 22, 2014 5:02 pm

Re: FreeCAD crash ubuntu ppa in MechanicalMaterial

Postby sgrogan » Thu Sep 24, 2015 2:48 pm

PrzemoF wrote:it's not related to the material files problem, as I just tested it on the gh/material_fix_v1 branch and it crashes as well.
bt:
No problems on win, with good material files
mat.PNG
mat.PNG (23.69 KiB) Viewed 1396 times
User avatar
bernd
Posts: 9345
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FreeCAD crash ubuntu ppa in MechanicalMaterial

Postby bernd » Thu Sep 24, 2015 3:31 pm

Code: Select all

>>> App.newDocument()
<Document object at 0000000006DE0A80>
>>> App.setActiveDocument("Unnamed")
>>> App.ActiveDocument=App.getDocument("Unnamed")
>>> Gui.ActiveDocument=Gui.getDocument("Unnamed")
>>> import MechanicalMaterial
>>> mat = MechanicalMaterial.makeMechanicalMaterial('MechanicalMaterial')
>>> mat.Label
u'MechanicalMaterial'
>>> 
choose one materaial with the gui ...

Code: Select all

>>> mat.Material
{'Name': u'Steel', 'Density': u'7900 kg/m^3', 'SpecificPrice': u'1.5 Euro/Kg', 'YoungsModulus': u'200000 MPa', 'Father': u'Metal', 'ProductURL': u'http://en.wikipedia.org/wiki/Steel', 'PoissonRatio': u'0.3', 'Description': u'This is a blend Steel material card. The values are at the low end of the spectrum. If you need a more precise material definition use the more specialised steel cards.'}
 
Yeah not a win problem ...

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.5607 (Git)
Build type: Release
Branch: master
Hash: 60062892a6c4927f3f5f1e3481488a4990ad0370
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
triplus
Posts: 9278
Joined: Mon Dec 12, 2011 4:45 pm

Re: FreeCAD crash ubuntu ppa in MechanicalMaterial

Postby triplus » Thu Sep 24, 2015 3:59 pm

Can confirm the crash (daily PPA).
triplus
Posts: 9278
Joined: Mon Dec 12, 2011 4:45 pm

Re: FreeCAD crash ubuntu ppa in MechanicalMaterial

Postby triplus » Thu Sep 24, 2015 9:23 pm

This looks like a general problem as if i insert Cube and after insert Shape2DView of it:

Code: Select all

App.ActiveDocument.Shape2DView.
Entering last . will always crash FreeCAD.
triplus
Posts: 9278
Joined: Mon Dec 12, 2011 4:45 pm

Re: FreeCAD crash ubuntu ppa in MechanicalMaterial

Postby triplus » Fri Sep 25, 2015 3:11 pm

wmayer
Site Admin
Posts: 15501
Joined: Thu Feb 19, 2009 10:32 am

Re: FreeCAD crash ubuntu ppa in MechanicalMaterial

Postby wmayer » Fri Sep 25, 2015 4:05 pm

No, it's related to this: viewtopic.php?f=17&t=12533&start=40#p100972

The crash only happens when built in debug mode and that's why it doesn't fail on Windows.
triplus
Posts: 9278
Joined: Mon Dec 12, 2011 4:45 pm

Re: FreeCAD crash ubuntu ppa in MechanicalMaterial

Postby triplus » Fri Sep 25, 2015 4:35 pm

wmayer wrote:No, it's related to this: viewtopic.php?f=17&t=12533&start=40#p100972

The crash only happens when built in debug mode and that's why it doesn't fail on Windows.
It is great if that is solved but on Ubuntu PPA debug mode isn't used either? Anyway as long as that is solved great. Will test with next package from PPA.