FreeCAD 0.20.1 Addons manager crash ¿Possible bug?

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Gorka
Posts: 9
Joined: Tue Sep 13, 2022 12:01 pm

FreeCAD 0.20.1 Addons manager crash ¿Possible bug?

Post by Gorka »

Hello

I'm trying to install some addons from "Addon Manager", but every time I try to install one of them (whatever it is), FreeCAD freezes and then closes.

Attached screenshot as when trying to clone the repository, it crashes.
Image

I tried to create the Addons folder manually, but I get the same result.
Image

Does anything I need to do is solve this?

I use version 0.20.1 obtained from Flathub on a Linux Mint 21. Thank you.

Best regards
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.20.1 Addons manager crash ¿Possible bug?

Post by adrianinsaval »

please provide full version information as described here
I have no issues installing addons with the flatpak version. Try renaming or deleting ~/.var/app/org.freecadweb.FreeCAD (this will reset all freecad settings though), if the issue isn't solved please run in a terminal

Code: Select all

flatpak run org.freecadweb.FreeCAD --log-file ~/FreeCAD.log
then reproduce the issue and upload the log file that will be created in your home directory. Also post (as text, not screenshot) any error message that you might get in the terminal window.

As a side point, when uploading images better just do it on the forum, external websites are annoying.
Gorka
Posts: 9
Joined: Tue Sep 13, 2022 12:01 pm

Re: FreeCAD 0.20.1 Addons manager crash ¿Possible bug?

Post by Gorka »

Hello

Sorry, I don't know those indications.

I attach a text with the error.

Code: Select all

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

Gtk-Message: 11:52:27.674: Failed to load module "xapp-gtk3-module"
[2:21:0914/115233.116968:ERROR:address_tracker_linux.cc(214)] Could not bind NETLINK socket: La dirección ya se está usando (98)
Se ha producido un error al actualizar macros desde GitHub, intentando limpiar el checkout...:
Cmd('git') failed due to: exit code(128)
  cmdline: git clone -v https://github.com/FreeCAD/FreeCAD-macros.git /home/gorka/.var/app/org.freecadweb.FreeCAD/cache/FreeCAD/Cache/AddonManager/Macros
  stderr: 'Cloning into '/home/gorka/.var/app/org.freecadweb.FreeCAD/cache/FreeCAD/Cache/AddonManager/Macros'...
fatal: unable to access 'https://github.com/FreeCAD/FreeCAD-macros.git/': gnutls_handshake() failed: Illegal parameter
'
/home/gorka/.var/app/org.freecadweb.FreeCAD/cache/FreeCAD/Cache/AddonManager/Macros
Intentando hacer una comprobación limpia...
Error al actualizar macros de GitHub -- intente limpiar la caché del administrador de complementos.:
[Errno 2] No existe el fichero o el directorio: '/home/gorka/.var/app/org.freecadweb.FreeCAD/cache/FreeCAD/Cache/AddonManager/Macros'
Error de sintaxis al leer __files__ de la macro AeroFoil
__Files__         = "AeroFoil_UI_Files/AeroFoil_Initial_Dialog.ui, AeroFoil_UI_Files/AeroFoil_NACA4Digit_Dialog.ui, \

