Appimage problems in Fedora 34

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
konkandred
Posts: 3
Joined: Mon May 03, 2021 3:11 pm

Appimage problems in Fedora 34

Post by konkandred »

Appimage start but can't create new file or open existing (it freeze). I tested stable 19, weekly and linkstage3 version.

Errors on the start:

Code: Select all

libGL error: MESA-LOADER: failed to open iris: /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib64/dri/iris_dri.so) (search paths /usr/lib64/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib64/dri/swrast_dri.so) (search paths /usr/lib64/dri)
libGL error: failed to load driver: swrast
Errors on opening the file:

Code: Select all

#0  /lib64/libc.so.6(+0x3d310) [0x7f7421a8e310]
#1  /lib64/libc.so.6(+0x16259e) [0x7f7421bb359e]
#2  /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/./libCoin.so.80(cc_glglue_instance+0x15d) [0x7f74215bb6cd]
#3  0x7f7423d505c1 in SIM::Coin3D::Quarter::QuarterWidgetP::removeFromCacheContext(QuarterWidgetP_cachecontext*, QOpenGLWidget const*) from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libFreeCADGui.so+0xd1
#4  0x7f7423d5066a in SIM::Coin3D::Quarter::QuarterWidgetP::~QuarterWidgetP() from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libFreeCADGui.so+0x1a
#5  0x7f7423d500c9 in SIM::Coin3D::Quarter::QuarterWidget::~QuarterWidget() from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libFreeCADGui.so+0xb9
#6  0x7f7423d8a4af in Gui::View3DInventorViewer::~View3DInventorViewer() from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libFreeCADGui.so+0x43f
#7  0x7f7423d8a54a in Gui::View3DInventorViewer::~View3DInventorViewer() from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libFreeCADGui.so+0xa
#8  0x7f7423d79d49 in Gui::View3DInventor::~View3DInventor() from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libFreeCADGui.so+0x119
#9  0x7f7423d79dca in Gui::View3DInventor::~View3DInventor() from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libFreeCADGui.so+0xa
#10  0x7f7421f8254e in QObject::event(QEvent*) from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libQt5Core.so.5+0x76
#11  0x7f74227c107f in QWidget::event(QEvent*) from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libQt5Widgets.so.5+0xcc5
#12  0x7f742286b34f in QMainWindow::event(QEvent*) from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libQt5Widgets.so.5+0xdd
#13  0x7f74227957f2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libQt5Widgets.so.5+0xdc
#14  0x7f742279b31d in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libQt5Widgets.so.5+0x1ac9
#15  0x7f7423a5f639 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libFreeCADGui.so+0x89
#16  0x7f7421f6d606 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libQt5Core.so.5+0x86
#17  0x7f7421f6d83e in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libQt5Core.so.5+0x1da
#18  0x7f7421f6deb2 in QCoreApplication::exec() from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libQt5Core.so.5+0x120
#19  0x7f74239e81b6 in Gui::Application::runApplication() from /tmp/.mount_FreeCAl7cOlQ/usr/bin/../lib/libFreeCADGui.so+0x15f6
#20  /tmp/.mount_FreeCAl7cOlQ/usr/bin/freecad(+0x452f) [0x559ad75b452f]
#21  /lib64/libc.so.6(__libc_start_main+0xd5) [0x7f7421a78b75]
#22  /tmp/.mount_FreeCAl7cOlQ/usr/bin/freecad(+0x4851) [0x559ad75b4851]
The same behavior is in Wayland and in X11.

The flatpack works OK.

OS: KDE Flatpak runtime (KDE//usr/share/wayland-sessions/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.14555 (Git shallow)
Build type: Release
Branch: (HEAD detached at 0.19.1)
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.8
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.3.0
Locale: Lithuanian/Lithuania (lt_LT)
User avatar
reinhapa
Posts: 3
Joined: Wed Mar 06, 2019 7:21 am
Contact:

Re: Appimage problems in Fedora 34

Post by reinhapa »

Was there already an issue raised for this? I do have the same issue. Here my infos:

Code: Select all

libGL error: MESA-LOADER: failed to open iris: /tmp/.mount_FreeCAIAIy83/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib64/dri/iris_dri.so) (search paths /usr/lib64/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /tmp/.mount_FreeCAIAIy83/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib64/dri/swrast_dri.so) (search paths /usr/lib64/dri)
libGL error: failed to load driver: swrast
OS: Fedora 34 (Workstation Edition) (GNOME/gnome)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.19.2)
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: German/Switzerland (de_CH)
Last edited by reinhapa on Mon May 17, 2021 7:58 am, edited 2 times in total.
focusaurus
Posts: 2
Joined: Sat Jun 12, 2021 5:34 pm

Re: Appimage problems in Fedora 34

Post by focusaurus »

I am seeing the same problem on arch linux.

On start:

Code: Select all

