PD Chamfer is SegFaulting Freecad

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!
User avatar
Shalmeneser
Veteran
Posts: 9475
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: PD Chamfer is SegFaulting Freecad

Post by Shalmeneser »

Method :
1) Select any edge
2) Chamfer tool
3) Change dimension
4) Add your desired edge
5) Suppress the 1st edge

Like @papyblaise, I would do the fillets inside the sketch : no more TNP.
You can also do 1/2 of the form then mirror it.

And please provide MWE = minimal working example
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: PD Chamfer is SegFaulting Freecad

Post by GeneFC »

A really useful improvement to FreeCAD would be a change to "Sorry Dave, I can't do that" when opening an operation that contains an unusable default condition. The user would be prompted to make adjustments instead of dealing with a crash.

The latest approach of "open the operation before selecting the target element" is a kludge fix at best.

This may not be easy, but it would be a lot more worthwhile than diddling with the arrangement of icons and toolbars. :mrgreen:

Gene
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: PD Chamfer is SegFaulting Freecad

Post by TheMarkster »

GeneFC wrote: Sat Apr 01, 2023 2:52 pm A really useful improvement to FreeCAD would be a change to "Sorry Dave, I can't do that" when opening an operation that contains an unusable default condition. The user would be prompted to make adjustments instead of dealing with a crash.

The latest approach of "open the operation before selecting the target element" is a kludge fix at best.

This may not be easy, but it would be a lot more worthwhile than diddling with the arrangement of icons and toolbars. :mrgreen:

Gene
If the crash is happening during the call to the OCCT function, then you need to be able to detect you will get a crash before making the call, which would be very challenging to do. If the call to OCCT was done from within a new subprocess, then perhaps FreeCAD could recover from the crash, but I don't know if even that would work. At best, it would slow things down considerably, I would think, not to mention greatly complicating the code.
user1234
Veteran
Posts: 3340
Joined: Mon Jul 11, 2016 5:08 pm

Re: PD Chamfer is SegFaulting Freecad

Post by user1234 »

I tried the file from @papyblaise and get no crash. The download from dropbox does not work. As other said, a MWE would be good, also which edge does not work (screenshot), because the model have 90 edges.


Code: Select all

OS: Debian GNU/Linux 11 (bullseye) (X-Cinnamon/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.21.0.32656 (Git)
Build type: Release
Branch: master
Hash: fa3ee342804f3658088b121b10a0ae0b981c49fa
Python 3.9.2, Qt 5.15.2, Coin 4.0.0, Vtk 9.0.1, OCC 7.7.1
Locale: English/United States (en_US)
Installed mods: 
  * QuickMeasure 2022.10.28
  * Assembly4 0.12.6
  * CurvedShapes 1.0.4
  * Curves 0.6.8



Greetings
user1234
leoheck
Veteran
Posts: 1223
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: PD Chamfer is SegFaulting Freecad

Post by leoheck »

papyblaise wrote: Sat Apr 01, 2023 7:24 am I don't have a crystal ball to see which edge is the problem :!:
I would recommend you to look inside the file then, you can use Freecad to open it.
leoheck
Veteran
Posts: 1223
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: PD Chamfer is SegFaulting Freecad

Post by leoheck »

Shalmeneser wrote: Sat Apr 01, 2023 10:04 am Method :
1) Select any edge
2) Chamfer tool
3) Change dimension
4) Add your desired edge
5) Suppress the 1st edge

Like @papyblaise, I would do the fillets inside the sketch : no more TNP.
You can also do 1/2 of the form then mirror it.

And please provide MWE = minimal working example
Thanks, I am not looking for a workaround.
I am reporting here Freecad is crashing because it is failing to do something instead of telling the user it is not possible.

You can use the file I shared, if it is not good enough you could try to replicate the issue from your side.
leoheck
Veteran
Posts: 1223
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: PD Chamfer is SegFaulting Freecad

Post by leoheck »

@TheMarkster the same crash does not affect the PD Fillet tool, if I am no mistaken. But I will have to double check. Does this give a hint on where/why this happens?
Last edited by leoheck on Sun Apr 02, 2023 4:10 am, edited 1 time in total.
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: PD Chamfer is SegFaulting Freecad

Post by adrianinsaval »

leoheck wrote: Sat Apr 01, 2023 12:44 am This is good. Actually, I realized this is already the New Chamfer tool, then this Seg Fault is a new bug introduced, for sure.
not for sure unless you have tested on an earlier version and it worked...
leoheck
Veteran
Posts: 1223
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: PD Chamfer is SegFaulting Freecad

Post by leoheck »

adrianinsaval wrote: Sat Apr 01, 2023 10:43 pm not for sure unless you have tested on an earlier version and it worked...
Indeed, but I don't have a crash like that (with chamfers) since a long time ago. More than a year, maybe.
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: PD Chamfer is SegFaulting Freecad

Post by adrianinsaval »

I can confirm the crash happens, please make an issue on github, attach the file and add a screenshot showing which edge triggers the issues.
Post Reply