View Issue Details

IDProjectCategoryView StatusLast Update
0004543FreeCADBugpublic2021-02-27 13:35
Reporteruwestoehr Assigned Tochennes  
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Target Version0.20Fixed in Version0.20 
Summary0004543: FreeCAD crashes when OCC fails with fillets and chamfers
DescriptionWhen 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 ReproduceTake 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 InformationForum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=54353
TagsChamfer, crash, fillet, OCC Bug, upstream
FreeCAD InformationOS: 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)

Relationships

has duplicate 0003310 resolvedchennes FreeCAD Application crash when adding a fillet on an edge (SIGSEGV) (Target OCC7.5) 
has duplicate 0003970 resolvedchennes PartDesign crash when adding chamfer to an additive primitive 
has duplicate 0004076 resolvedchennes FreeCAD Freecad crashes when using Part Design Chamfer tool on a feature. 
has duplicate 0004078 resolvedchennes FreeCAD Crash when applying a fillet on a arc. 
has duplicate 0004291 resolvedchennes FreeCAD Freecad crashes when creating filet 
has duplicate 0004319 resolvedchennes PartDesign Segfault removing edge from sketch 
has duplicate 0004487 resolvedchennes PartDesign Crash on changing Fillet Radius (OCC issue to be retested with OCC > 7.5) 
has duplicate 0004518 resolvedchennes PartDesign Segfault in some models when making chamfer or fillet (on macos) 
has duplicate 0003142 resolvedchennes PartDesign Crash creating fillets on sweep (OCC bug) 

Activities

chennes

2021-01-26 17:45

developer   ~0015222

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.

Kunda1

2021-01-31 11:46

administrator   ~0015235

@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.

chennes

2021-01-31 17:19

developer   ~0015246

Functionally I think that ALL of these tickets are the same basic problem:
  • issue 0003142 - Crash creating fillets on sweep (OCC bug)
  • issue 0003310 - Application crash when adding a fillet on an edge (SIGSEGV) (Target OCC7.5)
  • issue 0003970 - crash when adding chamfer to an additive primitive
  • issue 0004076 - Freecad crashes when using Part Design Chamfer tool on a feature.
  • issue 0004078 - Crash when applying a fillet on a arc.
  • issue 0004291 - Freecad crashes when creating filet
  • issue 0004319 - Segfault removing edge from sketch
  • issue 0004321 - Crash program during chamfer
  • issue 0004487 - Crash on changing Fillet Radius (OCC issue to be retested witj OCC > 7.5)
  • issue 0004518 - Segfault in some models when making chamfer or fillet (on macos)
  • issue 0004543 - FreeCAD crashes when OCC fails with fillets and chamfers

uwestoehr

2021-01-31 22:51

developer   ~0015248

> 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.

Kunda1

2021-02-03 17:00

administrator   ~0015252

@chennes please advise. Does the OCC patch work? If so then can we proceed to close said tickets ?

chennes

2021-02-03 18:08

developer   ~0015253

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.

chennes

2021-02-05 19:49

developer   ~0015276

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.

flynth

2021-02-15 01:43

reporter   ~0015343

Last edited: 2021-02-15 01:43

View 2 revisions

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)

flynth

2021-02-15 01:46

reporter   ~0015344

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.
broken.FCStd (21,393 bytes)
2.png (229,188 bytes)   
2.png (229,188 bytes)   

Kunda1

2021-02-27 13:35

administrator   ~0015454

@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.

Issue History

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 View Revisions
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