FreeCAD 0.18 crash every times on Fedora 30

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
fillet
Posts: 20
Joined: Fri Feb 05, 2016 2:01 pm

FreeCAD 0.18 crash every times on Fedora 30

Post by fillet »

Hello,

I'm a FreeCAD 0.17 user on Linux Fedora, for mechanical parts.
I have installed FreeCAD 0.17 using this installation file : FreeCAD-0.17.13541.9948ee4.glibc2.17-x86_64.AppImage
Immediately it install icons and menu entry.

Today, I download and install this AppImage : "FreeCAD_0.18-16110-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage"
It doesn't install icons and menu entry.
FreeCAD 0.18 open splash screen, and then open main screen.
The "Part design" workbench is selected and I click File / New, application close suddently without any message, and is not present in menu...

I start FreeCAD using a terminal, and here is what I can read :

Code: Select all

/tmp/.mount_FreeCA0pUlrs
FreeCAD 0.18, Libs: 0.18R16110 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

During initialization the error invalid character in identifier (<string>, line 1) occurred in /home/user1/.FreeCAD/Mod/Fasteners/Init.py
Please look into the log file for further information
libGL error: MESA-LOADER: failed to open nouveau (search paths /usr/lib64/dri)
libGL error: failed to load driver: nouveau
libGL error: MESA-LOADER: failed to open nouveau (search paths /usr/lib64/dri)
libGL error: failed to load driver: nouveau
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib64/dri)
libGL error: failed to load driver: swrast
During initialization the error invalid character in identifier (<string>, line 1) occurred in /home/user1/.FreeCAD/Mod/Fasteners/InitGui.py
Please look into the log file for further information
I remove my Fastener library and I try again, here the result :

Code: Select all

/tmp/.mount_FreeCAvqV66e
FreeCAD 0.18, Libs: 0.18R16110 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

libGL error: MESA-LOADER: failed to open nouveau (search paths /usr/lib64/dri)
libGL error: failed to load driver: nouveau
libGL error: MESA-LOADER: failed to open nouveau (search paths /usr/lib64/dri)
libGL error: failed to load driver: nouveau
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib64/dri)
libGL error: failed to load driver: swrast
Program received signal SIGSEGV, Segmentation fault.
/tmp/.mount_FreeCAvqV66e/AppRun : ligne 12 :  5224 Segmentation fault      (core dumped)${HERE}/usr/bin/FreeCAD "$@"
Any idea to solve this problem ?
chrisb
Veteran
Posts: 54197
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.18 crash every times on Fedora 30

Post by chrisb »

Can you try a different driver for your graphics card?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: FreeCAD 0.18 crash every times on Fedora 30

Post by vocx »

fillet wrote: Sun May 19, 2019 12:24 pm

Code: Select all

libGL error: MESA-LOADER: failed to open nouveau (search paths /usr/lib64/dri)
libGL error: failed to load driver: nouveau
Any idea to solve this problem ?
This error seems to suggest that the driver nouveau is the problem. This driver is used by some Nvidia cards.

If I remember correctly, nouveau was a project to create an open source version driver for Nvida cards. However, once Nvidia started releasing their closed source binary driver, nouveau lost importance. In other words, if you want to have the best driver for your Nvidia card, you should use their proprietary drivers; if you want to stay with completely free software, you should keep nouveau.

You should check Fedora's documentation to see how to get the binary drivers. In the case of Ubuntu and similar distributions, the drivers are pre-packaged: https://help.ubuntu.com/community/Binar ... wto/Nvidia
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
fillet
Posts: 20
Joined: Fri Feb 05, 2016 2:01 pm

Re: FreeCAD 0.18 crash every times on Fedora 30

Post by fillet »

Hello,

Thank's for your answer, but I can't change my graphic card driver.

My driver is not the problem, because Freecad 0.17 works very well on my Fedora 30 computer.
Can you explain why Freecad 0.17 works with my "nouveau" driver and not Frecad 0.18 ?