FreeCAD 0.20, Libs: 0.20R25025 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2021
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.

Loading Assembly4 WorkBench
libGL error: MESA-LOADER: failed to open iris: /tmp/.mount_freecaYSed47/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /tmp/.mount_freecaYSed47/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /tmp/.mount_freecaYSed47/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri)
libGL error: failed to load driver: swrast

I think try to click new file icon. FreeCAD hangs and when I close it I see this stderr:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
#0  /usr/lib/libc.so.6(+0x3cda0) [0x7fdfba7cdda0]
#1  /usr/lib/libc.so.6(+0x16206e) [0x7fdfba8f306e]
#2  /tmp/.mount_freecaYSed47/usr/bin/../lib/./libCoin.so.80(cc_glglue_instance+0x15d) [0x7fdfba2fb6cd]
#3  0x7fdfbca975c1 in SIM::Coin3D::Quarter::QuarterWidgetP::removeFromCacheContext(QuarterWidgetP_cachecontext*, QOpenGLWidget const*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0xd1
#4  0x7fdfbca9766a in SIM::Coin3D::Quarter::QuarterWidgetP::~QuarterWidgetP() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0x1a
#5  0x7fdfbca970c9 in SIM::Coin3D::Quarter::QuarterWidget::~QuarterWidget() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0xb9
#6  0x7fdfbcad14af in Gui::View3DInventorViewer::~View3DInventorViewer() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0x43f
#7  0x7fdfbcad154a in Gui::View3DInventorViewer::~View3DInventorViewer() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0xa
#8  0x7fdfbcac0d49 in Gui::View3DInventor::~View3DInventor() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0x119
#9  0x7fdfbcac0dca in Gui::View3DInventor::~View3DInventor() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0xa
#10  0x7fdfbacc954e in QObject::event(QEvent*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Core.so.5+0x76
#11  0x7fdfbb50807f in QWidget::event(QEvent*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Widgets.so.5+0xcc5
#12  0x7fdfbb5b234f in QMainWindow::event(QEvent*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Widgets.so.5+0xdd
#13  0x7fdfbb4dc7f2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Widgets.so.5+0xdc
#14  0x7fdfbb4e231d in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Widgets.so.5+0x1ac9
#15  0x7fdfbc7a6639 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0x89
#16  0x7fdfbacb4606 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Core.so.5+0x86
#17  0x7fdfbacb483e in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Core.so.5+0x1da
#18  0x7fdfbacb4eb2 in QCoreApplication::exec() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Core.so.5+0x120
#19  0x7fdfbc72f1b6 in Gui::Application::runApplication() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0x15f6
#20  /tmp/.mount_freecaYSed47/usr/bin/freecad(+0x452f) [0x55e245f9852f]
#21  /usr/lib/libc.so.6(__libc_start_main+0xd5) [0x7fdfba7b8b25]
#22  /tmp/.mount_freecaYSed47/usr/bin/freecad(+0x4851) [0x55e245f98851]
Last edited by focusaurus on Sat Jun 12, 2021 5:40 pm, edited 2 times in total.
xuewenbao
Posts: 2
Joined: Sat Jun 20, 2020 3:52 am
Location: China
Contact:

Re: Appimage problems in Fedora 34

Post by xuewenbao »

focusaurus wrote: Sat Jun 12, 2021 5:36 pm I am seeing the same problem on arch linux.

On start:

Code: Select all

FreeCAD 0.20, Libs: 0.20R25025 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2021
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.

Loading Assembly4 WorkBench
libGL error: MESA-LOADER: failed to open iris: /tmp/.mount_freecaYSed47/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /tmp/.mount_freecaYSed47/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /tmp/.mount_freecaYSed47/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri)
libGL error: failed to load driver: swrast

