FreeCAD Application Execution Aborted [SOLVED]

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Bebopity
Posts: 11
Joined: Sat Apr 30, 2022 7:12 pm

Re: FreeCAD Application Execution Aborted - WSL 2 - [SOLVED]

Post by Bebopity »

FreeCAD_Boot_Part_Load.PNG
FreeCAD_Boot_Part_Load.PNG (136.41 KiB) Viewed 1345 times
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD Application Execution Aborted - WSL 2 - [SOLVED]

Post by adrianinsaval »

Bebopity wrote: Sat May 07, 2022 6:55 pm I get this warning after launching FreeCAD, doesn't seem like a big deal. I installed the packages nonetheless.

Code: Select all

Addon Manager Warning: Could not import QtWebEngineWidgets, it seems to be missing from your system. 
Please use your system's package manager to install the python3-pyside2.qtwebengine* and
python3-pyside2.qtwebchannel packages, and if possible alert your package creator to the missing dependency. 
Display of package README will be limited until this dependency is resolved.
Install the packages mentioned in the error message, this is an issue because the debian maintainer hasn't updated the dependencies list of the package so the dev added the warning.

Regarding development, consecutive builds should be much shorter as only the difference would get compiled, I doubt running FreeCAD gui under WSL will get any better though (at least on win10) so for testing your changes it might be better to do it on a real linux install or compile on windows itself but that might have more annoyances.
Bebopity
Posts: 11
Joined: Sat Apr 30, 2022 7:12 pm

Re: Execution Aborted (core dumped) - Ubuntu 22.04

Post by Bebopity »

Hello friends, I'm back again. Quick update, I've upgraded from Windows to a Linux OS. This time, I am executing the application in my ubuntu rolling docker container on an Ubuntu 22.04 OS, and I get the following error:

Code: Select all

Aborted (core dumped)
Many of the command log messages I've listed below are identical to what I saw last time on WSL 2. Installing Windows X Server, VcXsrv solved my problem last time, so this time I tried installing the GUI ubuntu-desktop (GNOME) using the tasksel tool in my docker container and rebooting my pc. This didn't work. The only other red flag I see is my $QT_QPA_PLATFORM environment variable isn't set, but I'm not sure what to set it to. Any ideas?

Command Log Messages

Root error

Code: Select all

root@b188ffbcf222:/builds/freecad-build/bin# ./FreeCAD
FreeCAD 0.20, Libs: 0.20RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Aborted (core dumped)
ldd freecad-build/bin/FreeCAD

Code: Select all

