[SOLVED] Constant 100% CPU Usage after compile

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!
Post Reply
User avatar
hhassey
Posts: 246
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

[SOLVED] Constant 100% CPU Usage after compile

Post by hhassey »

OS: Debian GNU/Linux 11 (bullseye) (GNOME/gnome)
Word size of FreeCAD: 64-bit
Version: 0.20.27268 (Git)
Build type: Unknown
Branch: master
Hash: ca691bce905c4cbbb8fa0f473dd0d8451e6fba2e
Python version: 3.9.2
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.1
Locale: English/United States (en_US)

Hello I Compile FreeCAD very frequently, it is a great program!!!

As of today, I compiled again, and after compiling Just by starting FreeCAD even without activating any workbench the program starts using one CPU core at 100% constantly , and when using the program it is running slow.

This was not happening before compiling.Probably my last compile was a couple of weeks ago. Any ideas what is going on?
Last edited by hhassey on Thu Jan 27, 2022 6:53 pm, edited 3 times in total.
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: Constant 100% CPU Usage after compile

Post by TheMarkster »

User avatar
hhassey
Posts: 246
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Constant 100% CPU Usage after compile

Post by hhassey »

Fantastic. Thanks to the awesome Devs out there!!!

Problem fixed in Version: 0.20.27271 (Git)

OS: Debian GNU/Linux 11 (bullseye) (GNOME/gnome)
Word size of FreeCAD: 64-bit
Version: 0.20.27271 (Git)
Build type: Unknown
Branch: master
Hash: f045a0b6f12ec82c0ddb44570c81dfcc3940af0d
Python version: 3.9.2
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.1
Locale: English/United States (en_US)
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: [FIXED] Constant 100% CPU Usage after compile

Post by TheMarkster »

Try opening the addon manager and see if the problem comes back after closing it.
User avatar
hhassey
Posts: 246
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Constant 100% CPU Usage after compile

Post by hhassey »

Yes, I confirm, the problem comes back, right after the add on manager loads I don't even have to close it. When I close it though, the 100%cpu usage problem stays.

¿How did you known?

Does this solved it?

Code: Select all

commit bfada57b0fa3722c36039d0f2cd0b5ad0503999d
Author: Chris Hennes <chennes@pioneerlibrarysystem.org>
Date:   Wed Jan 26 22:02:08 2022 -0600

    Addon Manager: Refactor to eliminate extra event loop
User avatar
chennes
Veteran
Posts: 3884
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Constant 100% CPU Usage after compile

Post by chennes »

Yes, that commit solves the underlying problem -- the first commit was an "emergency" fix so this didn't happen to everyone compiling all day. I think that if you test the later commit you'll find the problem resolved, even when loading the Addon Manager.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
hhassey
Posts: 246
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Constant 100% CPU Usage after compile

Post by hhassey »

Yes I just compiled and tested, Everything seems ok!!!!

FreeCAD and it's community is awesome!
Post Reply