-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Hi, I've noticed that rendering engines may require different libraries from those embedded in the AppImage (libatk-bridge-2.0.so.0 for LuxCore, for example).
In this case, the LD_LIBRARY_PATH variable must be specified at runtime.
A wrapper such as this one works very well, and all you need to do is specify its path instead of that of the luxcoreui binary:
#!/bin/bash
LUXCORE_BIN=$(readlink -f $(dirname $0))
LUXCORE_LIB=/lib/x86_64-linux-gnu/
export LD_LIBRARY_PATH=$LUXCORE_LIB:$LD_LIBRARY_PATH
$LUXCORE_BIN/luxcoreui "$@"
It's a problem that can be very confusing for new users, yet it's easily corrected. I think a note on this should be included in the documentation.
It's a subject already covered (but discovered after quite some time) here: #159
Also, RealThunder crashes with a segfault shortly after workbench selection (even without any project opened).
Tested with the “20241003” version
Here's the log (although not very informative?):
Msg: FreeCAD 0.21.0, Libs: 2024.1006.0R14555 (Git shallow)
Log: Time = 2024-Oct-14 17:09:56
Log: AboutImage = freecad_link_splash.png
Log: AppDataSkipVendor = true
Log: AppHomePath = /tmp/.mount_FreeCAcC15Ox/usr/
Log: AppIcon = freecad
Log: AppTempPath = /tmp/
Log: Application = FreeCAD Link Branch
Log: BOOST_VERSION = 1_84
Log: BinPath = /tmp/.mount_FreeCAcC15Ox/usr/bin/
Log: BuildRepositoryURL = Unknown
Log: BuildRevision = 14555 (Git shallow)
Log: BuildRevisionBranch = (HEAD detached at 20241003stable)
Log: BuildRevisionDate = 20241006
Log: BuildRevisionHash = a9810d509a6f112b5ac03d4d4831b67e6bffd5b7
Log: BuildVersionMajor = 2024
Log: BuildVersionMinor = 1006
Log: BuildVersionPoint = 0
Log: Console = 0
Log: CopyrightInfo =
Log: Debug = 0
Log: DocPath = /tmp/.mount_FreeCAcC15Ox/usr/doc/
Log: EIGEN_VERSION = 3.4.0
Log: ExeName = FreeCAD
Log: ExeVendor = FreeCAD
Log: ExeVersion = 0.21.0
Log: IssuePage = https://github.com/realthunder/FreeCAD/issues
Log: LoggingConsole = 1
Log: LoggingFile = 1
Log: LoggingFileName = /tmp/log.log
Log: MaintainerUrl = https://github.com/realthunder/FreeCAD
Log: OCC_VERSION = 7.7.2
Log: PATH = /tmp/.mount_FreeCAcC15Ox/usr/bin:/home/<User>/.local/bin:/home/<User>/.local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/<User>/.dotnet/tools:/home/<User>/.platformio/penv/bin:/usr/local/cuda/bin
Log: PYSIDE_VERSION = 5.15.8
Log: PYTHONHOME = /tmp/.mount_FreeCAcC15Ox/usr
Log: PYTHONPATH =
Log: PYTHON_VERSION = 3.11.9
Log: PythonSearchPath = /tmp/.mount_FreeCAcC15Ox/usr/lib/python311.zip:/tmp/.mount_FreeCAcC15Ox/usr/lib/python3.11:/tmp/.mount_FreeCAcC15Ox/usr/lib/python3.11/lib-dynload
Log: QT_VERSION = 5.15.13
Log: RunMode = Gui
Log: SMESH_VERSION = 9.8.0.2
Log: SplashAlignment = Bottom|Left
Log: SplashGif = freecad_link_logo.gif
Log: SplashInfoColor = #101010
Log: SplashInfoExeName = FreeCAD Link Branch
Log: SplashInfoPosition = 12 38
Log: SplashInfoVersion = 2024.10.06
Log: SplashScreen = freecad_link_splash.png
Log: SplashTextColor = #000000
Log: StartWorkbench = StartWorkbench
...
Log: [Render][Init] Starting Render initialization
Log: [Render][Init] Importing 'Assembly3'
Log: [Render][Init] Importing 'Assembly3'... done
Log: Loading MeshPart module... done
Log: Loading Mesh module... done
Msg: [Render][Init] Checking dependencies...
Log: [Render][Init] Checking Render virtual environment
Log: [Render][Init] >>> Environment folder exists: OK
Log: [Render][Init] >>> Environment provides Python: OK
Log: [Render][Init] >>> Environment provides Pip: OK
Log: [Render][Init] >>> /home/<User>/.local/share/FreeCAD/.rendervenv/bin/python -u -m pip install --no-warn-script-location --only-binary=:all: --upgrade --find-links=/home/<User>/.local/share/FreeCAD/Mod/Render/./wheelhouse PyQt6
Log: [Render][Init] >>> /home/<User>/.local/share/FreeCAD/.rendervenv/bin/python -u -m pip install --no-warn-script-location --only-binary=:all: --upgrade --find-links=/home/<User>/.local/share/FreeCAD/Mod/Render/./wheelhouse PyQt6-WebEngine
Log: [Render][Init] >>> /home/<User>/.local/share/FreeCAD/.rendervenv/bin/python -u -m pip install --no-warn-script-location --only-binary=:all: --upgrade --find-links=/home/<User>/.local/share/FreeCAD/Mod/Render/./wheelhouse -I renderplugin
Log: [Render][Init] >>> /home/<User>/.local/share/FreeCAD/.rendervenv/bin/python -u -m pip install --no-warn-script-location --only-binary=:all: --upgrade --find-links=/home/<User>/.local/share/FreeCAD/Mod/Render/./wheelhouse QtPy
Log: [Render][Init] >>> Looking in links: /home/<User>/.local/share/FreeCAD/Mod/Render/./wheelhouse
Log: [Render][Init] >>> Requirement already satisfied: QtPy in /home/<User>/.local/share/FreeCAD/.rendervenv/lib/python3.11/site-packages (2.4.1)
Log: [Render][Init] >>> Looking in links: /home/<User>/.local/share/FreeCAD/Mod/Render/./wheelhouse
Log: [Render][Init] >>> Requirement already satisfied: PyQt6 in /home/<User>/.local/share/FreeCAD/.rendervenv/lib/python3.11/site-packages (6.7.1)
Log: [Render][Init] >>> Looking in links: /home/<User>/.local/share/FreeCAD/Mod/Render/./wheelhouse
Log: [Render][Init] >>> Looking in links: /home/<User>/.local/share/FreeCAD/Mod/Render/./wheelhouse
Log: [Render][Init] >>> Requirement already satisfied: PyQt6-WebEngine in /home/<User>/.local/share/FreeCAD/.rendervenv/lib/python3.11/site-packages (6.7.0)
Log: [Render][Init] >>> Requirement already satisfied: PyQt6-sip<14,>=13.8 in /home/<User>/.local/share/FreeCAD/.rendervenv/lib/python3.11/site-packages (from PyQt6) (13.8.0)
Log: [Render][Init] >>> Requirement already satisfied: PyQt6-Qt6<6.8.0,>=6.7.0 in /home/<User>/.local/share/FreeCAD/.rendervenv/lib/python3.11/site-packages (from PyQt6) (6.7.3)
Log: [Render][Init] >>> Requirement already satisfied: packaging in /home/<User>/.local/share/FreeCAD/.rendervenv/lib/python3.11/site-packages (from QtPy) (24.1)
Log: [Render][Init] >>> Processing /home/<User>/.local/share/FreeCAD/Mod/Render/wheelhouse/renderplugin-0.0.1-py2.py3-none-any.whl
Log: [Render][Init] >>> Requirement already satisfied: PyQt6-sip<14,>=13.6 in /home/<User>/.local/share/FreeCAD/.rendervenv/lib/python3.11/site-packages (from PyQt6-WebEngine) (13.8.0)
Log: [Render][Init] >>> Requirement already satisfied: PyQt6-WebEngine-Qt6<6.8.0,>=6.7.0 in /home/<User>/.local/share/FreeCAD/.rendervenv/lib/python3.11/site-packages (from PyQt6-WebEngine) (6.7.3)
Log: [Render][Init] >>> Requirement already satisfied: PyQt6>=6.2.0 in /home/<User>/.local/share/FreeCAD/.rendervenv/lib/python3.11/site-packages (from PyQt6-WebEngine) (6.7.1)
Log: [Render][Init] >>> Requirement already satisfied: PyQt6-Qt6<6.8.0,>=6.7.0 in /home/<User>/.local/share/FreeCAD/.rendervenv/lib/python3.11/site-packages (from PyQt6>=6.2.0->PyQt6-WebEngine) (6.7.3)
Log: [Render][Init] >>> Requirement already satisfied: PyQt6-WebEngineSubwheel-Qt6==6.7.3 in /home/<User>/.local/share/FreeCAD/.rendervenv/lib/python3.11/site-packages (from PyQt6-WebEngine-Qt6<6.8.0,>=6.7.0->PyQt6-WebEngine) (6.7.3)
Msg: [Render][Init] Checking package 'QtPy' - OK
Wrn: QObject::killTimer: Timers cannot be stopped from another thread
Wrn: QObject::~QObject: Timers cannot be stopped from another thread
Msg: [Render][Init] Checking package 'PyQt6' - OK
Wrn: QObject::killTimer: Timers cannot be stopped from another thread
Wrn: QObject::~QObject: Timers cannot be stopped from another thread
Log: [Render][Init] >>> Installing collected packages: renderplugin
Log: [Render][Init] >>> Successfully installed renderplugin-0.0.1
Msg: [Render][Init] Checking package 'renderplugin' - OK
Wrn: QObject::killTimer: Timers cannot be stopped from another thread
Wrn: QObject::~QObject: Timers cannot be stopped from another thread
Msg: [Render][Init] Checking package 'PyQt6-WebEngine' - OK
Wrn: QObject::killTimer: Timers cannot be stopped from another thread
Wrn: QObject::~QObject: Timers cannot be stopped from another thread
Log: [Render][Init] Render virtual environment: OK
Msg: [Render][Init] Done.
Log: Loading Render module... done
Err: Program received signal SIGSEGV, Segmentation fault.
Err: #0 /lib/x86_64-linux-gnu/libc.so.6(+0x3d580) [0x7f218a858580]
Err: #1 0x7f218b0b6a94 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCAcC15Ox/usr/bin/../lib/libQt5Core.so.5+0x74
Err: #2 0x7f218b109f51 in QTimerInfoList::activateTimers() from /tmp/.mount_FreeCAcC15Ox/usr/bin/../lib/libQt5Core.so.5+0x381
Err: #3 /tmp/.mount_FreeCAcC15Ox/usr/bin/../lib/libQt5Core.so.5(+0x30a724) [0x7f218b10a724]
Err: #4 /tmp/.mount_FreeCAcC15Ox/usr/bin/../lib/./libglib-2.0.so.0(+0x5bad7) [0x7f2189110ad7]
Err: #5 /tmp/.mount_FreeCAcC15Ox/usr/bin/../lib/./libglib-2.0.so.0(+0x5eac7) [0x7f2189113ac7]
Err: #6 /tmp/.mount_FreeCAcC15Ox/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_iteration+0x2e) [0x7f21891140ce]
Err: #7 0x7f218b10aa36 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAcC15Ox/usr/bin/../lib/libQt5Core.so.5+0x66
Err: #8 0x7f218b0b570b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAcC15Ox/usr/bin/../lib/libQt5Core.so.5+0x11b
Err: #9 0x7f218b0bd212 in QCoreApplication::exec() from /tmp/.mount_FreeCAcC15Ox/usr/bin/../lib/libQt5Core.so.5+0x82
Err: #10 0x7f218d98f076 in Gui::Application::runApplication() from /tmp/.mount_FreeCAcC15Ox/usr/bin/../lib/libFreeCADGui.so+0x4b6
Err: #11 ./FreeCADLink(+0x780b) [0x5643dee4080b]
Err: #12 /lib/x86_64-linux-gnu/libc.so.6(+0x27c8a) [0x7f218a842c8a]
Err: #13 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7f218a842d45]
Err: #14 ./FreeCADLink(+0x7be1) [0x5643dee40be1]