[Bug] FreeCAD headless running 'modules freecad' crashes console

Need help, or want to share a macro? Post here!
User avatar
Kunda1
Posts: 6427
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Bug] FreeCAD headless running 'modules freecad' crashes console

Postby Kunda1 » Sun Nov 03, 2019 12:01 pm

Kunda1 wrote:
Sat Nov 02, 2019 1:21 pm
Thanks everyone. Has anyone tried to reproduce it on an AppImage ?
bump
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
s-light
Posts: 51
Joined: Thu Feb 12, 2015 11:39 am
Location: Germany, Hofheim am Taunus
Contact:

Re: [Bug] FreeCAD headless running 'modules freecad' crashes console

Postby s-light » Wed Nov 06, 2019 5:40 pm

i can reproduce it:
OS: Ubuntu 19.04
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4.
Build type: Release
Python version: 3.7.3
Qt version: 5.12.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United Kingdom (en_GB)

Code: Select all

stefan@stefan-Latitude-E6510:~$ freecadcmd -c
FreeCAD 0.18.4, Libs: 0.18.4R
(c) Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Sheet Metal workbench loaded
[FreeCAD Console mode <Use Ctrl-D (i.e. EOF) to exit.>]
>>> FreeCAD.Version()
['0', '18.4', '', 'https://code.launchpad.net/~vcs-imports/freecad/trunk', '2019/11/06 00:53:57']
>>> help()

Welcome to Python 3.7's help utility!

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at https://docs.python.org/3.7/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, symbols, or topics, type
"modules", "keywords", "symbols", or "topics".  Each module also comes
with a one-line summary of what it does; to list the modules whose name
or summary contain a given string such as "spam", type "modules spam".

help> modules freecad

Here is a list of modules whose name or summary contains 'freecad'.
If there are any, enter a module name to get more help.

