FreeCAD 0.19 freezes/crashes when opening "Addon manager"

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Post Reply
dr.schniedel
Posts: 2
Joined: Thu Sep 16, 2021 5:11 pm

FreeCAD 0.19 freezes/crashes when opening "Addon manager"

Post by dr.schniedel »

What I did before posting this:
Search online for error in console prompt: no results
Search github/Freecad for error in console prompt: no results
Search freecad bugtracker for error in console prompt: no results
Search freecad forum for error in console prompt: no results

Specifically for "addonmanager_workers.py" with "line 265"

I can't post to FreeCAD bugtracker, as it only accepts 0.20 submits

Steps to reproduce 100% of the times, on my machine:
1. start freecad without a project
2. Click Tools -> Addon Manager
Result: UI freezes, freecad process is unresposive. Has to be killed via console kill -9

Error message from terminal:

Code: Select all

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+ lice   nse.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

flag
flag2
connect failed: Datei oder Verzeichnis nicht gefunden
Traceback (most recent call last):
  File "/usr/lib/freecad/Mod/AddonManager/addonmanager_workers.py", line 265, in run
    if "git pull" in gitrepo.status():
  File "/usr/lib/python3.9/site-packages/git/cmd.py", line 585, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/git/cmd.py", line 1124, in _call_process
    return self.execute(call, **exec_kwargs)
  File "/usr/lib/python3.9/site-packages/git/cmd.py", line 928, in execute
    raise GitCommandError(redacted_command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git status
  stderr: 'fatal: this operation must be run in a work tree'

Help - About Info:

Code: Select all

OS: Arch Linux (i3/i3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: makepkg
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.9.6
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: German/Germany (de_DE)

chrisb
Posts: 37804
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.19 freezes/crashes when opening "Addon manager"

Post by chrisb »

Please retry with 0.20 and use the AppImage, as it most likely shows less issues with dependencies.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
adrianinsaval
Posts: 616
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.19 freezes/crashes when opening "Addon manager"

Post by adrianinsaval »

have you tried removing or renaming your .FreeCAD folder?
dr.schniedel
Posts: 2
Joined: Thu Sep 16, 2021 5:11 pm

Re: FreeCAD 0.19 freezes/crashes when opening "Addon manager"

Post by dr.schniedel »

I tried looking into 0.20 but where to get it? I pulled the git repo. It only has "staging" or "master" I haven't compiled it yet as cmake complains about missing deps still.

I wanted to report back here, after investigating and trying to get rid of all installed workbenches, that are clearly causing the issue...
So in the end what fixed it was I got rid of the following content in my ./FreeCAD folder :

Code: Select all

cd ~/.FreeCAD
mkdir tmp
mv Mod/ArchTextures/ tmp/
rm -r AddonManager/Images/
mv Mod/parts_library* tmp/
(library had a .bkp folder too)

One of the above fixed it. Unclear what caused the "git status" as the console is not telling this. let's wait for 0.20 I guess..
chrisb
Posts: 37804
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.19 freezes/crashes when opening "Addon manager"

Post by chrisb »

A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Syres
Posts: 1254
Joined: Thu Aug 09, 2018 11:14 am

Re: FreeCAD 0.19 freezes/crashes when opening "Addon manager"

Post by Syres »

dr.schniedel wrote: Fri Sep 17, 2021 4:11 pm I wanted to report back here, after investigating and trying to get rid of all installed workbenches, that are clearly causing the issue...
It's a shame a developer didn't get to help debug exactly which workbench caused the issue but I'm still going to submit a possible fix to stop it occurring again but to also produce a warning to the user as tp which workbench is triggering the properly handled error. This hopefully will be backported to 0.19.3 when released.
User avatar
chennes
Posts: 1215
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: FreeCAD 0.19 freezes/crashes when opening "Addon manager"

Post by chennes »

So it looks like either ArchTextures or one or more of parts_library* are the issue here, thanks for reporting that dr.schniedel. It's a strange situation indeed, where git fetch appears to succeed, but git status then fails. When you originally installed those addons, did you do it with the Addon Manager, or manually?
Chris Hennes
Pioneer Library System
Post Reply