View Issue Details

IDProjectCategoryView StatusLast Update
0004343FreeCADPatchpublic2020-05-14 20:46
Reporterdenns Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version0.18 
Summary0004343: OpenSCAD broken with AppImage
Description




Attempting to use OpenSCAD features results in the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/denns/tmp/freecadapp/squashfs-root/usr/Mod/OpenSCAD/importCSG.py", line 105, in insert
    tmpfile=callopenscad(filename)
  File "/home/denns/tmp/freecadapp/squashfs-root/usr/Mod/OpenSCAD/OpenSCADUtils.py", line 179, in callopenscad
    check_output2([osfilename,'-o',outputfilename, inputfilename])
  File "/home/denns/tmp/freecadapp/squashfs-root/usr/Mod/OpenSCAD/OpenSCADUtils.py", line 158, in check_output2
    raise OpenSCADError('%s %s\n' % (stdoutd.strip(),stderrd.strip()))
<class 'OpenSCADUtils.OpenSCADError'>: " /usr/bin/openscad: /home/denns/tmp/freecadapp/squashfs-root/usr/lib/libQt5Core.so.5: version `Qt_5.14' not found (required by /usr/bin/openscad)\n/usr/bin/openscad: /home/denns/tmp/freecadapp/squashfs-root/usr/lib/libQt5Core.so.5: version `Qt_5.13' not found (required by /usr/lib/libqscintilla2_qt5.so.15)\n"

This is caused by a mismatch between the version of QT in the AppImage and the version used by OpenSCAD (outside of the AppImage). It can be fixed by unsetting LD_LIBRARY_PATH in prior to calling OpenSCAD.
Steps To ReproduceImport an OpenSCAD file with the AppImage release of OpenSCAD. Tested on Arch linux with 0.18.
Additional InformationForum discussion: https://forum.freecadweb.org/viewtopic.php?t=40848

Patch for 0.18 (tested working for me):

148c148,153
<         kwargs.update({'stdout':subprocess.PIPE,'stderr':subprocess.PIPE})
---
>         env = os.environ.copy()
>         try:
>             env.pop('LD_LIBRARY_PATH')
>         except KeyError:
>             None
>         kwargs.update({'stdout':subprocess.PIPE,'stderr':subprocess.PIPE,'env':env})

Patch for git master:

157c157,162
<         kwargs.update({'stdout':subprocess.PIPE,'stderr':subprocess.PIPE})
---
>         env = os.environ.copy()
>         try:
>             env.pop('LD_LIBRARY_PATH')
>         except KeyError:
>             None
>         kwargs.update({'stdout':subprocess.PIPE,'stderr':subprocess.PIPE,'env':env})
TagsNo tags attached.
FreeCAD InformationOS: Arch Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16146 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.18.4)
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-05-14 20:46 denns New Issue