View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004543 | FreeCAD | Bug | public | 2021-01-25 02:37 | 2021-12-29 03:49 |
Reporter | uwestoehr | Assigned To | chennes | ||
Priority | high | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Target Version | 0.20 | Fixed in Version | 0.19 | ||
Summary | 0004543: FreeCAD crashes when OCC fails with fillets and chamfers | ||||
Description | When working with fillet and chamfers, FreeCAD crashes quite frequently. The reason is that it somehow does not catch OCC errors. In case OCC fails to compute a fillet FC must issue a dialog or similar but in no case crash. | ||||
Steps To Reproduce | Take this example file: https://forum.freecadweb.org/download/file.php?id=140130 and follow the steps in https://forum.freecadweb.org/viewtopic.php?f=3&t=54353#p467126 | ||||
Additional Information | Forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=54353 | ||||
Tags | Chamfer, crash, fillet, OCC Bug, upstream | ||||
FreeCAD Information | OS: Windows 10 Version 2009 Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.23704 (Git) Build type: Release Branch: master Hash: 33ec7fb3e72d6817e7f09216f9b334e5defa9443 Python version: 3.8.6+ Qt version: 5.15.1 Coin version: 4.0.1 OCC version: 7.5.0 Locale: German/Germany (de_DE) | ||||
has duplicate | 0003310 | closed | chennes | FreeCAD | Application crash when adding a fillet on an edge (SIGSEGV) (Target OCC7.5) |
has duplicate | 0003970 | closed | chennes | PartDesign | crash when adding chamfer to an additive primitive |
has duplicate | 0004076 | closed | chennes | FreeCAD | Freecad crashes when using Part Design Chamfer tool on a feature. |
has duplicate | 0004078 | closed | chennes | FreeCAD | Crash when applying a fillet on a arc. |
has duplicate | 0004291 | closed | chennes | FreeCAD | Freecad crashes when creating filet |
has duplicate | 0004319 | closed | chennes | PartDesign | Segfault removing edge from sketch |
has duplicate | 0004487 | closed | chennes | PartDesign | Crash on changing Fillet Radius (OCC issue to be retested with OCC > 7.5) |
has duplicate | 0004518 | closed | chennes | PartDesign | Segfault in some models when making chamfer or fillet (on macos) |
has duplicate | 0003142 | closed | chennes | PartDesign | Crash creating fillets on sweep (OCC bug) |
has duplicate | 0004321 | closed | chennes | FreeCAD | Crash program during chamfer |
|
As far as I can tell the only way to resolve this right now is to patch OCC. See the Forum discussion linked above for details and discussion. |
|
@uwestoehr Please cross-reference this ticket with https://forum.freecadweb.org/viewtopic.php?f=10&t=20264 to make sure it isn't a dupe? Tagged this ticket accordingly. |
|
Functionally I think that ALL of these tickets are the same basic problem:
|
|
> Please cross-reference this ticket What should I do? This bug is real, verified as OCC bug by @chennes and he has a fix for it. |
|
@chennes please advise. Does the OCC patch work? If so then can we proceed to close said tickets ? |
|
It does fix this particular bug, but I don't know the local policy here: the fix is not in the official OCC release, but is being applied as a patch by various package maintainers. So if that counts as "resolved", then yes :). I have not yet verified that it fixes all the previous bugs, they will have to be tested individually. Doing that testing is on my to-do list: if it's a priority item I can bump it up to the top. |
|
I have now tested the above bugs and added a comment to each one with the result. The upshot is that this fix also fixes all of them that I was able to test. |
|
I'm adding an extra file for testing when this is resolved. Trying to use fillet feature on any of the front edges, or the front face of the body causes latest version to crash. More info in this forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=55542 Please note at the beginning of the thread older version is mentioned, but at the end the latest (24047) has been tested behaving similarly. My FreeCAD info: OS: Windows 10 (10.0) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.24047 (Git) Build type: Release Branch: master Hash: 95fcaccfd807e321383be684b70a1e87f42915fe Python version: 3.6.8 Qt version: 5.12.1 Coin version: 4.0.0a OCC version: 7.3.0 Locale: English/United States (en_US) |
|
Sorry, I forgot to attach the file in the previous comment. The screenshot shows the face that when selected crashes FreeCAD is fillet in PartDesign is clicked. Sometimes it doesn't crash the first time. However, if it is cancelled and then retried it crashes. |
|
@chennes has created a downstream patch that fixes the crash. It is slowly being integrated in to downstream packages (ATM libpack is the only one but more will follow). This issue is therefore being marked as resolved. It will be closed once all packages are patched or when (if) upstream merges. |
|
This patch has been merged into OpenCASCADE 7.6, and the patch for earlier OCCT versions has been incorporated into all packages of FreeCAD 0.19.3 that I am aware of. |
Date Modified | Username | Field | Change |
---|---|---|---|
2021-01-25 02:37 | uwestoehr | New Issue | |
2021-01-26 17:45 | chennes | Note Added: 0015222 | |
2021-01-31 11:44 | Kunda1 | Tag Attached: OCC Bug | |
2021-01-31 11:44 | Kunda1 | Tag Attached: upstream | |
2021-01-31 11:46 | Kunda1 | Status | new => feedback |
2021-01-31 11:46 | Kunda1 | Note Added: 0015235 | |
2021-01-31 17:19 | chennes | Note Added: 0015246 | |
2021-01-31 22:51 | uwestoehr | Note Added: 0015248 | |
2021-01-31 22:51 | uwestoehr | Status | feedback => new |
2021-02-03 16:51 | Kunda1 | Tag Attached: fillet | |
2021-02-03 16:56 | Kunda1 | Tag Attached: crash | |
2021-02-03 16:59 | Kunda1 | Tag Attached: Chamfer | |
2021-02-03 17:00 | Kunda1 | Note Added: 0015252 | |
2021-02-03 18:08 | chennes | Note Added: 0015253 | |
2021-02-05 19:49 | chennes | Note Added: 0015276 | |
2021-02-06 06:49 | abdullah | Target Version | => 0.20 |
2021-02-15 01:43 | flynth | Note Added: 0015343 | |
2021-02-15 01:43 | flynth | Note Edited: 0015343 | |
2021-02-15 01:46 | flynth | Note Added: 0015344 | |
2021-02-15 01:46 | flynth | File Added: broken.FCStd | |
2021-02-15 01:46 | flynth | File Added: 2.png | |
2021-02-27 13:24 | Kunda1 | Relationship added | has duplicate 0003310 |
2021-02-27 13:25 | Kunda1 | Relationship added | has duplicate 0003970 |
2021-02-27 13:25 | Kunda1 | Relationship added | has duplicate 0004076 |
2021-02-27 13:27 | Kunda1 | Relationship added | has duplicate 0004078 |
2021-02-27 13:29 | Kunda1 | Relationship added | has duplicate 0004291 |
2021-02-27 13:30 | Kunda1 | Relationship added | has duplicate 0004319 |
2021-02-27 13:31 | Kunda1 | Relationship added | has duplicate 0004487 |
2021-02-27 13:32 | Kunda1 | Relationship added | has duplicate 0004518 |
2021-02-27 13:33 | Kunda1 | Relationship added | has duplicate 0003142 |
2021-02-27 13:35 | Kunda1 | Assigned To | => chennes |
2021-02-27 13:35 | Kunda1 | Status | new => resolved |
2021-02-27 13:35 | Kunda1 | Resolution | open => fixed |
2021-02-27 13:35 | Kunda1 | Fixed in Version | => 0.20 |
2021-02-27 13:35 | Kunda1 | Note Added: 0015454 | |
2021-03-16 21:12 | Kunda1 | Relationship added | parent of 0004321 |
2021-03-16 21:13 | Kunda1 | Relationship replaced | has duplicate 0004321 |
2021-12-29 03:49 | chennes | Status | resolved => closed |
2021-12-29 03:49 | chennes | Fixed in Version | 0.20 => 0.19 |
2021-12-29 03:49 | chennes | Note Added: 0016140 |