FC hangs with 50% CPU usage upon new Sketch creation

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!
Post Reply
NoTrees
Posts: 19
Joined: Sun Oct 22, 2017 8:34 pm
Location: Upper St Clair, PA

FC hangs with 50% CPU usage upon new Sketch creation

Post by NoTrees »

OS: Windows XP
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.16.6706 (Git)
Build type: Release
Branch: releases/FreeCAD-0-16
Hash: f86a4e411ff7848dea98d7242f43b7774bee8fa0
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

Process that creates the issue:
Start FreeCAD, workbench: PartDesign
>File/New
>Create Sketch
>Choose Orientation: {select any of the three options, Reverse unchecked, 0 mm offset} > OK
FC CPU usage shoots to 50% for several minutes, and display hangs, busy hourglass, other applications work OK
Same issue when trying to Create New Sketch in a functional drawing
Seems like all other normal functions/processes work with existing drawings.

No logs created (at least none found)

Suggestions?

Thanks!
renatorivo
Veteran
Posts: 2611
Joined: Tue Feb 21, 2012 8:07 pm
Location: Torino - Italy

Re: FC hangs with 50% CPU usage upon new Sketch creation

Post by renatorivo »

NoTrees wrote: Sun Oct 22, 2017 8:59 pm Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
This may be useful: https://forum.freecadweb.org/viewtopic.php?t=13619
You can search for other posts by typing "32bit"
NoTrees wrote: Sun Oct 22, 2017 8:59 pm No logs created (at least none found)
The log file should be here
file-log.png
file-log.png (21.92 KiB) Viewed 1250 times
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

Re: FC hangs with 50% CPU usage upon new Sketch creation

Post by chrisb »

Some things to consider:
- Do you really need the 32 bit version? There are not many users out there to reproduce your problem, but I guess this basic thing would have been reported before.
- Did you watch the Windoze Task Manager? Is it really FreeCAD? Watch the paging. It is possible that your system starts swapping to disk.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: FC hangs with 50% CPU usage upon new Sketch creation

Post by GeneFC »

chrisb wrote: Mon Oct 23, 2017 5:10 pm Do you really need the 32 bit version?
According to

https://github.com/FreeCAD/FreeCAD/releases

version 0.16.xxxx support for Windows XP is 32 bit only. I do not believe there is any support for Windows XP in version 0.17.xxxx

Gene
NoTrees
Posts: 19
Joined: Sun Oct 22, 2017 8:34 pm
Location: Upper St Clair, PA

Re: FC hangs with 50% CPU usage upon new Sketch creation

Post by NoTrees »

Failed to specifically mention that the setup (yes, it is XP!) has been working for about 2 years now! Existing files display and navigate fine, until i Create New Sketch. Problem just began last week.
Found the folder: user/AppData/FreeCAD but it does not contain a log file.

TaskManager 'correctly' shows FreeCAD as the culprit; kill it and CPU goes to 2%. Perhaps next step should be to reload the program.
renatorivo
Veteran
Posts: 2611
Joined: Tue Feb 21, 2012 8:07 pm
Location: Torino - Italy

Re: FC hangs with 50% CPU usage upon new Sketch creation

Post by renatorivo »

NoTrees wrote: Tue Oct 24, 2017 2:32 am Found the folder: user/AppData/FreeCAD but it does not contain a log file.
Run

Code: Select all

C:\Program Files\FreeCAD 0.16\bin\FreeCAD.exe --h
avvio.png
avvio.png (6.41 KiB) Viewed 1173 times
you can see where the log file is created
avvio1.png
avvio1.png (17.41 KiB) Viewed 1173 times
NoTrees
Posts: 19
Joined: Sun Oct 22, 2017 8:34 pm
Location: Upper St Clair, PA

Re: FC hangs with 50% CPU usage upon new Sketch creation

Post by NoTrees »

Thanks Renatorivo!! Appreciate your assistance and suggestions!

Removed FC, then reloaded it. No success; same issue.

Looked at preferences, and saw that Display / Sketcher / Grid Size was set to 1 micrometer!! (Oh, the horror! no clue how that happened!)

Changed it to 1 mm, and Sketcher appears to work as normal!

If I ever want to draw/build anything sub-microscopic, I will update my 1.66GHz system to something that can handle it!!

Thanks!
Post Reply