Crash on Ubuntu 21.10

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
csetera
Posts: 55
Joined: Mon Nov 23, 2020 1:19 pm

Crash on Ubuntu 21.10

Post by csetera »

I upgraded my machine from Ubuntu 21.04 to 21.10 today and since then FreeCAD will no longer start. Running from terminal, I'm seeing:

Code: Select all

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
FreeCAD 0.19, Libs: 0.19R24291 (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.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
/tmp/.mount_FreeCARqeAXa/AppRun: line 41: 14154 Aborted                 (core dumped) ${MAIN} "$@"
I've tried the most recent weekly build, but I'm seeing the same issue. This failure looks similar to https://forum.manjaro.org/t/many-appima ... date/69445 , although I've been thus far unable to get any of those suggestions to work.

Does anyone else have any suggestions to try?

Thanks,
Craig
csetera
Posts: 55
Joined: Mon Nov 23, 2020 1:19 pm

Re: Crash on Ubuntu 21.10

Post by csetera »

I guess I posted a bit too soon. The concept from the Manjarro post does work, but the path is difference. If I link up `/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.29` into the extracted image does appear to work. I'm not sure what that means to the FreeCAD project as a whole, but I should be able to at least get my system working again.

Thanks,
Craig
chrisb
Veteran
Posts: 53786
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash on Ubuntu 21.10

Post by chrisb »

You can try 0.20 AppImage from here.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
csetera
Posts: 55
Joined: Mon Nov 23, 2020 1:19 pm

Re: Crash on Ubuntu 21.10

Post by csetera »

chrisb wrote: Thu Oct 14, 2021 11:43 pm You can try 0.20 AppImage from here.
I mentioned in my original post that I did try the weekly build with the same behavior.
hemski
Posts: 2
Joined: Fri Oct 15, 2021 5:21 am

Re: Crash on Ubuntu 21.10

Post by hemski »

Hey!

Had similar issues after upgrading to Ubuntu 21.10, but the Manjaro forum suggestion to replace libstdc++.so.6 in the .appimage worked for me as well (with slight change in libstdc++.so.6 location, underlined below)

Edit: FreeCad did not crash for me, but failed to open new windows (also when attempting to open existing projects).


Download the appimagetool 23.

./appImageYouWantToFix --appimage-extract

A new folder will be created. Navigate to newlycreatedfolder/usr/lib and delete libstdc++.so.6.

cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /path/to/newlycreatedfolder/usr/lib/libstdc++.so.6

You can now navigate to newlycreatedfolder and execute AppRun and your appimage should work, it did in my case.

[Optional] Recompile the appimage by ./appimagetool-x86_64.AppImage -v ./newlycreatefolder.
Last edited by hemski on Fri Oct 15, 2021 5:28 am, edited 2 times in total.
openBrain
Veteran
Posts: 9031
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Crash on Ubuntu 21.10

Post by openBrain »

IMO the first line is a good clue.
You can (either) :
* Try to see the QT_QPA_PLATFORM environment variable
* Run an X desktop session rather than a Wayland one

EDIT : maybe it's a bit more complex. What is your GFX chip set? Do you have proprietary drivers installed?
hemski
Posts: 2
Joined: Fri Oct 15, 2021 5:21 am

Re: Crash on Ubuntu 21.10

Post by hemski »

openBrain wrote: Fri Oct 15, 2021 6:05 am IMO the first line is a good clue.
You can (either) :
* Try to see the QT_QPA_PLATFORM environment variable
* Run an X desktop session rather than a Wayland one

EDIT : maybe it's a bit more complex. What is your GFX chip set? Do you have proprietary drivers installed?
I've got a Radeon RX 5500 XT (AMDGPU, free driver), and X11/KDE Plasma

Edit, the wayland issue is probably another layer of word censored, I just get the driver errors on launch (tested on unchanged FreeCAD 0.19 AppImage):

Code: Select all

~/Downloads ./FreeCAD_0.19-24291-Linux-Conda_glibc2.12-x86_64.AppImage 
FreeCAD 0.19, Libs: 0.19R24291 (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.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

libGL error: MESA-LOADER: failed to open radeonsi: /usr/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open radeonsi: /usr/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
openBrain
Veteran
Posts: 9031
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Crash on Ubuntu 21.10

Post by openBrain »

hemski wrote: Fri Oct 15, 2021 6:45 am I've got a Radeon RX 5500 XT (AMDGPU, free driver), and X11/KDE Plasma
Can you check missing drivers are on your drive ?

Code: Select all

sudo find / -type f -name "iris_dri.so"
chrisb
Veteran
Posts: 53786
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash on Ubuntu 21.10

Post by chrisb »

csetera wrote: Fri Oct 15, 2021 2:52 am
chrisb wrote: Thu Oct 14, 2021 11:43 pm You can try 0.20 AppImage from here.
I mentioned in my original post that I did try the weekly build with the same behavior.
It wasn't clear to me if you used the AppImage. You should base further tests on the most current 0.20, because if anything has to befixed on the FreeCAD side, it will be in that version.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
thomas-neemann
Veteran
Posts: 11730
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Crash on Ubuntu 21.10

Post by thomas-neemann »

csetera wrote: Thu Oct 14, 2021 11:30 pm
this combination works. is that a possibility for you?

https://cdimage.ubuntu.com/xubuntu/daily-live/current/



OS: Ubuntu 21.10 (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.25997 (Git) AppImage
Build type: Release
Branch: master
Hash: 77b198048a63f1e9ca15eef64c8042d599a14cf3
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: German/Germany (de_DE)
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
Post Reply