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:

Re: FreeCAD slower startup

Post by openBrain »

chennes wrote: Wed Jan 26, 2022 7:18 pm 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.
Can confirm that this commit is creating both loading slowness and CPU 100% usage on one core. Looks like at some time it's blocked on a network call or whatever.
Will try to test fix commit.
user1234
Veteran
Posts: 3330
Joined: Mon Jul 11, 2016 5:08 pm

Re: FreeCAD slower startup

Post by user1234 »

chennes wrote: Thu Jan 27, 2022 12:44 am When you have a moment, can you please test git commit f045a0b6f12ec82c0ddb44570c81dfcc3940af0d?
Yes, this commit starts normal. Thanks!

Greetings
user1234
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: FreeCAD slower startup

Post by openBrain »

user1234 wrote: Thu Jan 27, 2022 12:12 pm Yes, this commit starts normal. Thanks!
Does it still use 100% CPU core on idle when running ?
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 »

openBrain wrote: Thu Jan 27, 2022 1:41 pm Does it still use 100% CPU core on idle when running ?
That commit probably does -- that was the "emergency" part of the fix. The rest of the refactor took a little longer, but I pushed it last night, in git commit bfada57b0. That should eliminate the extra CPU usage.
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 1:46 pm That commit probably does -- that was the "emergency" part of the fix. The rest of the refactor took a little longer, but I pushed it last night, in git commit bfada57b0. That should eliminate the extra CPU usage.
Everything back to normal (at least apparently :P) with this commit. Thx.
PS : just saw I mistook on my previous post. Did not see that the pointed commit already was in the master. :oops:
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: FreeCAD slower startup

Post by TheMarkster »

user1234
Veteran
Posts: 3330
Joined: Mon Jul 11, 2016 5:08 pm

Re: FreeCAD slower startup

Post by user1234 »

openBrain wrote: Thu Jan 27, 2022 1:41 pm Does it still use 100% CPU core on idle when running ?
While starting, yes, but i edited the preferences, to load all modules at start. While running, no (not yet).

Anyway, it seems to be solved.

Greetings
user1234
Post Reply