root@b188ffbcf222:/builds/freecad-build/bin# ldd FreeCAD
	linux-vdso.so.1 (0x00007ffe273c8000)
	libFreeCADGui.so => /builds/freecad-build/lib/libFreeCADGui.so (0x00007ff8a5cd2000)
	libFreeCADApp.so => /builds/freecad-build/lib/libFreeCADApp.so (0x00007ff8a4b94000)
	libFreeCADBase.so => /builds/freecad-build/lib/libFreeCADBase.so (0x00007ff8a483e000)
	libpython3.10.so.1.0 => /lib/x86_64-linux-gnu/libpython3.10.so.1.0 (0x00007ff8a4248000)
	libQt5Widgets.so.5 => /lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007ff8a3b85000)
	libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007ff8a34a7000)
	libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007ff8a2f48000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff8a2d1c000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff8a2cfc000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff8a2ad4000)
	libCoin.so.80c => /lib/x86_64-linux-gnu/libCoin.so.80c (0x00007ff8a228c000)
	libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007ff8a2205000)
	libQt5PrintSupport.so.5 => /lib/x86_64-linux-gnu/libQt5PrintSupport.so.5 (0x00007ff8a218d000)
	libQt5Svg.so.5 => /lib/x86_64-linux-gnu/libQt5Svg.so.5 (0x00007ff8a2130000)
	libQt5Network.so.5 => /lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007ff8a1f7f000)
	libpyside2.cpython-310-x86_64-linux-gnu.so.5.15 => /lib/x86_64-linux-gnu/libpyside2.cpython-310-x86_64-linux-gnu.so.5.15 (0x00007ff8a1f4e000)
	libboost_filesystem.so.1.74.0 => /lib/x86_64-linux-gnu/libboost_filesystem.so.1.74.0 (0x00007ff8a1f2c000)
	libboost_regex.so.1.74.0 => /lib/x86_64-linux-gnu/libboost_regex.so.1.74.0 (0x00007ff8a1e39000)
	libxerces-c-3.2.so => /lib/x86_64-linux-gnu/libxerces-c-3.2.so (0x00007ff8a1ae5000)
	libQt5Xml.so.5 => /lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007ff8a1a9f000)
	libshiboken2.cpython-310-x86_64-linux-gnu.so.5.15 => /lib/x86_64-linux-gnu/libshiboken2.cpython-310-x86_64-linux-gnu.so.5.15 (0x00007ff8a1a53000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff8a196c000)
	/lib64/ld-linux-x86-64.so.2 (0x00007ff8a81ca000)
	libboost_program_options.so.1.74.0 => /lib/x86_64-linux-gnu/libboost_program_options.so.1.74.0 (0x00007ff8a1925000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff8a1909000)
	libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007ff8a18d8000)
	libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007ff8a189d000)
	libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007ff8a17ce000)
	libmd4c.so.0 => /lib/x86_64-linux-gnu/libmd4c.so.0 (0x00007ff8a17ba000)
	libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007ff8a17a5000)
	libicui18n.so.70 => /lib/x86_64-linux-gnu/libicui18n.so.70 (0x00007ff8a1476000)
	libicuuc.so.70 => /lib/x86_64-linux-gnu/libicuuc.so.70 (0x00007ff8a127b000)
	libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007ff8a11f2000)
	libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007ff8a1123000)
	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007ff8a0fe7000)
	libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007ff8a0fb3000)
	libOpenGL.so.0 => /lib/x86_64-linux-gnu/libOpenGL.so.0 (0x00007ff8a0f87000)
	libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007ff8a0ecf000)
	libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007ff8a0e7b000)
	libQt5Qml.so.5 => /lib/x86_64-linux-gnu/libQt5Qml.so.5 (0x00007ff8a09ef000)
	libcurl-gnutls.so.4 => /lib/x86_64-linux-gnu/libcurl-gnutls.so.4 (0x00007ff8a094e000)
	libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007ff8a0886000)
	libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007ff8a085f000)
	libicudata.so.70 => /lib/x86_64-linux-gnu/libicudata.so.70 (0x00007ff89ec41000)
	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007ff89ebc9000)
	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007ff89ea89000)
	libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007ff89e9be000)
	libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007ff89e98f000)
	libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007ff89e989000)
	libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007ff89e97b000)
	libnghttp2.so.14 => /lib/x86_64-linux-gnu/libnghttp2.so.14 (0x00007ff89e94f000)
	libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x00007ff89e92e000)
	librtmp.so.1 => /lib/x86_64-linux-gnu/librtmp.so.1 (0x00007ff89e90f000)
	libssh.so.4 => /lib/x86_64-linux-gnu/libssh.so.4 (0x00007ff89e8a2000)
	libpsl.so.5 => /lib/x86_64-linux-gnu/libpsl.so.5 (0x00007ff89e88e000)
	libnettle.so.8 => /lib/x86_64-linux-gnu/libnettle.so.8 (0x00007ff89e848000)
	libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007ff89e65b000)
	libldap-2.5.so.0 => /lib/x86_64-linux-gnu/libldap-2.5.so.0 (0x00007ff89e5fc000)
	liblber-2.5.so.0 => /lib/x86_64-linux-gnu/liblber-2.5.so.0 (0x00007ff89e5ec000)
	libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007ff89e5de000)
	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007ff89e5b4000)
	libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007ff89e5ab000)
	libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007ff89e597000)
	libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2 (0x00007ff89e3ed000)
	libhogweed.so.6 => /lib/x86_64-linux-gnu/libhogweed.so.6 (0x00007ff89e3a5000)
	libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007ff89e323000)
	libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007ff89dedf000)
	libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007ff89dda4000)
	libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007ff89dd8c000)
	libsasl2.so.2 => /lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007ff89dd71000)
	libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007ff89dd4e000)
	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007ff89dd46000)
	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007ff89dd3e000)
	libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x00007ff89dd31000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007ff89dd19000)
	libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007ff89dd0c000)
(gdb) run

Code: Select all

(gdb) run
Starting program: /builds/freecad-build/bin/FreeCAD 
warning: Error disabling address space randomization: Operation not permitted
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
FreeCAD 0.20, Libs: 0.20RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##


Program received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140021350359936) at ./nptl/pthread_kill.c:44
44	./nptl/pthread_kill.c: No such file or directory.
gdb bt

Code: Select all

