Specific Error Message:
Code: Select all
16:35:25 ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
Can't open input file '/tmp/fc-09626-452490-000001.scad'!
Code: Select all
OS: Ubuntu 18.04.5 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: c240777a7de9fbb69472e6cbf589e83559a9ef17
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.5.1
Locale: English/UnitedStates (en_US)
Steps to reproduce (on my machine):
- Start a new document in FreeCAD
- Switch to the OpenSCAD workbench
- Use the command "OpenSCAD" > "Add an OpenSCAD Element"
- In the combo view, the task pops up to add code. Here, I use the default code cube(); and click "OK".
- Error
- Using echo $LD_PRELOAD reports /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0. This is correct for my system.
- Many other reports on SO suggest this is an x86 problem. I confirmed that I have the correct package installed by using sudo apt-get install libgtk3-nocsd0:i386.
I have done everything I could think of for now. A related issue raised on the forums (here) had no positive outcomes (I promise to report results!) so I'd like to check if there is anything else I should try first. The bug suggested in that thread appears to not apply to my problem, and unlike the user in the linked issue, I did NOT see a segfault.
-----------------------------------------
Edit: Solution - Users of FreeCAD should avoid using OpenSCAD Snaps in their workflow. Use an AppImage or apt package. Snaps will break things. Details of findings are later in this thread.