AppImage core dumping on Fedora 34 with nVidia drivers due to libGL error

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Arl3n
Posts: 10
Joined: Sat May 04, 2019 1:46 pm

AppImage core dumping on Fedora 34 with nVidia drivers due to libGL error

Post by Arl3n »

Just tried running the latest FreeCAD AppImage on a fresh Fedora 34 install.
Made the app crash due to missing GLIBCXX_3.4.29 error:

Code: Select all

user@system dir]$ ~/.FreeCAD/bin/FreeCAD_0.19-24276-Linux-Conda_glibc2.12-x86_64.AppImage
[2] 12134
FreeCAD 0.19, Libs: 0.19R24276 (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
Interlocking laser cut workbench loaded
Sheet Metal workbench loaded
libGL error: MESA-LOADER: failed to open iris: /tmp/.mount_FreeCANl9jAJ/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 iris: /tmp/.mount_FreeCANl9jAJ/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_FreeCANl9jAJ/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
/tmp/.mount_FreeCANl9jAJ/AppRun: line 41: 12147 Aborted                 (core dumped) ${MAIN} "$@"
I'm using the nVidia drivers that come as part of the RPM Fusion repo.
Using Nouveau (which I did on my previous system and didn't have any issues at all) is not an option on this system, since it leaves both the iGPU and the RTX3060 running at full speed at the same time.

What more information do I need to provide? (or what can I try to resolve this?)
Haavard
Posts: 217
Joined: Wed Feb 17, 2021 10:48 pm

Re: AppImage core dumping on Fedora 34 with nVidia drivers due to libGL error

Post by Haavard »

I have the same issue on Fedora 34, with AMD graphics. Tried changing from radeon to amdgpu driver with no luck.
:

Code: Select all

$ strings /usr/lib/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBCXX_3.4.26
GLIBCXX_3.4.27
GLIBCXX_3.4.28
GLIBCXX_3.4.29
GLIBCXX_DEBUG_MESSAGE_LENGTH
No clue how to fix this, but probably a Fedora issue then?
Arl3n
Posts: 10
Joined: Sat May 04, 2019 1:46 pm

Re: AppImage core dumping on Fedora 34 with nVidia drivers due to libGL error

Post by Arl3n »

For what it's worth: I just checked the FreeCAD 0.19 version that comes with F34 as part of the repo (freecad-1:0.19.2-1.fc34.x86_64): starting without a single glitch.
Haavard
Posts: 217
Joined: Wed Feb 17, 2021 10:48 pm

Re: AppImage core dumping on Fedora 34 with nVidia drivers due to libGL error

Post by Haavard »

I've tried to open appimages in both xorg and wayland sessions, both fail. My laptop with intel graphics also fails, so this is probably a Fedora 34 or a Gnome 40 issue.

This is the log file after opening the appimage in a terminal with "-l" suffix:

Code: Select all

Msg: 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.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Log: Time = Thu May 13 15:53:17 2021
Log: AppDataSkipVendor = true
Log: AppHomePath = /tmp/.mount_FreeCAz2vpCy/usr/
Log: AppIcon = freecad
Log: AppTempPath = /tmp/
Log: BinPath = /tmp/.mount_FreeCAz2vpCy/usr/bin/
Log: BuildRepositoryURL = /home/conda/feedstock_root/build_artifacts/git_cache/github.com/FreeCAD/FreeCAD
Log: BuildRevision = 24291 (Git)
Log: BuildRevisionBranch = (HEAD detached at 0.19.2)
Log: BuildRevisionDate = 2021/04/15 09:17:08
Log: BuildRevisionHash = 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Log: BuildVersionMajor = 0
Log: BuildVersionMinor = 19
Log: Console = 0
Log: CopyrightInfo = © 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.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##


Log: Debug = 0
Log: DocPath = /tmp/.mount_FreeCAz2vpCy/usr/doc/
Log: ExeName = FreeCAD
Log: ExeVendor = FreeCAD
Log: ExeVersion = 0.19
Log: LoggingConsole = 1
Log: LoggingFile = 1
Log: LoggingFileName = /home/<username>/.FreeCAD/FreeCAD.log
Log: MaintainerUrl = http://www.freecadweb.org/wiki/Main_Page
Log: PATH = /home/<username>/.local/bin:/home/<username>/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
Log: PYTHONHOME = /tmp/.mount_FreeCAz2vpCy/usr
Log: PYTHONPATH = 
Log: PythonSearchPath = /tmp/.mount_FreeCAz2vpCy/usr/lib/python38.zip:/tmp/.mount_FreeCAz2vpCy/usr/lib/python3.8:/tmp/.mount_FreeCAz2vpCy/usr/lib/python3.8/lib-dynload
Log: RunMode = Gui
Log: SplashAlignment = Bottom|Left
Log: SplashInfoColor = #c8c8c8
Log: SplashScreen = freecadsplash
Log: SplashTextColor = #ffffff
Log: StartWorkbench = StartWorkbench
Log: SystemParameter = /home/<username>/.FreeCAD/system.cfg
Log: UserAppData = /home/<username>/.FreeCAD/
Log: UserHomePath = /home/<username>
Log: UserParameter = /home/<username>/.FreeCAD/user.cfg
Log: Verbose = 
Log: Create Application
Log: Run App init script
Log: Init: starting App::FreeCADInit.py
Log: Init:   Searching for modules...
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/AddonManager... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Arch... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Draft... done
Log: Drawing became obsolete in 0.17; consider using TechDraw instead.
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Drawing... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Fem... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Idf... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Image... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Import... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Inspection... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Material... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Measure... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Mesh... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/MeshPart... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/OpenSCAD... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Part... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/PartDesign... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Path... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Points... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Raytracing... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/ReverseEngineering... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Robot... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Show(Init.py not found)... ignore
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Sketcher... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Spreadsheet... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Start... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Surface... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/TechDraw... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Test... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Tux(Init.py not found)... ignore
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Web... done
Log: Init:      Initializing /home/<username>/.FreeCAD/Mod/TabBar(Init.py not found)... ignore
Log: Init: Initializing freecad.appimage
Log: Init: No init module found in freecad.appimage, skipping
Log: Using /tmp/.mount_FreeCAz2vpCy/usr/Mod as module path!
Log: System path after init:
Log:    /tmp/.mount_FreeCAz2vpCy/usr/bin
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/AddonManager
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Arch
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Draft
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Drawing
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Fem
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Idf
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Image
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Import
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Inspection
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Material
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Measure
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Mesh
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/MeshPart
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/OpenSCAD
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Part
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/PartDesign
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Path
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Points
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Raytracing
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/ReverseEngineering
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Robot
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Show
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Sketcher
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Spreadsheet
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Start
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Surface
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/TechDraw
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Test
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Tux
Log:    /tmp/.mount_FreeCAz2vpCy/usr/Mod/Web
Log:    /home/<username>/.FreeCAD/Mod/TabBar
Log:    /home/<username>/.local/bin
Log:    /home/<username>/bin
Log:    /usr/local/bin
Log:    /usr/local/sbin
Log:    /usr/bin
Log:    /usr/sbin
Log: Init: App::FreeCADInit.py done
Log: Init: Creating Gui::Application and QApplication
Log: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Log: Local server 'FreeCAD' started
Log: Run Gui init script
Log: Init: Running FreeCADGuiInit.py start script...
Log: Init:   Searching modules...
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/AddonManager... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Arch... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Draft... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Drawing... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Fem... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Idf(InitGui.py not found)... ignore
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Image... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Import... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Inspection... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Material... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Measure(InitGui.py not found)... ignore
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Mesh... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/MeshPart... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/OpenSCAD... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Part... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/PartDesign... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Path... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Points... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Raytracing... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/ReverseEngineering... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Robot... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Show(InitGui.py not found)... ignore
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Sketcher... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Spreadsheet... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Start... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Surface... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/TechDraw... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Test... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Tux... done
Log: Init:      Initializing /tmp/.mount_FreeCAz2vpCy/usr/Mod/Web... done
Log: Init:      Initializing /home/<username>/.FreeCAD/Mod/TabBar... done
Log: Init: Initializing freecad.appimage
Log: Init: Initializing freecad.appimage... done
Log: Init: Loading FreeCAD GUI
Log: Init: Running FreeCADGuiInit.py start script... done
Log: Init: Activating default workbench StartWorkbench
Log: Loading GUI of Web module... done
Log: Loading GUI of Start module... done
Log: Loading Start module... done
Log: WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
Log: Init: Showing main window
Log: Main window restored
Log: Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile) 
(Here is another forum thread from search results with a similar issue: https://forums.insynchq.com/t/fedora-34 ... tart/17135)

The rpm package also works for me, but is unbearingly slow/laggy. So far the flatpak version seem to work, but is slighty outdated.
I should probably submit a bug report somewhere, but are not sure where to do that..
Any ideas anyone? :)
freman wrote: Sun May 09, 2021 5:02 pm ping
hobbes1069 wrote: Sun May 09, 2021 2:47 pm ping
Post Reply