You are not logged in.

#1 2016-12-20 02:01:04

Mateo2
Member
Registered: 2016-11-03
Posts: 5

[SOLVED] FreeCAD segfaults when creating a new project

Sorry in advance if this is the wrong place to post this.  I just installed FreeCAD for the first time.  It opens fine, but crashes when I try to create a new project.  After some googling, I found http://www.freecadweb.org/tracker/view.php?id=1340 and my copy does look like it's loading libCoin.so.60.  I can not figure out how to install the libCoin.so.80 file though.  I assume there is a way to do it because other people are using FreeCAD on Arch...im just totally lost on this issue.  Am I missing something obvious?

Last edited by Mateo2 (2016-12-21 19:10:05)

Offline

#2 2016-12-20 13:23:51

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,522

Re: [SOLVED] FreeCAD segfaults when creating a new project

Afaict AL doesn't provide libCoin.so.80 in any official package.


Please start freecad from an (x)terminal,force the crash and post the output.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2016-12-20 22:29:29

Mateo2
Member
Registered: 2016-11-03
Posts: 5

Re: [SOLVED] FreeCAD segfaults when creating a new project

Thanks for your reply.  The console output isn't that helpful so I also grabbed the core info too.

matt@Philosoraptor ~]$ FreeCAD
FreeCAD 0.16, Libs: 0.16RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##


** (FreeCAD:4645): WARNING **: invalid source position for horizontal gradient