FreeCAD - The functions in the FreeCAD module allow working with documents.
__FreeCADBase__ - The Base module contains the classes for the geometric basics
backends.freecad 
bolttools.freecad 
Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x43f60) [0x7f51a0296f60]
#1  /usr/lib/python3/dist-packages/PyQt4/QtCore.cpython-37m-x86_64-linux-gnu.so(+0x91c4e) [0x7f5190ba4c4e]
#2  /lib64/ld-linux-x86-64.so.2(+0x1095a) [0x7f51a105a95a]
#3  /lib64/ld-linux-x86-64.so.2(+0x10a59) [0x7f51a105aa59]
#4  /lib64/ld-linux-x86-64.so.2(+0x14cbc) [0x7f51a105ecbc]
#5  /lib/x86_64-linux-gnu/libc.so.6(_dl_catch_exception+0x6f) [0x7f51a03b15cf]
#6  /lib64/ld-linux-x86-64.so.2(+0x142a6) [0x7f51a105e2a6]
#7  /lib/x86_64-linux-gnu/libdl.so.2(+0x1256) [0x7f519fcc5256]
#8  /lib/x86_64-linux-gnu/libc.so.6(_dl_catch_exception+0x6f) [0x7f51a03b15cf]
#9  /lib/x86_64-linux-gnu/libc.so.6(_dl_catch_error+0x2f) [0x7f51a03b165f]
#10  /lib/x86_64-linux-gnu/libdl.so.2(+0x1a25) [0x7f519fcc5a25]
#11  /lib/x86_64-linux-gnu/libdl.so.2(dlopen+0x46) [0x7f519fcc52e6]
#12  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyImport_FindSharedFuncptr+0x180) [0x7f51a078b650]
#13  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyImport_LoadDynamicModuleWithSpec+0x137) [0x7f51a07bfa47]
#14  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x18600b) [0x7f51a07c000b]
#15  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyMethodDef_RawFastCallDict+0x1d7) [0x7f51a08aef37]
#16  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyCFunction_FastCallDict+0x25) [0x7f51a08afa45]
#17  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x78e0) [0x7f51a06b0700]
#18  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f51a07d81e6]
#19  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0x93) [0x7f51a08af123]
#20  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x7b95) [0x7f51a06b09b5]
#21  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f51a06b34d3]
#22  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x9334) [0x7f51a06b2154]
#23  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f51a06b34d3]
#24  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x5d1c) [0x7f51a06aeb3c]
#25  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f51a06b34d3]
#26  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x5d1c) [0x7f51a06aeb3c]
#27  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f51a06b34d3]
#28  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x5d1c) [0x7f51a06aeb3c]
#29  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f51a06b34d3]
#30  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallDict+0x2e2) [0x7f51a08af542]
#31  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x276d60) [0x7f51a08b0d60]
#32  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyObject_CallMethodIdObjArgs+0xa9) [0x7f51a08b1389]
#33  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyImport_ImportModuleLevelObject+0x60f) [0x7f51a06bb83f]
#34  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x1a11d8) [0x7f51a07db1d8]
#35  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyCFunction_Call+0xfb) [0x7f51a08afb5b]
#36  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x78e0) [0x7f51a06b0700]
#37  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f51a07d81e6]
#38  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0x93) [0x7f51a08af123]
#39  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x5d1c) [0x7f51a06aeb3c]
#40  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f51a07d81e6]
#41  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallDict+0xae) [0x7f51a08af30e]
#42  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x276d60) [0x7f51a08b0d60]
#43  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyObject_CallMethodIdObjArgs+0xa9) [0x7f51a08b1389]
#44  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyImport_ImportModuleLevelObject+0x5b6) [0x7f51a06bb7e6]
#45  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x747a) [0x7f51a06b029a]
#46  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f51a07d81e6]
#47  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyEval_EvalCodeEx+0x3e) [0x7f51a07d846e]
#48  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyEval_EvalCode+0x1b) [0x7f51a07d923b]
#49  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x1a2bdd) [0x7f51a07dcbdd]
#50  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyMethodDef_RawFastCallDict+0x1d7) [0x7f51a08aef37]
#51  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyCFunction_FastCallDict+0x25) [0x7f51a08afa45]
#52  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x78e0) [0x7f51a06b0700]
#53  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f51a07d81e6]
#54  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0x93) [0x7f51a08af123]
#55  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x7b95) [0x7f51a06b09b5]
#56  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f51a06b34d3]
#57  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x9334) [0x7f51a06b2154]
#58  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f51a06b34d3]
#59  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x5d1c) [0x7f51a06aeb3c]
#60  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f51a06b34d3]
#61  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x5d1c) [0x7f51a06aeb3c]
#62  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f51a06b34d3]
#63  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallDict+0x2e2) [0x7f51a08af542]
#64  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x276d60) [0x7f51a08b0d60]
#65  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyObject_CallMethodIdObjArgs+0xa9) [0x7f51a08b1389]
#66  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyImport_ImportModuleLevelObject+0x60f) [0x7f51a06bb83f]
#67  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x1a11d8) [0x7f51a07db1d8]
#68  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyMethodDef_RawFastCallKeywords+0x30b) [0x7f51a08aecdb]
#69  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyCFunction_FastCallKeywords+0x25) [0x7f51a08afa05]
#70  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x8bde) [0x7f51a06b19fe]
#71  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x2651a0) [0x7f51a089f1a0]
#72  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0xf57) [0x7f51a06a9d77]
#73  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f51a07d81e6]
#74  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0x93) [0x7f51a08af123]
#75  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x62f5) [0x7f51a06af115]
#76  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f51a06b34d3]
#77  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x5d1c) [0x7f51a06aeb3c]
#78  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f51a07d81e6]
#79  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0x93) [0x7f51a08af123]
#80  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x9334) [0x7f51a06b2154]
#81  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f51a06b34d3]
#82  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x9334) [0x7f51a06b2154]
#83  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f51a06b34d3]
#84  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x9334) [0x7f51a06b2154]
#85  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f51a07d81e6]
#86  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallDict+0xae) [0x7f51a08af30e]
#87  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyObject_Call_Prepend+0xcd) [0x7f51a08b220d]
#88  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x215c35) [0x7f51a084fc35]
#89  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyObject_Call+0x75) [0x7f51a08afc75]
#90  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x2dd9) [0x7f51a06abbf9]
#91  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f51a07d81e6]
#92  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallDict+0xae) [0x7f51a08af30e]
#93  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyObject_Call_Prepend+0xcd) [0x7f51a08b220d]
#94  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x215c35) [0x7f51a084fc35]
#95  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyObject_FastCallKeywords+0xd3) [0x7f51a08b0043]
#96  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x52eb) [0x7f51a06ae10b]
#97  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f51a07d81e6]
#98  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyEval_EvalCodeEx+0x3e) [0x7f51a07d846e]
#99  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyEval_EvalCode+0x1b) [0x7f51a07d923b]
#100  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x16e86f) [0x7f51a07a886f]
#101  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyRun_InteractiveLoopFlags+0x76) [0x7f51a07a8ba6]
#102  0x7f51a0c510e8 in Base::InterpreterSingleton::runCommandLine(char const*) from /usr/lib/freecad-python3/lib/libFreeCADBase.so+0x18
#103  0x7f51a0f6db25 in App::Application::runApplication() from /usr/lib/freecad-python3/lib/libFreeCADApp.so+0x85
#104  freecadcmd(main+0x190) [0x560998624930]
#105  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7f51a0279b6b]
#106  freecadcmd(_start+0x2a) [0x560998624a3a]
stefan@stefan-Latitude-E6510:~$

