[Solved] Segmentation Fault when opening any Project in 0.19R22039

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
neutronst4r
Posts: 3
Joined: Wed Jul 22, 2020 9:13 am

[Solved] Segmentation Fault when opening any Project in 0.19R22039

Post by neutronst4r »

Hello guys,
I am having trouble using version 0.19R22039 on my PC but version 0.18R16146 works fine. Both versions are from the Arch user Repository AUR. Package Names are freecad-appimage and freecad-appimage-git. I think the problem might be the nouveau driver. I cannot use the nvidia drivers (340xx) for my graphics card (Quadro FX 580) without downgrading the X11 Server. Freecad crashes whenever I try to open any project or create a new one. I want to use version 0.19Rxx because there are some features in there that I really need. Please have look at the error messages:


Complete Log

Code: Select all

neutronst4r@arch-ckr ~> freecad
FreeCAD 0.19, Libs: 0.19R22039 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2020
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####
  #                    #      # #   #   #
  #     ##  #### ####  #     #   #  #   #
  ####  # # #  # #  #  #     #####  #   #
  #     #   #### ####  #    #     # #   #
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

nouveau: kernel rejected pushbuf: No such file or directory
nouveau: ch10: krec 0 pushes 0 bufs 1 relocs 0
nouveau: ch10: buf 00000000 00000002 00000004 00000004 00000000
Program received signal SIGSEGV, Segmentation fault.
nouveau: kernel rejected pushbuf: Invalid argument
nouveau: ch10: krec 0 pushes 1 bufs 22 relocs 0
nouveau: ch10: buf 00000000 00000004 00000004 00000004 00000000
nouveau: ch10: buf 00000001 00000007 00000002 00000002 00000000
nouveau: ch10: buf 00000002 0000000a 00000002 00000002 00000000
nouveau: ch10: buf 00000003 0000000b 00000002 00000002 00000000
nouveau: ch10: buf 00000004 00000008 00000002 00000002 00000000
nouveau: ch10: buf 00000005 00000008 00000002 00000002 00000000
nouveau: ch10: buf 00000006 00000006 00000004 00000000 00000004
nouveau: ch10: buf 00000007 00000006 00000004 00000000 00000004
nouveau: ch10: buf 00000008 0000004f 00000002 00000000 00000002
nouveau: ch10: buf 00000009 0000004f 00000002 00000000 00000002
nouveau: ch10: buf 0000000a 00000050 00000002 00000000 00000002
nouveau: ch10: buf 0000000b 00000033 00000002 00000002 00000000
nouveau: ch10: buf 0000000c 00000046 00000002 00000002 00000000
nouveau: ch10: buf 0000000d 0000003c 00000002 00000002 00000000
nouveau: ch10: buf 0000000e 00000048 00000002 00000002 00000000
nouveau: ch10: buf 0000000f 0000000c 00000004 00000004 00000000
nouveau: ch10: buf 00000010 0000003a 00000002 00000002 00000000
nouveau: ch10: buf 00000011 00000049 00000002 00000002 00000000
nouveau: ch10: buf 00000012 0000004b 00000002 00000002 00000000
nouveau: ch10: buf 00000013 00000041 00000002 00000002 00000000
nouveau: ch10: buf 00000014 0000004c 00000002 00000002 00000000
nouveau: ch10: buf 00000015 00000044 00000002 00000002 00000000
nouveau: ch10: psh 00000000 0000040fd0 0000042c6c
nouveau: 	0x000472e8
nouveau: 	0x00000001
nouveau: 	0x000472cc

[... lots of similar lines ... ]

