[Fixed]Full crash when trying to transform simple body

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!
chrisb
Veteran
Posts: 54168
Joined: Tue Mar 17, 2015 9:14 am

Re: Full crash when trying to transform simple body

Post by chrisb »

bobmel wrote: Wed Mar 14, 2018 9:24 pm I still get crashes. Possibly less frequent but hard to say for sure (just did a few tests now).
Can you start from the commandline and post the output or create a log file (parameter -l)?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
bobmel
Posts: 15
Joined: Wed Mar 14, 2018 9:28 am

Re: Full crash when trying to transform simple body

Post by bobmel »

chrisb wrote: Thu Mar 15, 2018 12:04 am
bobmel wrote: Wed Mar 14, 2018 9:24 pm I still get crashes. Possibly less frequent but hard to say for sure (just did a few tests now).
Can you start from the commandline and post the output or create a log file (parameter -l)?
Sure, I've added the output

------------------ CRASH 1 -------------------------
In this crash, the program became unresponsive for a second or so and then seg faulted. I did a few random moves and rotates. Then clicked OK.

$ freecad-daily
FreeCAD 0.17, Libs: 0.17R13407 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2018
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##

Program received signal SIGSEGV, Segmentation fault.
Segmentation fault (core dumped)


----------------- CRASH 2 -----------------------
In this crash, the program immediately disappeared with a seg fault (no period of unresponsiveness). I did a few random moves and rotates (most likely not the same as the ones in CRASH1).

FreeCAD 0.17, Libs: 0.17R13407 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2018
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##

Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
<-- Snip-->
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Program received signal SIGSEGV, Segmentation fault.
Segmentation fault (core dumped)


----------------- CRASH 3 -----------------------
In this crash, the program immediately disappeared with a seg fault (no period of unresponsiveness). I again did a few random moves and rotates (not the same as the ones above).

$ freecad-daily -l
FreeCAD 0.17, Libs: 0.17R13407 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2018
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##

Program received signal SIGSEGV, Segmentation fault.
#0 /lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7f49b6bbb4b0]
#1 [0x3b0ec00]
bobmel
Posts: 15
Joined: Wed Mar 14, 2018 9:28 am

Re: Full crash when trying to transform simple body

Post by bobmel »

Output from one more crash:

----------------- CRASH 4 -----------------------
In this crash, the program immediately disappeared with a seg fault (no period of unresponsiveness). I again did a few random moves and rotates (not the same as the ones above).

$ freecad-daily -l
FreeCAD 0.17, Libs: 0.17R13407 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2018
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##

Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
<-- Snip -->
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
pure virtual method called
terminate called without an active exception
Aborted (core dumped)
bobmel
Posts: 15
Joined: Wed Mar 14, 2018 9:28 am

Re: Full crash when trying to transform simple body

Post by bobmel »

One final crash output:

----------------- CRASH 5 -----------------------

In this crash, which took me longer (more moves/rotates) to trigger, the program immediately disappeared with a seg fault (no period of unresponsiveness). I again did a few random moves and rotates (not the same as the ones above).

freecad-daily -l
FreeCAD 0.17, Libs: 0.17R13407 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2018
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##

Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbSphere::intersect(): The line 'l' has no direction.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbSphere::intersect(): The line 'l' has no direction.
Program received signal SIGSEGV, Segmentation fault.
#0 /lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7f9bcfb5c4b0]
#1 [0x432d3c0]
bobmel
Posts: 15
Joined: Wed Mar 14, 2018 9:28 am

Re: Full crash when trying to transform simple body

Post by bobmel »

Here's a crash where more output was generated:

$ freecad-daily -l
FreeCAD 0.17, Libs: 0.17R13407 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2018
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##

Program received signal SIGSEGV, Segmentation fault.
#0 /lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7fcf238e14b0]
#1 0x7fcf22fc3c68 in SoAction::traverse(SoNode*) from /usr/lib/x86_64-linux-gnu/libCoin.so.80+0x28
#2 0x7fcf22fcf203 in SoHandleEventAction::beginTraversal(SoNode*) from /usr/lib/x86_64-linux-gnu/libCoin.so.80+0x63
#3 0x7fcf22fc54f2 in SoAction::apply(SoNode*) from /usr/lib/x86_64-linux-gnu/libCoin.so.80+0x472
#4 0x7fcf23149fa9 in SoEventManager::actuallyProcessEvent(SoEvent const*) from /usr/lib/x86_64-linux-gnu/libCoin.so.80+0x89
#5 0x7fcf26730e1e in SIM::Coin3D::Quarter::QuarterWidget::processSoEvent(SoEvent const*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x1e
#6 0x7fcf2672b973 in SIM::Coin3D::Quarter::SoQTQuarterAdaptor::processSoEvent(SoEvent const*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x53
#7 0x7fcf26762359 in Gui::View3DInventorViewer::processSoEventBase(SoEvent const*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x9
#8 0x7fcf2674513c in Gui::CADNavigationStyle::processSoEvent(SoEvent const*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x3dc
#9 0x7fcf26741ce2 in Gui::NavigationStyle::processEvent(SoEvent const*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x72
#10 0x7fcf26762417 in Gui::View3DInventorViewer::processSoEvent(SoEvent const*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0xa7
#11 0x7fcf2672fb9d in SIM::Coin3D::Quarter::EventFilter::eventFilter(QObject*, QEvent*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x18d
#12 0x7fcf24398a76 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x86
#13 0x7fcf248c5fbc in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x6c
#14 0x7fcf248cd0d6 in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x476
#15 0x7fcf2652d494 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x54
#16 0x7fcf2439890d in QCoreApplication::notifyInternal(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x8d
#17 0x7fcf248cc6dd in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x14d
#18 /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x2493f2) [0x7fcf2494a3f2]
#19 0x7fcf249495dd in QApplication::x11ProcessEvent(_XEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x100d
#20 /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x272542) [0x7fcf24973542]
#21 /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x2a7) [0x7fcf1d001197]
#22 /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4a3f0) [0x7fcf1d0013f0]
#23 /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7fcf1d00149c]
#24 0x7fcf243c92ae in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x7e
#25 /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x272616) [0x7fcf24973616]
#26 0x7fcf2439718f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x3f
#27 0x7fcf243974f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x1b5
#28 0x7fcf2439d4b9 in QCoreApplication::exec() from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x99
#29 0x7fcf264e6270 in Gui::Application::runApplication() from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x15b0
#30 freecad-daily(main+0x8b4) [0x403834]
#31 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fcf238cc830]
#32 freecad-daily(_start+0x29) [0x404a79]
chrisb
Veteran
Posts: 54168
Joined: Tue Mar 17, 2015 9:14 am

