[?BUG] Addon Manager hangs in 0.19 on MacOS and possibly related issues.

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!
duncandoo
Posts: 3
Joined: Mon Jan 27, 2020 7:22 pm

Re: [?BUG] Addon Manager hangs in 0.19 on MacOS and possibly related issues.

Postby duncandoo » Sat Feb 08, 2020 10:09 am

Thanks to everyone who helped here. Sorry for the slow response. I can confirm that altering the single line as below makes the addon manager work again.
chrisb wrote:
Mon Feb 03, 2020 10:35 pm
I finally found the culprit: If I change line 43 in addonmanager_utilities.py from

Code: Select all

        ssl_ctx = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)
to

Code: Select all

        ssl_ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
AddonManager shows the list of workbenches again.

I don't understand the implications, so I don't know what to do. Should I create a pull request?
Now I will get to work on fixing the other issues that are mentioned further up, but I think those are separate solutions.
triplus
Posts: 9425
Joined: Mon Dec 12, 2011 4:45 pm

Re: [?BUG] Addon Manager hangs in 0.19 on MacOS and possibly related issues.

Postby triplus » Sat Feb 08, 2020 12:59 pm

Please download and try the latest macOS binary. This issue likely got fixed already:

https://github.com/FreeCAD/FreeCAD-AppImage/pull/34
steve123
Posts: 30
Joined: Fri Sep 04, 2015 8:58 pm

Re: [?BUG] Addon Manager hangs in 0.19 on MacOS and possibly related issues.

Postby steve123 » Sat Feb 08, 2020 5:46 pm

That did the trick. I downloaded the app image for build 19443 and can confirm that the workbenches appear in the add-on manager. I also note that a number of additional macros appear as well.
dxp.dev
Posts: 210
Joined: Tue Dec 11, 2018 12:57 pm

Re: [?BUG] Addon Manager hangs in 0.19 on MacOS and possibly related issues.

Postby dxp.dev » Sat Feb 08, 2020 6:11 pm

Works for me on

OS: macOS Mojave (10.14)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19443 (Git)
Build type: Release
Branch: master
Hash: 74680b8a15ad37e53eee0d341e95cd32631d88a3
Python version: 3.8.1
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)
Imperial system makes no sense, go metric ! ! !
steve123
Posts: 30
Joined: Fri Sep 04, 2015 8:58 pm

Re: [?BUG] Addon Manager hangs in 0.19 on MacOS and possibly related issues.

Postby steve123 » Tue Feb 11, 2020 2:57 pm

An update on this issue. Yesterday, I had an instance where I noticed that the add-on tool manager acted like it did before the recent fix. For a minute I thought maybe I was running another version of FreeCAD so I checked the version and it was correct (19443).

I quit the app and restarted and it started working again.
triplus
Posts: 9425
Joined: Mon Dec 12, 2011 4:45 pm

Re: [?BUG] Addon Manager hangs in 0.19 on MacOS and possibly related issues.

Postby triplus » Tue Feb 11, 2020 3:30 pm

Likely something else, for example network issues.
steve123
Posts: 30
Joined: Fri Sep 04, 2015 8:58 pm

Re: [?BUG] Addon Manager hangs in 0.19 on MacOS and possibly related issues.

Postby steve123 » Wed Feb 12, 2020 2:58 pm

I figured out how to reproduce the problem. It occurs when FreeCAD crashes. When FreeCAD crashes and you click "reopen" after the crash, it re-opens FreeCAD but I noticed a couple things. The title of the app in the menu bar is "freecad" instead of "FreeCAD-0.19-19443" which is the normal app title for the build I am using. When I do an "About FreeCAD" it shows the build is 19443.

When it is in this mode, the addon manager acts like it did before. That is, no workbenches appear in the left hand pane of the addon manager window when "workbenches" is selected.
triplus
Posts: 9425
Joined: Mon Dec 12, 2011 4:45 pm

Re: [?BUG] Addon Manager hangs in 0.19 on MacOS and possibly related issues.

Postby triplus » Wed Feb 12, 2020 3:02 pm

Thanks for the info, but i guess best to determine, on why FreeCAD crashes in the first place. Are you doing anything specific at that time?
steve123
Posts: 30
Joined: Fri Sep 04, 2015 8:58 pm

Re: [?BUG] Addon Manager hangs in 0.19 on MacOS and possibly related issues.

Postby steve123 » Sun Feb 16, 2020 6:22 pm

I am trying to recall what exactly I was doing in this particular case. I know I could always make it crash by editing the LCS. I posted this problem separately and it sounds like it is a known issue. A recent version (19541) doesn't crash when you do that now so I think this bug has been fixed. Though, when you add an LCS now, it simply creates it and then you have to select it and edit it.

I've had it crash other times. Seems to be quite frequent. Worst things at the moment are the corruption of the expression constraints when you do an undo when editing a sketch and I ran into an issue where I cannot cut a body from another body for some reason. I created separate threads for these.

If I can make the crash repeatable, I'll post something.
chrisb
Posts: 24234
Joined: Tue Mar 17, 2015 9:14 am

Re: [?BUG] Addon Manager hangs in 0.19 on MacOS and possibly related issues.

Postby chrisb » Sun Feb 16, 2020 7:16 pm

Realthunder has submitted a pull request concerning expressions today. It wasn't about the undo, but you may wait with your tests until the PR occurs in the distribution.