** (FreeCAD:4645): WARNING **: invalid source position for horizontal gradient
Segmentation fault (core dumped)
[matt@Philosoraptor ~]$ coredumpctl list
TIME                            PID   UID   GID SIG COREFILE EXE
Thu 2015-09-10 08:58:17 EDT   30992  1000  1000  11 missing  /opt/google/chrome/chrome
Fri 2015-09-11 10:27:49 EDT    5525  1000  1000  11 missing  /opt/google/chrome/chrome
Fri 2015-09-11 11:24:05 EDT   12160  1000  1000  11 missing  /opt/google/chrome/chrome
Mon 2015-10-26 20:09:04 EDT   31227  1000  1000   6 missing  /usr/lib/jvm/java-7-openjdk/jre/bin/java
Sun 2015-11-22 08:34:30 EST     663  1000  1000  11 missing  /opt/google/chrome/chrome
Mon 2015-11-23 06:10:58 EST    2780  1000  1000  11 missing  /opt/google/chrome/chrome
Mon 2015-11-23 20:09:02 EST   14243  1000  1000  11 missing  /opt/google/chrome/chrome
Sat 2015-11-28 15:13:42 EST   24909     0     0  11 missing  /opt/teamviewer/tv_bin/TVGuiSlave.64
Sat 2015-11-28 19:34:09 EST   25529  1000  1000  11 missing  /opt/teamviewer/tv_bin/TVGuiSlave.64
Tue 2016-04-26 18:00:19 EDT   11357  1000  1000  11 missing  /usr/lib/libreoffice/program/soffice.bin
Tue 2016-05-31 19:08:21 EDT   14597  1000  1000   6 missing  /opt/google/chrome/chrome
Tue 2016-05-31 19:09:36 EDT   14683  1000  1000   6 missing  /opt/google/chrome/chrome
Tue 2016-05-31 19:10:28 EDT   14832  1000  1000   6 missing  /opt/google/chrome/chrome
Tue 2016-05-31 19:11:49 EDT   14987  1000  1000   6 missing  /opt/google/chrome/chrome
Tue 2016-05-31 19:19:08 EDT     622  1000  1000   6 missing  /opt/google/chrome/chrome
Tue 2016-05-31 19:19:55 EDT     952  1000  1000   6 missing  /opt/google/chrome/chrome
Tue 2016-05-31 19:24:30 EDT    1150  1000  1000   6 missing  /opt/google/chrome/chrome
Tue 2016-05-31 19:26:25 EDT    1342  1000  1000   6 missing  /opt/google/chrome/chrome
Tue 2016-05-31 19:28:45 EDT    1535  1000  1000   6 missing  /opt/google/chrome/chrome
Tue 2016-05-31 19:30:43 EDT    2071  1000  1000   6 missing  /opt/google/chrome/chrome
Tue 2016-05-31 19:39:30 EDT    2726  1000  1000   6 missing  /opt/google/chrome/chrome
Tue 2016-05-31 19:50:11 EDT    2910  1000  1000   6 missing  /opt/google/chrome/chrome
Tue 2016-05-31 19:52:05 EDT    3835  1000  1000   6 missing  /opt/google/chrome/chrome
Tue 2016-05-31 19:55:43 EDT    4045  1000  1000   6 missing  /opt/google/chrome/chrome
Mon 2016-07-04 20:48:11 EDT   23721  1000  1000  11 missing  /opt/google/chrome/chrome
Mon 2016-09-05 17:11:20 EDT    7320  1000  1000   6 missing  /usr/bin/transcode
Mon 2016-11-07 20:57:18 EST   14230  1000  1000   7 missing  /home/matt/.local/share/Steam/ubuntu12_32/steam
Fri 2016-11-11 07:31:57 EST   31976  1000  1000  11 missing  /home/matt/.local/share/Steam/ubuntu12_32/steam
Tue 2016-12-06 21:17:24 EST     846  1000  1000  11 missing  /opt/google/chrome/chrome
Mon 2016-12-19 19:30:43 EST   24454  1000  1000  11 present  /usr/bin/FreeCAD
Mon 2016-12-19 21:33:35 EST   24007  1000  1000  11 present  /usr/bin/FreeCAD
Tue 2016-12-20 17:24:35 EST    4645  1000  1000  11 present  /usr/bin/FreeCAD
[matt@Philosoraptor ~]$ coredumpctl info 4645
           PID: 4645 (FreeCAD)
           UID: 1000 (matt)
           GID: 1000 (matt)
        Signal: 11 (SEGV)
     Timestamp: Tue 2016-12-20 17:24:21 EST (1min 0s ago)
  Command Line: FreeCAD
    Executable: /usr/bin/FreeCAD
 Control Group: /user.slice/user-1000.slice/session-c1.scope
          Unit: session-c1.scope
         Slice: user-1000.slice
       Session: c1
     Owner UID: 1000 (matt)
       Boot ID: b94c91e0b5d64fc18efff63130b2f520
    Machine ID: f820c928aae8488f818caecdcd70c07f
      Hostname: Philosoraptor
       Storage: /var/lib/systemd/coredump/core.FreeCAD.1000.b94c91e0b5d64fc18efff63130b2f520.4645.1482272661000000000000.lz4
       Message: Process 4645 (FreeCAD) of user 1000 dumped core.
                
                Stack trace of thread 4645:
                #0  0x00007f378593b79f __strncpy_sse2_unaligned (libc.so.6)
                #1  0x00007f37851f83c4 cc_glglue_instance (libCoin.so.60)
                #2  0x00007f3785103008 _ZNK17SoGLRenderActionP17isDirectRenderingEPK7SoState (libCoin.so.60)
                #3  0x00007f378510531c _ZN17SoGLRenderActionP6renderEP6SoNode (libCoin.so.60)
                #4  0x00007f378510595c _ZN16SoGLRenderAction14beginTraversalEP6SoNode (libCoin.so.60)
                #5  0x00007f37850ff892 _ZN8SoAction5applyEP6SoNode (libCoin.so.60)
                #6  0x00007f3788441969 _ZN3Gui26SoBoxSelectionRenderAction5applyEP6SoNode (libFreeCADGui.so)
                #7  0x00007f37884cdbca _ZN3Gui20View3DInventorViewer11renderSceneEv (libFreeCADGui.so)
                #8  0x00007f37884a1225 _ZN3SIM6Coin3D7Quarter13QuarterWidget10paintEventEP11QPaintEvent (libFreeCADGui.so)
                #9  0x00007f3786944840 _ZN7QWidget5eventEP6QEvent (libQtGui.so.4)
                #10 0x00007f3786d086ae _ZN6QFrame5eventEP6QEvent (libQtGui.so.4)
                #11 0x00007f3786f367f4 _ZN13QGraphicsView13viewportEventEP6QEvent (libQtGui.so.4)
                #12 0x00007f3786380cb1 _ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent (libQtCore.so.4)
                #13 0x00007f37868edf0c _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQtGui.so.4)
                #14 0x00007f37868f4e3c _ZN12QApplication6notifyEP7QObjectP6QEvent (libQtGui.so.4)
                #15 0x00007f37882b5a07 _ZN3Gui14GUIApplication6notifyEP7QObjectP6QEvent (libFreeCADGui.so)
                #16 0x00007f3786380b2d _ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent (libQtCore.so.4)
                #17 0x00007f378693eea5 _ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore (libQtGui.so.4)
                #18 0x00007f3786b0c37d _ZN14QWidgetPrivate11repaint_sysERK7QRegion (libQtGui.so.4)
                #19 0x00007f3786931b37 _ZN14QWidgetPrivate16syncBackingStoreEv (libQtGui.so.4)
                #20 0x00007f3786944928 _ZN7QWidget5eventEP6QEvent (libQtGui.so.4)
                #21 0x00007f3784308d33 _ZN9QGLWidget5eventEP6QEvent (libQtOpenGL.so.4)
                #22 0x00007f37868edf2c _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQtGui.so.4)
                #23 0x00007f37868f4e3c _ZN12QApplication6notifyEP7QObjectP6QEvent (libQtGui.so.4)
                #24 0x00007f37882b5a07 _ZN3Gui14GUIApplication6notifyEP7QObjectP6QEvent (libFreeCADGui.so)
                #25 0x00007f3786380b2d _ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent (libQtCore.so.4)
                #26 0x00007f3786384006 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData (libQtCore.so.4)
                #27 0x00007f3786f05f58 n/a (libQtGui.so.4)
                #28 0x00007f3786f0eee9 n/a (libQtGui.so.4)
                #29 0x00007f378639a991 _ZN7QObject5eventEP6QEvent (libQtCore.so.4)
                #30 0x00007f3786f1df2b _ZN14QGraphicsScene5eventEP6QEvent (libQtGui.so.4)
                #31 0x00007f37868edf2c _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQtGui.so.4)
                #32 0x00007f37868f4e3c _ZN12QApplication6notifyEP7QObjectP6QEvent (libQtGui.so.4)
                #33 0x00007f37882b5a07 _ZN3Gui14GUIApplication6notifyEP7QObjectP6QEvent (libFreeCADGui.so)
                #34 0x00007f3786380b2d _ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent (libQtCore.so.4)
                #35 0x00007f3786384006 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData (libQtCore.so.4)
                #36 0x00007f37863b0d5e n/a (libQtCore.so.4)
                #37 0x00007f377f66b587 g_main_context_dispatch (libglib-2.0.so.0)
                #38 0x00007f377f66b7f0 n/a (libglib-2.0.so.0)
                #39 0x00007f377f66b89c g_main_context_iteration (libglib-2.0.so.0)
                #40 0x00007f37863b0ece _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQtCore.so.4)
                #41 0x00007f3786996e86 n/a (libQtGui.so.4)
                #42 0x00007f378638434f _ZN16QCoreApplication13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQtCore.so.4)
                #43 0x00007f378826967b _ZN3Gui11Application15slotNewDocumentERKN3App8DocumentE (libFreeCADGui.so)
                #44 0x00007f3787c62ac9 _ZN5boost7signal1IvRKN3App8DocumentENS_10last_valueIvEEiSt4lessIiENS_8functionIFvS4_EEEEclES4_ (libFreeCADApp.so)
                #45 0x00007f3787d21caa _ZN3App11Application11newDocumentEPKcS2_ (libFreeCADApp.so)
                #46 0x00007f3787d3260a _ZN3App11Application12sNewDocumentEP7_objectS2_S2_ (libFreeCADApp.so)
                #47 0x00007f378750e214 PyEval_EvalFrameEx (libpython2.7.so.1.0)
                #48 0x00007f378750fddc PyEval_EvalCodeEx (libpython2.7.so.1.0)
                #49 0x00007f378750fee8 PyEval_EvalCode (libpython2.7.so.1.0)
                #50 0x00007f378752a36e run_mod (libpython2.7.so.1.0)
                #51 0x00007f378752b273 PyRun_StringFlags (libpython2.7.so.1.0)
                #52 0x00007f37878afb66 _ZN4Base20InterpreterSingleton9runStringB5cxx11EPKc (libFreeCADBase.so)
                #53 0x00007f37882d828d _ZN3Gui7Command9doCommandENS0_10DoCmd_TypeEPKcz (libFreeCADGui.so)
                #54 0x00007f37882e1fd9 _ZN9StdCmdNew9activatedEi (libFreeCADGui.so)
                #55 0x00007f37882dda2c _ZN3Gui7Command6invokeEi (libFreeCADGui.so)
                #56 0x00007f3786394c50 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv (libQtCore.so.4)
                #57 0x00007f37868e8082 _ZN7QAction9triggeredEb (libQtGui.so.4)
                #58 0x00007f37868e93e3 _ZN7QAction8activateENS_11ActionEventE (libQtGui.so.4)
                #59 0x00007f3786cc42f3 n/a (libQtGui.so.4)
                #60 0x00007f3786cc4444 _ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent (libQtGui.so.4)
                #61 0x00007f3786d89a7a _ZN11QToolButton17mouseReleaseEventEP11QMouseEvent (libQtGui.so.4)
                #62 0x00007f3786944840 _ZN7QWidget5eventEP6QEvent (libQtGui.so.4)
                #63 0x00007f37868edf2c _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQtGui.so.4)
                
                Stack trace of thread 4646:
                #0  0x00007f37845e110f pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                #1  0x00007f37835d01dd n/a (libQtWebKit.so.4)
                #2  0x00007f37835d0239 n/a (libQtWebKit.so.4)
                #3  0x00007f37845db454 start_thread (libpthread.so.0)
                #4  0x00007f378598f7df __clone (libc.so.6)
                
                Stack trace of thread 4648:
                #0  0x00007f378598648d poll (libc.so.6)
                #1  0x00007f377f66b786 n/a (libglib-2.0.so.0)
                #2  0x00007f377f66b89c g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f37863b0ece _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQtCore.so.4)
                #4  0x00007f378637f3ff _ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE (libQtCore.so.4)
                #5  0x00007f378637f765 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQtCore.so.4)
                #6  0x00007f378626d789 _ZN7QThread4execEv (libQtCore.so.4)
                #7  0x00007f378627005a n/a (libQtCore.so.4)
                #8  0x00007f37845db454 start_thread (libpthread.so.0)
                #9  0x00007f378598f7df __clone (libc.so.6)
                
                Stack trace of thread 4649:
                #0  0x00007f378598648d poll (libc.so.6)
                #1  0x00007f377f66b786 n/a (libglib-2.0.so.0)
                #2  0x00007f377f66b89c g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f37863b0ece _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQtCore.so.4)
                #4  0x00007f378637f3ff _ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE (libQtCore.so.4)
                #5  0x00007f378637f765 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQtCore.so.4)
                #6  0x00007f378626d789 _ZN7QThread4execEv (libQtCore.so.4)
                #7  0x00007f378627005a n/a (libQtCore.so.4)
                #8  0x00007f37845db454 start_thread (libpthread.so.0)
                #9  0x00007f378598f7df __clone (libc.so.6)
                
                Stack trace of thread 4647:
                #0  0x00007f37845e110f pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                #1  0x00007f37832f2271 n/a (libQtWebKit.so.4)
                #2  0x00007f3783602716 n/a (libQtWebKit.so.4)
                #3  0x00007f37845db454 start_thread (libpthread.so.0)
                #4  0x00007f378598f7df __clone (libc.so.6)
                
                Stack trace of thread 4650:
                #0  0x00007f37845e14b8 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
                #1  0x00007f37862705a4 _ZN14QWaitCondition4waitEP6QMutexm (libQtCore.so.4)
                #2  0x00007f3786263557 n/a (libQtCore.so.4)
                #3  0x00007f378627005a n/a (libQtCore.so.4)
                #4  0x00007f37845db454 start_thread (libpthread.so.0)
                #5  0x00007f378598f7df __clone (libc.so.6)
                
                Stack trace of thread 4651:
                #0  0x00007f37845e14b8 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
                #1  0x00007f37862705a4 _ZN14QWaitCondition4waitEP6QMutexm (libQtCore.so.4)
                #2  0x00007f3786263557 n/a (libQtCore.so.4)
                #3  0x00007f378627005a n/a (libQtCore.so.4)
                #4  0x00007f37845db454 start_thread (libpthread.so.0)
                #5  0x00007f378598f7df __clone (libc.so.6)