I think try to click new file icon. FreeCAD hangs and when I close it I see this stderr:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
#0  /usr/lib/libc.so.6(+0x3cda0) [0x7fdfba7cdda0]
#1  /usr/lib/libc.so.6(+0x16206e) [0x7fdfba8f306e]
#2  /tmp/.mount_freecaYSed47/usr/bin/../lib/./libCoin.so.80(cc_glglue_instance+0x15d) [0x7fdfba2fb6cd]
#3  0x7fdfbca975c1 in SIM::Coin3D::Quarter::QuarterWidgetP::removeFromCacheContext(QuarterWidgetP_cachecontext*, QOpenGLWidget const*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0xd1
#4  0x7fdfbca9766a in SIM::Coin3D::Quarter::QuarterWidgetP::~QuarterWidgetP() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0x1a
#5  0x7fdfbca970c9 in SIM::Coin3D::Quarter::QuarterWidget::~QuarterWidget() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0xb9
#6  0x7fdfbcad14af in Gui::View3DInventorViewer::~View3DInventorViewer() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0x43f
#7  0x7fdfbcad154a in Gui::View3DInventorViewer::~View3DInventorViewer() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0xa
#8  0x7fdfbcac0d49 in Gui::View3DInventor::~View3DInventor() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0x119
#9  0x7fdfbcac0dca in Gui::View3DInventor::~View3DInventor() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0xa
#10  0x7fdfbacc954e in QObject::event(QEvent*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Core.so.5+0x76
#11  0x7fdfbb50807f in QWidget::event(QEvent*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Widgets.so.5+0xcc5
#12  0x7fdfbb5b234f in QMainWindow::event(QEvent*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Widgets.so.5+0xdd
#13  0x7fdfbb4dc7f2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Widgets.so.5+0xdc
#14  0x7fdfbb4e231d in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Widgets.so.5+0x1ac9
#15  0x7fdfbc7a6639 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0x89
#16  0x7fdfbacb4606 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Core.so.5+0x86
#17  0x7fdfbacb483e in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Core.so.5+0x1da
#18  0x7fdfbacb4eb2 in QCoreApplication::exec() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libQt5Core.so.5+0x120
#19  0x7fdfbc72f1b6 in Gui::Application::runApplication() from /tmp/.mount_freecaYSed47/usr/bin/../lib/libFreeCADGui.so+0x15f6
#20  /tmp/.mount_freecaYSed47/usr/bin/freecad(+0x452f) [0x55e245f9852f]
#21  /usr/lib/libc.so.6(__libc_start_main+0xd5) [0x7fdfba7b8b25]
#22  /tmp/.mount_freecaYSed47/usr/bin/freecad(+0x4851) [0x55e245f98851]
I met the same problem, and I corrected it by the following:
./FreeCAD_weekly-builds-24910-Linux-Conda_glibc2.12-x86_64.AppImage --appimage-extract
it generated a folder squashfs-root, delete usr/lib/libstdc++.so.6 and usr/lib/libstdc++.so in its sub folder
then regenerated appimage from this folder by using
./appimagetool-x86_64.AppImage squashfs-root
then it works
hope it will help you
forget my bad english :lol:
sol1d
Posts: 27
Joined: Tue Nov 07, 2017 2:48 am

Re: Appimage problems in Fedora 34

Post by sol1d »

That worked for me on Arch Linux as well, thanks for the hint!

Would you mind sharing how did you get to that idea?
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Appimage problems in Fedora 34

Post by adrianinsaval »

Similar thing here on manjaro:

Code: Select all

libGL error: MESA-LOADER: failed to open radeonsi: /tmp/.mount_FreeCAWIbwZC/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open radeonsi: /tmp/.mount_FreeCAWIbwZC/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast: /tmp/.mount_FreeCAWIbwZC/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri)
libGL error: failed to load driver: swrast
/tmp/.mount_FreeCAWIbwZC/AppRun: línea 41: 1253954 Abortado                (`core' generado) ${MAIN} "$@"
Any clues on what is causing this?
sgrogan wrote:
looo wrote:
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Appimage problems in Fedora 34

Post by Kunda1 »

This is a cross distro issue:
https://github.com/FreeCAD/FreeCAD-Bundle/issues/73
The issue comes from the updated libstdc++ on my system and mismatch from what's inside the AppImage.
It seems that when loading Mesa's OpenGL's drivers (which are loaded dynamically based on my system's overlay set up in /usr/lib/dri/), the libstdc++ from the AppImage (which is version 6.0.28) is loaded instead of my system's 6.0.29 version. So they fail loading, preventing the GUI to start.

I don't know if it's an issue with AppImage itself or with FreeCAD building of the image that don't use system's libstdc++.

I've replaced the symbolic link libstdc++.so.6 in the AppImage's /usr/lib folder to point to my system's library instead and it worked!
[/quote

ref :https://github.com/FreeCAD/FreeCAD-Bund ... -860801975
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
focusaurus
Posts: 2
Joined: Sat Jun 12, 2021 5:34 pm

Re: Appimage problems in Fedora 34

Post by focusaurus »

@xuewenbao that worked for me as a workaround, too. Thanks so much! Arch Linux users: I needed the package

Code: Select all

appimagetool-bin
from AUR to rebuild the appimage after extracting and modifying.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: Appimage problems in Fedora 34

Post by looo »

The issue is with the conda-forge libatdc++ library which needs to be updated. In general conda-packages should work with any distribution, but is not fully independent of the system. So new distros might add some issues to conda-packages.
I guess we will see a solution in the next months. But I am not sure if they really actively work on this issue yet.
User avatar
czinehuba
Posts: 159
Joined: Mon Oct 15, 2018 4:59 am
Location: UK
Contact:

Re: Appimage problems in Fedora 34

Post by czinehuba »

xuewenbao wrote: Wed Jun 16, 2021 7:36 am ....
Cheers. It work on my arch as well.
:D :D :D :D

I had the issue on my desktop with radeon GPU. this solved it.

Very grateful.
Post Reply