This issue is caused by starting freecad.AppImage with nohup.
Error occurs when started like this:
Code: Select all
$ nohup freecad.AppImage >freecad.log &
Code: Select all
$ shopt | grep huponexit
huponexit off
Code: Select all
stdbuf -oL -eL freecad.AppImage &>freecad.log &
I apologize if this has become off topic. I will happily remove if requested.
Original post:
Code: Select all
OS: Manjaro Linux (i3/i3)
Word size of FreeCAD: 64-bit
Version: 0.21.30747 (Git) AppImage
Build type: Release
Branch: master
Hash: 4e643dcec3ed5ee882fc7b31710d9bfe3d331ffe
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Steps:
- Start FreeCAD
- Select Draft Workbench
- Select Bezier Curve
- Click to create 3 points
- Press "A" to finish
Code: Select all
00:00:28 Traceback (most recent call last):
File "/tmp/.mount_FreeCAcO2RLx/usr/Mod/Draft/draftutils/todo.py", line 167, in doTasks
File "<string>", line 1, in <module>
File "/tmp/.mount_FreeCAcO2RLx/usr/Mod/Draft/draftmake/make_bezcurve.py", line 100, in make_bezcurve
File "/tmp/.mount_FreeCAcO2RLx/usr/Mod/Draft/draftviewproviders/view_bezcurve.py", line 40, in __init__
File "/tmp/.mount_FreeCAcO2RLx/usr/Mod/Draft/draftviewproviders/view_wire.py", line 56, in __init__
File "/tmp/.mount_FreeCAcO2RLx/usr/Mod/Draft/draftviewproviders/view_base.py", line 95, in __init__
File "/tmp/.mount_FreeCAcO2RLx/usr/Mod/Draft/draftviewproviders/view_wire.py", line 61, in _set_properties
File "/tmp/.mount_FreeCAcO2RLx/usr/Mod/Draft/draftviewproviders/view_base.py", line 107, in _set_properties
File "/tmp/.mount_FreeCAcO2RLx/usr/Mod/Draft/draftutils/utils.py", line 786, in svg_patterns
File "/tmp/.mount_FreeCAcO2RLx/usr/Mod/Draft/draftutils/utils.py", line 727, in load_svg_patterns
File "/tmp/.mount_FreeCAcO2RLx/usr/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
return original_import(name, *args, **kwargs)
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 879, in exec_module
File "<frozen importlib._bootstrap_external>", line 1016, in get_code
File "<frozen importlib._bootstrap_external>", line 1073, in get_data
OSError: [Errno 24] Too many open files: '/tmp/.mount_FreeCAcO2RLx/usr/Mod/Draft/importSVG.py'
00:00:28 ToDo.doTasks, Unexpected error:
<class 'OSError'>
in ['points = [FreeCAD.Vector(-21.085184756422862, -23.290278757836106, -13.749368447054492), FreeCAD.Vector(-32.71330584608553, -3.386146666367429, 19.171628238075712), FreeCAD.Vector(10.178518219812101, 21.377398808713966, 19.17164009848673)]', 'bez = Draft.make_bezcurve(points, closed=False, support=None, degree=None)', 'Draft.autogroup(bez)', 'FreeCAD.ActiveDocument.recompute()']
I cannot find any relevant information via searching.
I am not sure how to troubleshoot further.
Thank you.