Offline

#4 2016-12-21 13:57:30

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,522

Re: [SOLVED] FreeCAD segfaults when creating a new project

I don't have much xp with coredumps, but 1 thing does stand out : lots of Qt libraries with so.4 , including libQtCore.so.4  .

That indicates freecad (or it's dependencies ) use Qt4 .

A quick test with a fresh freecad install and creating a new empty document gave no problems.
Does the segfault happen after you performed some actions ?
please describe them.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2016-12-21 16:02:53

Mateo2
Member
Registered: 2016-11-03
Posts: 5

Re: [SOLVED] FreeCAD segfaults when creating a new project

Well now i feel dumb.  I launched it again to see what exactly causes the crash.  Before this morning it was starting any new project.  Now everything works.  I believe what "fixed" my issue was simply rebooting my computer.  Before I installed FreeCAD three days ago I upgraded my system, then installed FreeCAD.  There must have been something that was upgraded that required a reboot.

Thank you for all your help and sorry for wasting your time.

Offline

#6 2016-12-21 17:44:31

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: [SOLVED] FreeCAD segfaults when creating a new project

Everyone has these moments, so don't get down over this. Do mark your post as solved though. It just might help someone else out in the future. smile


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#7 2016-12-21 19:13:35

Mateo2
Member
Registered: 2016-11-03
Posts: 5

Re: [SOLVED] FreeCAD segfaults when creating a new project

Done.

Moral of the story is if you are experiencing weird crashes after upgrading, reboot your computer.

Offline

Board footer

Powered by FluxBB