Re: Full crash when trying to transform simple body

Post by chrisb »

Could you please edit your previous posts and put the output in code tags? That makes it easier for the developers to look at.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
bobmel
Posts: 15
Joined: Wed Mar 14, 2018 9:28 am

Re: Full crash when trying to transform simple body

Post by bobmel »

I think I've now identified a movement and rotate pattern which consistently causes a seg fault on my setup.

1. Click on Green Arrow.
2. Translate in direction opposite to GREEN Arrow.
3. Click on Red Sphere.
4. Try to rotate in direction opposite to Green Arrow (counter clock-wise).
The Transform object disappears and only the rectangle object remains (highlighted).
5. Click 'OK' (on Transform dialog).
6. Move mouse. (This seems to be needed)
[ CRASH - SEGMENTATION FAULT]

The output shows the following:

Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbMatrix::inverse(): Matrix is singular.
pure virtual method called
terminate called without an active exception
Aborted (core dumped)


In another attempt (with the same steps), I got the following output:

Program received signal SIGSEGV, Segmentation fault.
#0 /lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7f6733ce44b0]
#1 0x7f67333c6c68 in SoAction::traverse(SoNode*) from /usr/lib/x86_64-linux-gnu/libCoin.so.80+0x28
#2 0x7f67333d2203 in SoHandleEventAction::beginTraversal(SoNode*) from /usr/lib/x86_64-linux-gnu/libCoin.so.80+0x63
#3 0x7f67333c84f2 in SoAction::apply(SoNode*) from /usr/lib/x86_64-linux-gnu/libCoin.so.80+0x472
#4 0x7f673354cfa9 in SoEventManager::actuallyProcessEvent(SoEvent const*) from /usr/lib/x86_64-linux-gnu/libCoin.so.80+0x89
#5 0x7f6736b33e1e in SIM::Coin3D::Quarter::QuarterWidget::processSoEvent(SoEvent const*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x1e
#6 0x7f6736b2e973 in SIM::Coin3D::Quarter::SoQTQuarterAdaptor::processSoEvent(SoEvent const*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x53
#7 0x7f6736b65359 in Gui::View3DInventorViewer::processSoEventBase(SoEvent const*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x9
#8 0x7f6736b4813c in Gui::CADNavigationStyle::processSoEvent(SoEvent const*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x3dc
#9 0x7f6736b44ce2 in Gui::NavigationStyle::processEvent(SoEvent const*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x72
#10 0x7f6736b65417 in Gui::View3DInventorViewer::processSoEvent(SoEvent const*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0xa7
#11 0x7f6736b32b9d in SIM::Coin3D::Quarter::EventFilter::eventFilter(QObject*, QEvent*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x18d
#12 0x7f673479ba76 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x86
#13 0x7f6734cc8fbc in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x6c
#14 0x7f6734cd00d6 in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x476
#15 0x7f6736930494 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x54
#16 0x7f673479b90d in QCoreApplication::notifyInternal(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x8d
#17 0x7f6734ccf6dd in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x14d
#18 /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x2493f2) [0x7f6734d4d3f2]
#19 0x7f6734d4c378 in QApplication::x11ProcessEvent(_XEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0xda8
#20 /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x272542) [0x7f6734d76542]
#21 /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x2a7) [0x7f672d404197]
#22 /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4a3f0) [0x7f672d4043f0]
#23 /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7f672d40449c]
#24 0x7f67347cc2ae in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x7e
#25 /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x272616) [0x7f6734d76616]
#26 0x7f673479a18f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x3f
#27 0x7f673479a4f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x1b5
#28 0x7f67347a04b9 in QCoreApplication::exec() from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x99
#29 0x7f67368e9270 in Gui::Application::runApplication() from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x15b0
#30 freecad-daily(main+0x8b4) [0x403834]
#31 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f6733ccf830]
#32 freecad-daily(_start+0x29) [0x404a79]
wmayer
Founder
Posts: 20300
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Full crash when trying to transform simple body

Post by wmayer »

The actual question is why you get this flood of singular matrix errors. I assume that this is somehow related to the crash.
User avatar
tanderson69
Veteran
Posts: 1626
Joined: Thu Feb 18, 2010 1:07 am

Re: Full crash when trying to transform simple body

Post by tanderson69 »

I didn't get a crash, but I did get all the coin warnings in the console. I think it is this all over again.https://forum.freecadweb.org/viewtopic. ... =10&t=1381
bobmel
Posts: 15
Joined: Wed Mar 14, 2018 9:28 am

Re: Full crash when trying to transform simple body

Post by bobmel »

I saved the core dump files for the last two crashes and can upload them if that would help.

In theory I could also make the VM available but the problem is that the VM disk is 62 GB.
Post Reply