nouveau: 	0x00215000
nouveau: 	0x00000164
nouveau: 	0x1000f010
#0  /usr/lib/libc.so.6(+0x3c3e0) [0x7f91fa05d3e0]
#1  /usr/lib/libdrm_nouveau.so.2(+0x4e6b) [0x7f91f54e6e6b]
#2  /usr/lib/libdrm_nouveau.so.2(+0x5875) [0x7f91f54e7875]
#3  /usr/lib/dri/nouveau_dri.so(+0x8d1ea9) [0x7f91ef17eea9]
#4  /usr/lib/dri/nouveau_dri.so(+0x154d5a) [0x7f91eea01d5a]
#5  /usr/lib/dri/nouveau_dri.so(+0x1dd19f) [0x7f91eea8a19f]
#6  /usr/lib/dri/nouveau_dri.so(+0x14513b) [0x7f91ee9f213b]
#7  /usr/lib/dri/nouveau_dri.so(+0x12c9d5) [0x7f91ee9d99d5]
#8  /usr/lib/dri/nouveau_dri.so(+0x582aca) [0x7f91eee2faca]
#9  /usr/lib/libGLX_mesa.so.0(+0x36d8d) [0x7f91f568ed8d]
#10  /usr/lib/libGLX.so.0(+0x14c52) [0x7f91f74dfc52]
#11  /usr/lib/libGLX.so.0(+0x1b975) [0x7f91f74e6975]
#12  /tmp/.mount_freecaWGjKWh/usr/plugins/designer/../../lib/libQt5WebEngineCore.so.5(+0x2485e0d) [0x7f91c8a3ce0d]
#13  /tmp/.mount_freecaWGjKWh/usr/plugins/designer/../../lib/libQt5WebEngineCore.so.5(+0x27c7893) [0x7f91c8d7e893]
#14  /tmp/.mount_freecaWGjKWh/usr/plugins/designer/../../lib/libQt5WebEngineCore.so.5(+0x3a7f2c1) [0x7f91ca0362c1]
#15  /tmp/.mount_freecaWGjKWh/usr/plugins/designer/../../lib/libQt5WebEngineCore.so.5(+0x3a80273) [0x7f91ca037273]
#16  /tmp/.mount_freecaWGjKWh/usr/plugins/designer/../../lib/libQt5WebEngineCore.so.5(+0x3a8494c) [0x7f91ca03b94c]
#17  /tmp/.mount_freecaWGjKWh/usr/plugins/designer/../../lib/libQt5WebEngineCore.so.5(+0x3a849cd) [0x7f91ca03b9cd]
#18  /tmp/.mount_freecaWGjKWh/usr/plugins/designer/../../lib/libQt5WebEngineCore.so.5(+0x3a7b55e) [0x7f91ca03255e]
#19  /tmp/.mount_freecaWGjKWh/usr/plugins/designer/../../lib/libQt5WebEngineCore.so.5(+0x1d42d4a) [0x7f91c82f9d4a]
#20  /tmp/.mount_freecaWGjKWh/usr/plugins/designer/../../lib/libQt5WebEngineCore.so.5(+0x1d682ea) [0x7f91c831f2ea]
#21  /tmp/.mount_freecaWGjKWh/usr/plugins/designer/../../lib/libQt5WebEngineCore.so.5(+0x1d68da5) [0x7f91c831fda5]
#22  /tmp/.mount_freecaWGjKWh/usr/plugins/designer/../../lib/libQt5WebEngineCore.so.5(+0x1d68f0a) [0x7f91c831ff0a]
#23  /tmp/.mount_freecaWGjKWh/usr/plugins/designer/../../lib/libQt5WebEngineCore.so.5(+0x1d61ec1) [0x7f91c8318ec1]
#24  /tmp/.mount_freecaWGjKWh/usr/plugins/designer/../../lib/libQt5WebEngineCore.so.5(+0x1d8424b) [0x7f91c833b24b]
#25  /tmp/.mount_freecaWGjKWh/usr/plugins/designer/../../lib/libQt5WebEngineCore.so.5(+0x1db8488) [0x7f91c836f488]
#26  /tmp/.mount_freecaWGjKWh/usr/plugins/designer/../../lib/libQt5WebEngineCore.so.5(+0x1dea631) [0x7f91c83a1631]
#27  /usr/lib/libpthread.so.0(+0x9422) [0x7f91f9e84422]
#28  /usr/lib/libc.so.6(clone+0x43) [0x7f91fa120bf3]
Last edited by neutronst4r on Wed Jul 22, 2020 12:58 pm, edited 2 times in total.
wmayer
Founder
Posts: 20324
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Segmentation Fault when opening any Project in 0.19R22039

Post by wmayer »

neutronst4r wrote: Wed Jul 22, 2020 9:52 am I am having trouble using version 0.19R22039 on my PC. I think the problem is the nouveau driver.
On my Linux system I also use the Nouveau driver and can't switch to the Nvidia driver either.
neutronst4r wrote: Wed Jul 22, 2020 9:52 am Freecad crashes whenever I try to open any project or create a new one.
This happens when the StartPage is shown and if the WebGui module is built with the QtWebEgine module. I don't know if there exists a way to prevent the crash. What solved the problem for me is to build the WebGui module with QtWebkit instead.

So, if you build FreeCAD yourself you should use QtWebkit instead of QtWebEngine. If this is not an option for you then change the startup workbench from "Start" to something else, e.g. Part Design.
neutronst4r
Posts: 3
Joined: Wed Jul 22, 2020 9:13 am

Re: Segmentation Fault when opening any Project in 0.19R22039

Post by neutronst4r »

So, if you build FreeCAD yourself you should use QtWebkit instead of QtWebEngine. If this is not an option for you then change the startup workbench from "Start" to something else, e.g. Part Design.
Both of these suggestions worked! I have successfully compiled freecad with the following commands.

Code: Select all

mkdir freecad-build
cd freecad-build
cmake -B . -S ../freecad-source -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 -DFREECAD_USE_QTWEBMODULE="Qt Webkit"
make -j$(nproc --ignore=2)
I did not try this, even thought there seems to be a patch, because I don't want to compile qt5-webengine myself.


Thank you for your help!
Last edited by neutronst4r on Wed Jul 22, 2020 1:47 pm, edited 1 time in total.
wmayer
Founder
Posts: 20324
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [Solved] Segmentation Fault when opening any Project in 0.19R22039

Post by wmayer »

neutronst4r wrote: Wed Jul 22, 2020 12:57 pm Someone might want to update the "Out-of-source build" section of the wiki entry: https://wiki.freecadweb.org/Compile_on_Linux
These are the steps and I can't see what should be wrong:

Code: Select all

mkdir freecad-build
cd freecad-build
cmake ../freecad-source -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3
make -j$(nproc --ignore=2)
After having cloned the git repo you have the directory freecad-source which is a sub-directory of the cwd. So, in the next step you create the sibling directory freecad-build and switch to it. From within this directory you invoke cmake and pass the relative path to the source directory, i.e. ../freecad-source. This is perfectly the first option described in the cmake help.

Maybe you changed into the freecad-source directory instead of freecad-build?
neutronst4r
Posts: 3
Joined: Wed Jul 22, 2020 9:13 am

Re: [Solved] Segmentation Fault when opening any Project in 0.19R22039

Post by neutronst4r »

Maybe you changed into the freecad-source directory instead of freecad-build?
Yes, probably, nevermind. Just tried again and it worked. Sorry for the trouble and thanks again for the help! :roll:
Post Reply