----------------------------------


and also with daily:
OS: Ubuntu 19.04 (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.7.3
Qt version: 5.12.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United Kingdom (en_GB)
Release date 2019/11/06 00:31:31

Code: Select all

stefan@stefan-Latitude-E6510:~$ freecadcmd-daily -c
Sheet Metal workbench loaded
[FreeCAD Console mode <Use Ctrl-D (i.e. EOF) to exit.>]
>>> FreeCAD.Version()
['0', '19', '', 'https://code.launchpad.net/~vcs-imports/freecad/trunk', '2019/11/06 00:31:31']
>>> help()

Welcome to Python 3.7's help utility!

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at https://docs.python.org/3.7/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, symbols, or topics, type
"modules", "keywords", "symbols", or "topics".  Each module also comes
with a one-line summary of what it does; to list the modules whose name
or summary contain a given string such as "spam", type "modules spam".

help> modules freecad

Here is a list of modules whose name or summary contains 'freecad'.
If there are any, enter a module name to get more help.

FreeCAD - The functions in the FreeCAD module allow working with documents.
__FreeCADBase__ - The Base module contains the classes for the geometric basics
backends.freecad 
bolttools.freecad 
Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x43f60) [0x7f49f68b4f60]
#1  /usr/lib/python3/dist-packages/PyQt4/QtCore.cpython-37m-x86_64-linux-gnu.so(+0x91c4e) [0x7f49e6f88c4e]
#2  /lib64/ld-linux-x86-64.so.2(+0x1095a) [0x7f49f77ed95a]
#3  /lib64/ld-linux-x86-64.so.2(+0x10a59) [0x7f49f77eda59]
#4  /lib64/ld-linux-x86-64.so.2(+0x14cbc) [0x7f49f77f1cbc]
#5  /lib/x86_64-linux-gnu/libc.so.6(_dl_catch_exception+0x6f) [0x7f49f69cf5cf]
#6  /lib64/ld-linux-x86-64.so.2(+0x142a6) [0x7f49f77f12a6]
#7  /lib/x86_64-linux-gnu/libdl.so.2(+0x1256) [0x7f49f62e3256]
#8  /lib/x86_64-linux-gnu/libc.so.6(_dl_catch_exception+0x6f) [0x7f49f69cf5cf]
#9  /lib/x86_64-linux-gnu/libc.so.6(_dl_catch_error+0x2f) [0x7f49f69cf65f]
#10  /lib/x86_64-linux-gnu/libdl.so.2(+0x1a25) [0x7f49f62e3a25]
#11  /lib/x86_64-linux-gnu/libdl.so.2(dlopen+0x46) [0x7f49f62e32e6]
#12  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyImport_FindSharedFuncptr+0x180) [0x7f49f6da9650]
#13  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyImport_LoadDynamicModuleWithSpec+0x137) [0x7f49f6ddda47]
#14  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x18600b) [0x7f49f6dde00b]
#15  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyMethodDef_RawFastCallDict+0x1d7) [0x7f49f6eccf37]
#16  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyCFunction_FastCallDict+0x25) [0x7f49f6ecda45]
#17  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x78e0) [0x7f49f6cce700]
#18  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f49f6df61e6]
#19  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0x93) [0x7f49f6ecd123]
#20  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x7b95) [0x7f49f6cce9b5]
#21  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f49f6cd14d3]
#22  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x9334) [0x7f49f6cd0154]
#23  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f49f6cd14d3]
#24  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x5d1c) [0x7f49f6cccb3c]
#25  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f49f6cd14d3]
#26  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x5d1c) [0x7f49f6cccb3c]
#27  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f49f6cd14d3]
#28  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x5d1c) [0x7f49f6cccb3c]
#29  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f49f6cd14d3]
#30  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallDict+0x2e2) [0x7f49f6ecd542]
#31  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x276d60) [0x7f49f6eced60]
#32  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyObject_CallMethodIdObjArgs+0xa9) [0x7f49f6ecf389]
#33  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyImport_ImportModuleLevelObject+0x60f) [0x7f49f6cd983f]
#34  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x1a11d8) [0x7f49f6df91d8]
#35  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyCFunction_Call+0xfb) [0x7f49f6ecdb5b]
#36  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x78e0) [0x7f49f6cce700]
#37  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f49f6df61e6]
#38  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0x93) [0x7f49f6ecd123]
#39  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x5d1c) [0x7f49f6cccb3c]
#40  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f49f6df61e6]
#41  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallDict+0xae) [0x7f49f6ecd30e]
#42  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x276d60) [0x7f49f6eced60]
#43  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyObject_CallMethodIdObjArgs+0xa9) [0x7f49f6ecf389]
#44  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyImport_ImportModuleLevelObject+0x5b6) [0x7f49f6cd97e6]
#45  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x747a) [0x7f49f6cce29a]
#46  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f49f6df61e6]
#47  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyEval_EvalCodeEx+0x3e) [0x7f49f6df646e]
#48  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyEval_EvalCode+0x1b) [0x7f49f6df723b]
#49  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x1a2bdd) [0x7f49f6dfabdd]
#50  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyMethodDef_RawFastCallDict+0x1d7) [0x7f49f6eccf37]
#51  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyCFunction_FastCallDict+0x25) [0x7f49f6ecda45]
#52  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x78e0) [0x7f49f6cce700]
#53  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f49f6df61e6]
#54  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0x93) [0x7f49f6ecd123]
#55  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x7b95) [0x7f49f6cce9b5]
#56  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f49f6cd14d3]
#57  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x9334) [0x7f49f6cd0154]
#58  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f49f6cd14d3]
#59  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x5d1c) [0x7f49f6cccb3c]
#60  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f49f6cd14d3]
#61  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x5d1c) [0x7f49f6cccb3c]
#62  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f49f6cd14d3]
#63  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallDict+0x2e2) [0x7f49f6ecd542]
#64  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x276d60) [0x7f49f6eced60]
#65  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyObject_CallMethodIdObjArgs+0xa9) [0x7f49f6ecf389]
#66  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyImport_ImportModuleLevelObject+0x60f) [0x7f49f6cd983f]
#67  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x1a11d8) [0x7f49f6df91d8]
#68  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyMethodDef_RawFastCallKeywords+0x30b) [0x7f49f6ecccdb]
#69  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyCFunction_FastCallKeywords+0x25) [0x7f49f6ecda05]
#70  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x8bde) [0x7f49f6ccf9fe]
#71  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x2651a0) [0x7f49f6ebd1a0]
#72  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0xf57) [0x7f49f6cc7d77]
#73  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f49f6df61e6]
#74  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0x93) [0x7f49f6ecd123]
#75  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x62f5) [0x7f49f6ccd115]
#76  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f49f6cd14d3]
#77  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x5d1c) [0x7f49f6cccb3c]
#78  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f49f6df61e6]
#79  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0x93) [0x7f49f6ecd123]
#80  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x9334) [0x7f49f6cd0154]
#81  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f49f6cd14d3]
#82  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x9334) [0x7f49f6cd0154]
#83  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x794d3) [0x7f49f6cd14d3]
#84  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x9334) [0x7f49f6cd0154]
#85  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f49f6df61e6]
#86  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallDict+0xae) [0x7f49f6ecd30e]
#87  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyObject_Call_Prepend+0xcd) [0x7f49f6ed020d]
#88  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x215c35) [0x7f49f6e6dc35]
#89  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyObject_Call+0x75) [0x7f49f6ecdc75]
#90  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x2dd9) [0x7f49f6cc9bf9]
#91  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f49f6df61e6]
#92  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallDict+0xae) [0x7f49f6ecd30e]
#93  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyObject_Call_Prepend+0xcd) [0x7f49f6ed020d]
#94  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x215c35) [0x7f49f6e6dc35]
#95  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyObject_FastCallKeywords+0xd3) [0x7f49f6ece043]
#96  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x52eb) [0x7f49f6ccc10b]
#97  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f49f6df61e6]
#98  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyEval_EvalCodeEx+0x3e) [0x7f49f6df646e]
#99  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyEval_EvalCode+0x1b) [0x7f49f6df723b]
#100  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x16e86f) [0x7f49f6dc686f]
#101  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyRun_InteractiveLoopFlags+0x76) [0x7f49f6dc6ba6]
#102  0x7f49f7271438 in Base::InterpreterSingleton::runCommandLine(char const*) from /usr/lib/freecad-daily-python3/lib/libFreeCADBase.so+0x18
#103  0x7f49f76aa285 in App::Application::runApplication() from /usr/lib/freecad-daily-python3/lib/libFreeCADApp.so+0x85
#104  freecadcmd-daily(main+0x1cc) [0x555bf75db97c]
#105  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7f49f6897b6b]
#106  freecadcmd-daily(_start+0x2a) [0x555bf75dba9a]
stefan@stefan-Latitude-E6510:~$
User avatar
kkremitzki
Posts: 1873
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: [Bug] FreeCAD headless running 'modules freecad' crashes console