Cloning repo...
Lock acquired...
Traceback (most recent call last):
  File "/app/freecad/Mod/AddonManager/addonmanager_workers.py", line 982, in run
    self.run_git(target_dir)
  File "/app/freecad/Mod/AddonManager/addonmanager_workers.py", line 1016, in run_git
    self.run_git_clone(clonedir)
  File "/app/freecad/Mod/AddonManager/addonmanager_workers.py", line 1094, in run_git_clone
    repo = git.Repo.clone_from(
  File "/app/lib/python3.9/site-packages/git/repo/base.py", line 1032, in clone_from
    return cls._clone(git, url, to_path, GitCmdObjectDB, progress, multi_options, **kwargs)
  File "/app/lib/python3.9/site-packages/git/repo/base.py", line 969, in _clone
    handle_process_output(proc, None, progress.new_message_handler(), finalize_process, decode_streams=False)
  File "/app/lib/python3.9/site-packages/git/cmd.py", line 115, in handle_process_output
    return finalizer(process)
  File "/app/lib/python3.9/site-packages/git/util.py", line 329, in finalize_process
    proc.wait(**kwargs)
  File "/app/lib/python3.9/site-packages/git/cmd.py", line 408, in wait
    raise GitCommandError(self.args, status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git clone --progress -v https://github.com/kbwbe/A2plus /home/gorka/.var/app/org.freecadweb.FreeCAD/data/FreeCAD//Mod/A2plus

Thanks a lot.

Best regards
Last edited by Gorka on Mon Oct 31, 2022 3:56 pm, edited 1 time in total.
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.20.1 Addons manager crash ¿Possible bug?

Post by adrianinsaval »

do you have another instance of freecad flatpak running?, there's a know issue with that sadly: https://github.com/flathub/org.freecadw ... /issues/59

also, you have not actually followed the indications to provide full version info, please try to do so when you post asking for help.

en caso de que el problema sea que no entiendes mucho inglés: cuando haces un post pidiendo ayuda en el foro pedimos que publiques la información completa de tu versión de freecad, lo cual obtienes siguiendo los pasos del gif en el enlace que postee, estos datos contienen información importante sobre la versión de freecad y las librerías con las cuales fue compilado además del sistema operativo y addons que tengas instalado, esta información es muchas veces crucial para identificar los problemas por eso la pedimos. como ejemplo la info es algo así:

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: C/Default (C) [ OS: Spanish/Paraguay (es_PY) ]
Installed mods: 
  * AirPlaneDesign 0.4.0
  * ArchTextures
  * Assembly4 0.12.3
  * CfdOF 1.17.7
  * CurvedShapes 1.0.4
  * Curves 0.5.7
  * Defeaturing
  * fasteners 0.3.38
  * FCsuWB-dev
  * Glass 0.5.7
  * Plot 2022.4.17
  * SelectorToolbar
  * Silk 1.0.0
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.20.1 Addons manager crash ¿Possible bug?

Post by adrianinsaval »

I now recall that you are not the first one with this issue: https://forum.freecadweb.org/viewtopic. ... 15#p615015

it seems for some reason the flatpak version can't do git clone for some people, please create an issue at the flatpak repository: https://github.com/flathub/org.freecadweb.FreeCAD

if you want a workaround you might need to download the appimage version or enable and install the snap version.

@chennes could the addon manager handle this failure more gracefully maybe?
User avatar
chennes
Veteran
Posts: 3878
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: FreeCAD 0.20.1 Addons manager crash ¿Possible bug?

Post by chennes »

Yes, I think so -- instead of just assuming that if git is found, it will give a valid result, wait to do the fallback to ZIP until the moment of download, and if the git calls fails, try to download the zip instead.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.20.1 Addons manager crash ¿Possible bug?

Post by adrianinsaval »

I'll be damned, it seems to be an issue with CPU instruction sets :roll:
https://github.com/flathub/org.freecadw ... /issues/96
User avatar
chennes
Veteran
Posts: 3878
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: FreeCAD 0.20.1 Addons manager crash ¿Possible bug?

Post by chennes »

Wow, that doesn't come up here very often. Still, probably best to do the fallback at the point it's really needed, not just at launch.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.20.1 Addons manager crash ¿Possible bug?

Post by adrianinsaval »

totally!
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: FreeCAD 0.20.1 Addons manager crash ¿Possible bug?

Post by onekk »

adrianinsaval wrote: Thu Sep 15, 2022 2:27 pm I'll be damned, it seems to be an issue with CPU instruction sets :roll:
...
Some times ago this was happening quite often I remember times where AMD and Intel have quite different extended instructions set.

At these times I was using an AMD E-350 CPU and having had some interesting discussion on the VoidLinux forum with developers and in the end it was a similar problem.

I wonder if there are some safe settings around to sort out similar problem, maybe defining some "minimal requirements" that a CPU must have to run FC, and setting the bar at a decent low end.

Advanced users with "high end" CPU will have enough "horsepower" to compile an optimized version for their CPU.

Best Regards.

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
Post Reply