Can you correct this problem on this new Freecad version, please ?


PS :
My graphic card is a NVidia Gefroce GT730.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FreeCAD 0.18 crash every times on Fedora 30

Post by looo »

fillet wrote: Thu May 23, 2019 5:08 pm
Can you correct this problem on this new Freecad version, please?
We try to do our best to make freecad available for as many systems as possible. We are volunteers. And I don't see a simple way to help here. I guess you must invest some time yourself.

Some ideas:
- use freecad from fedorra package manager
- use a snap
- use flatpack
- use conda

You have plenty of possibilities, you only have to invest some time. Maybe by testing other ways you find out why the appimage doesn't work for your system.
fillet
Posts: 20
Joined: Fri Feb 05, 2016 2:01 pm

Re: FreeCAD 0.18 crash every times on Fedora 30

Post by fillet »

Thank's a lot for this answer, Loo.
Freecad v0.18 works weel using Fedora package manager (without any change for my graphic card driver) !
(Previously I was using Freecad Appimage from freecadweb.org)

Here is the installed version using Package Manager

Code: Select all

OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.Unknown
Build type: Unknown
Python version: 2.7.15
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1.oce-0.18
Locale: French/France (fr_FR)
Thank's for this great new version. I use it already on Windows for part design workbench, and new improvements are very usefull.

Difference between Appimage version and Fedora package manager version looks Qt version (4 vs 5) and Python version (2.7 vs 3)...
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: FreeCAD 0.18 crash every times on Fedora 30

Post by vocx »

fillet wrote: Thu May 23, 2019 5:08 pm ...
My driver is not the problem,
What? You don't know that. The error message indicates a problem with the driver, so it must be the driver. Change it.
because Freecad 0.17 works very well on my Fedora 30 computer.
Can you explain why Freecad 0.17 works with my "nouveau" driver and not Frecad 0.18 ?
...
So? FreeCAD 0.17 is not FreeCAD 0.18, they are different pieces of software. That a previous version worked and a newer version doesn't may indicate a problem that was only uncovered in the new version. All points towards your graphics card driver being the problem. Change it.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: FreeCAD 0.18 crash every times on Fedora 30

Post by vocx »

fillet wrote: Thu May 23, 2019 10:00 pm Here is the installed version using Package Manager

Code: Select all

OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.Unknown
Build type: Unknown
Python version: 2.7.15
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1.oce-0.18
Locale: French/France (fr_FR)
Please notice that a modern version of FreeCAD should be using Python 3. Python 2 will become obsolete at the end of the year, so using Python 3 is recommended.

Qt should be Qt5 as well, because Qt4 is also old. Coin should be version 4.0.0a.

And OCC should be 7.2 at least. OCC 6.9.1 is an old community edition (OCE), which was discontinued in FreeCAD 0.17. It is not recommended that you use this 6.9 version because it lacks new functions and bug fixes that solve many rendering problems.

I believe the version of OCC together with your nouveau driver is what is causing the crashes. If you use an old version of OCC, it won't crash, but you will be setting yourself to have further modelling errors in the future. If you use a new version of OCC, it seems the nouveau driver doesn't work nicely together with it, so you should definitely update your driver.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
chrisb
Veteran
Posts: 54197
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.18 crash every times on Fedora 30

Post by chrisb »

You can try to contact crifepaul, he didn't return to tell about the final outcome.
https://forum.freecadweb.org/viewtopic.php?f=4&t=35538
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: FreeCAD 0.18 crash every times on Fedora 30

Post by sgrogan »

The error suggests a problem with libGL (or the driver OpenGL support).

On Ubuntu, using Ubuntu package search (in a browser) I can see a QT5 dependency to libgl-dev
I can't find a corresponding dependency on QT4 (it may be a dependency of a dependency, but I haven't found it)
I'm pretty sure the AppImage doesn't include libgl as it would be expected it's on the user system.

Keep in mind I'm a Win user, looking at Ubuntu, to solve a Fedora problem.
"fight the good fight"
Post Reply