Postby kkremitzki » Wed Nov 06, 2019 5:52 pm

I thought this was broken in the past, is it a regression?
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
looo
Posts: 3108
Joined: Mon Nov 11, 2013 5:29 pm

Re: [Bug] FreeCAD headless running 'modules freecad' crashes console

Postby looo » Wed Nov 06, 2019 6:11 pm

I cannot reproduce with the appimage. I guess the problem reported by @kunda is caused by some local packages, not part of the appimage. In my eyes the appimage should be used for traditional use-cases (gui). Any more advanced stuff like importing freecad from python should be done by using a package-manager.

Regarding the Ubuntu packages problem, I don't know, but this definitely looks different.
please help with my conda-packaging efforts: https://liberapay.com/looooo/
minimalistic blog: https://looooo.github.io/mini-blog/
User avatar
s-light
Posts: 51
Joined: Thu Feb 12, 2015 11:39 am
Location: Germany, Hofheim am Taunus
Contact:

Re: [Bug] FreeCAD headless running 'modules freecad' crashes console

Postby s-light » Sat Nov 16, 2019 11:19 am

just to let you know:
i have done a fresh install of my system - now with Kubuntu 19.10 - and now i can not reproduce it anymore..
so it seems that this has to do with older things...

sunny greetings
stefan
User avatar
Kunda1
Posts: 6427
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Bug] FreeCAD headless running 'modules freecad' crashes console

