Ticket #4186: hang on union of objects
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Ticket #4186: hang on union of objects
Discussion thread for issue #4186: hang on union of objects
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Ticket #4186: hang on union of objects
I can reproduce by
loading the file
switching to Part WB
Highlighting 'array' and 'cut' in the tree
Running Part_Union
Result: FC just hangs. Also I can't exit the operation.
Starting FC from the terminal shows no errors or output that indicates FC is having issues.
OS: Manjaro Linux (KDE//usr/share/xsessions/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23237 (Git)
Build type: Release
Branch: master
Hash: 71726a11d0844f263dad636fb98bb996a479e007
Python version: 3.8.6
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)
loading the file
switching to Part WB
Highlighting 'array' and 'cut' in the tree
Running Part_Union
Result: FC just hangs. Also I can't exit the operation.
Starting FC from the terminal shows no errors or output that indicates FC is having issues.
OS: Manjaro Linux (KDE//usr/share/xsessions/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23237 (Git)
Build type: Release
Branch: master
Hash: 71726a11d0844f263dad636fb98bb996a479e007
Python version: 3.8.6
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Ticket #4186: hang on union of objects
Those are 1600 unfused overlapping cylinders... Cut with a half sphere... What is a reasonable timeframe for that? If I set Number polar to 4 (16 copies) everything works as expected.
Re: Ticket #4186: hang on union of objects
lol, good point. Nevertheless, it would be nice to know what's going on though and to be able to cancel the operation.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Ticket #4186: hang on union of objects
1.1 GB of RAM and 1 core at 100%. Looks like OCC has control now and unless there is some mechanism there to check the outer world from time to time I don't see how can that be monitored/canceled.
I will wait to see if and when will that finish.
I will wait to see if and when will that finish.
Re: Ticket #4186: hang on union of objects
Is it still running??



Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Ticket #4186: hang on union of objects
Nah, 13h were enough. Since there was no notable change in used memory I had no way to distinguish if something was happening or it was stuck in some infinite loop. I thought to make an experiment and increase copies, record times for recalculation and make a prediction for the expected time but did not... yet 

Re: Ticket #4186: hang on union of objects
13h ?!? Jeebuz!kisolre wrote: ↑Fri Dec 11, 2020 1:17 pm Nah, 13h were enough. Since there was no notable change in used memory I had no way to distinguish if something was happening or it was stuck in some infinite loop. I thought to make an experiment and increase copies, record times for recalculation and make a prediction for the expected time but did not... yet![]()
To you knoweldge, are there other OCC commands that FC monitors for this type of response and offers another solution for this type of behavior?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Ticket #4186: hang on union of objects
My knowledge is quite limited here

FreeCAD has such mechanism to cancel the recompute, which I assume works between OCCT operation. Shouldn't there be also such mechanism in OCCT?
Re: Ticket #4186: hang on union of objects
The union would be invalid anyway, so I started with setting Fuse=true, alas, with a similar result. I forgot the running process, until my browser told me to close, because the system was running out of memory.
However, from what I see, this is not a bug, the task is simply too complex to be finished within a reasonable time and space frame.
So I would either close change the ticket to a feature request: "Implement a possibility to cancel long running tasks".
Perhaps such ticket exists already, at least it was discussed before.
However, from what I see, this is not a bug, the task is simply too complex to be finished within a reasonable time and space frame.
So I would either close change the ticket to a feature request: "Implement a possibility to cancel long running tasks".
Perhaps such ticket exists already, at least it was discussed before.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.