(gdb) bt
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140021350359936) at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=140021350359936) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=140021350359936, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3  0x00007f5947ba9476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4  0x00007f5947b8f7f3 in __GI_abort () at ./stdlib/abort.c:79
#5  0x00007f594806bba3 in QMessageLogger::fatal(char const*, ...) const () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f5948672713 in QGuiApplicationPrivate::createPlatformIntegration() () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#7  0x00007f5948672c08 in QGuiApplicationPrivate::createEventDispatcher() () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#8  0x00007f594829bb07 in QCoreApplicationPrivate::init() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f5948675b70 in QGuiApplicationPrivate::init() () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#10 0x00007f5948d89ced in QApplicationPrivate::init() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007f594bf3dea7 in Gui::GUIApplicationNativeEventAware::GUIApplicationNativeEventAware(int&, char**) () from /builds/freecad-build/lib/libFreeCADGui.so
#12 0x00007f594bf3b1e5 in Gui::GUIApplication::GUIApplication(int&, char**) () from /builds/freecad-build/lib/libFreeCADGui.so
#13 0x00007f594bf3bc69 in Gui::GUISingleApplication::GUISingleApplication(int&, char**) () from /builds/freecad-build/lib/libFreeCADGui.so
#14 0x00007f594bde4194 in Gui::Application::runApplication() () from /builds/freecad-build/lib/libFreeCADGui.so
#15 0x0000555e7d1deb6c in main ()
ldd libshiboken2

Code: Select all

root@b188ffbcf222:/builds/freecad-build/bin# ldd /usr/lib/x86_64-linux-gnu/libshiboken2.cpython-310-x86_64-linux-gnu.so.5.15
	linux-vdso.so.1 (0x00007ffde99b4000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fbcf042b000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fbcf040b000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbcf01e3000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbcf00fc000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fbcf06c3000)

ldd libpyside2

Code: Select all

root@b188ffbcf222:/builds/freecad-build/bin# ldd /usr/lib/x86_64-linux-gnu/libpyside2.cpython-310-x86_64-linux-gnu.so.5.15
	linux-vdso.so.1 (0x00007fffed5a9000)
	libshiboken2.cpython-310-x86_64-linux-gnu.so.5.15 => /lib/x86_64-linux-gnu/libshiboken2.cpython-310-x86_64-linux-gnu.so.5.15 (0x00007f2644482000)
	libQt5Qml.so.5 => /lib/x86_64-linux-gnu/libQt5Qml.so.5 (0x00007f2643ff8000)
	libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f2643a99000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f264386d000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f264384d000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2643623000)
	libQt5Network.so.5 => /lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f2643472000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f264338b000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f264336f000)
	libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007f264335a000)
	libicui18n.so.70 => /lib/x86_64-linux-gnu/libicui18n.so.70 (0x00007f264302b000)
	libicuuc.so.70 => /lib/x86_64-linux-gnu/libicuuc.so.70 (0x00007f2642e2e000)
	libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007f2642da5000)
	libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f2642cd6000)
	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f2642b9c000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f264451f000)
	libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f2642b48000)
	libicudata.so.70 => /lib/x86_64-linux-gnu/libicudata.so.70 (0x00007f2640f28000)
	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f2640eb2000)
	libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f2640de7000)
	libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f2640db8000)
	libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f2640db2000)
	libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f2640da4000)
	libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f2640d9b000)
	libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f2640d87000)
ls qt5/plugins/platforms/

Code: Select all

root@b188ffbcf222:/builds/freecad-build/bin# ls /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/
libqeglfs.so  libqlinuxfb.so  libqminimal.so  libqminimalegl.so  libqoffscreen.so  libqvnc.so  libqxcb.so
echo $QT_QPA_PLATFORM

Code: Select all

root@b188ffbcf222:/builds# echo $QT_QPA_PLATFORM

(variable isn't set)
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD Application Execution Aborted

Post by adrianinsaval »

It might be basically the same issue, did you correctly set up your docker container to use your host's X server? Can you run other repo provided gui apps from your docker container? take a look at this guide if you haven't set up your container: https://www.howtogeek.com/devops/how-to ... container/
Bebopity
Posts: 11
Joined: Sat Apr 30, 2022 7:12 pm

Re: FreeCAD Application Execution Aborted

Post by Bebopity »

Thanks man, I got it fixed now. FreeCAD is purring on my gaming desktop that I'm dual-booting linux off of. Can't wait to start working with the source files.
Post Reply