Postby Kunda1 » Sat Nov 16, 2019 12:25 pm

s-light wrote:
Sat Nov 16, 2019 11:19 am
just to let you know:
i have done a fresh install of my system - now with Kubuntu 19.10 - and now i can not reproduce it anymore..
so it seems that this has to do with older things...
Thanks for the feedback
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
triplus
Posts: 9136
Joined: Mon Dec 12, 2011 4:45 pm

Re: [Bug] FreeCAD headless running 'modules freecad' crashes console

Postby triplus » Sat Feb 08, 2020 10:13 am

Please test with the latest FreeCAD 0.19 AppImage.

P.S. Can't confirm on my side.
User avatar
Kunda1
Posts: 6427
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Bug] FreeCAD headless running 'modules freecad' crashes console

Postby Kunda1 » Sat Feb 08, 2020 5:03 pm

triplus wrote:
Sat Feb 08, 2020 10:13 am
Please test with the latest FreeCAD 0.19 AppImage.
I can't seem to successfully download the AppImage either with the AppImage Updater or the full appimage from github. :(
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
triplus
Posts: 9136
Joined: Mon Dec 12, 2011 4:45 pm

Re: [Bug] FreeCAD headless running 'modules freecad' crashes console

Postby triplus » Sat Feb 08, 2020 6:01 pm

Sometimes network issues can cause troubles, likely due to high traffic on GitHub. Or maybe you exceeded your daily quota, i know that GitHub has such filters.

Anyway, it currently works fine on my side, using the updater tool, therefore just test again after a while.