FreeCAD slower startup

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

FreeCAD slower startup

Post by openBrain »

I just updated today from daily PPA and startup (with splash screen) seems to take ages compared to yesterday.
Roughly it's 3~5x longer that starting my own build based on yesterday master.

Am I the only one concerned ?
---
OS: Ubuntu 21.04 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.27238
Build type: Release
Branch: master
Hash: 4acef3f14fe694f28f7935108d36341b8df83a39
Python version: 3.9.5
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.2
Locale: French/France (fr_FR)
user1234
Veteran
Posts: 3328
Joined: Mon Jul 11, 2016 5:08 pm

Re: FreeCAD slower startup

Post by user1234 »

Can confirm. In the log there is nothing unusual.

Code: Select all

OS: Debian GNU/Linux 11 (bullseye) (X-Cinnamon/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.20.27241 (Git)
Build type: Release
Branch: master
Hash: 2cb478fd66dc76d91695dacff15fd764e80c8c62
Python version: 3.9.2
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.6.0
Locale: English/United States (en_US)
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: FreeCAD slower startup

Post by openBrain »

wmayer wrote: Ping
@wmayer : may it be due to your big commit about C++11 cleanup?
user1234
Veteran
Posts: 3328
Joined: Mon Jul 11, 2016 5:08 pm

Re: FreeCAD slower startup

Post by user1234 »

Two hours ago there are some more commits made about that. I compile and test it. If that behavior is the same, then i make a test compile with 0.20.27236 and one 0.20.27235 and compare them.

Greetings
user1234
User avatar
chennes
Veteran
Posts: 3877
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: FreeCAD slower startup

Post by chennes »

Better odds that it's my fault -- I wonder if it's the initialization process of the QNetworkAccessManager used by the Addon Manager. Let me poke at it.

ETA: That's git commit 2b0a4dc64339266b2e0b45fb974f9ab105fde1ae if someone else wants to look. The QNAM runs on its own thread, so I don't think it should block startup, but maybe I've screwed something up.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
user1234
Veteran
Posts: 3328
Joined: Mon Jul 11, 2016 5:08 pm

Re: FreeCAD slower startup

Post by user1234 »

chennes wrote: Wed Jan 26, 2022 7:18 pm ETA: That's git commit 2b0a4dc64339266b2e0b45fb974f9ab105fde1ae if someone else wants to look.
Yes, this commit has the loading issue. The commit before starts normal.

Greetings
user1234
User avatar
chennes
Veteran
Posts: 3877
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: FreeCAD slower startup

Post by chennes »

user1234 wrote: Wed Jan 26, 2022 8:15 pm Yes, this commit has the loading issue.
Thanks for testing -- I'll refactor the Addon Manager's initialization to ensure that happens in the background.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
chennes
Veteran
Posts: 3877
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: FreeCAD slower startup

Post by chennes »

OK, I refactored to ensure the Network Manager didn't get created until first use: I wasn't experiencing this slowdown on my machine, though so I can't be certain this addresses the issue. When you have a moment, can you please test git commit f045a0b6f12ec82c0ddb44570c81dfcc3940af0d?
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: FreeCAD slower startup

Post by openBrain »

chennes wrote: Thu Jan 27, 2022 12:44 am OK, I refactored to ensure the Network Manager didn't get created until first use: I wasn't experiencing this slowdown on my machine, though so I can't be certain this addresses the issue. When you have a moment, can you please test git commit f045a0b6f12ec82c0ddb44570c81dfcc3940af0d?
Could you push as a draft PR ? So that I don't have to deal with fetching (yet another :P) remote.
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: FreeCAD slower startup

Post by openBrain »

I seems to have another problem with this build. As soon as started without doing anything, it uses 100% of a CPU core permanently.
Will try to dig on this.
Post Reply