PD Chamfer is SegFaulting Freecad
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
- Shalmeneser
- Veteran
- Posts: 9560
- Joined: Wed Dec 23, 2020 12:04 am
- Location: Fr
Re: PD Chamfer is SegFaulting Freecad
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
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
Re: PD Chamfer is SegFaulting Freecad
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.
Gene
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.
Gene
-
- Veteran
- Posts: 5513
- Joined: Thu Apr 05, 2018 1:53 am
Re: PD Chamfer is SegFaulting Freecad
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.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.
Gene
Re: PD Chamfer is SegFaulting Freecad
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.
Greetings
user1234
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
Re: PD Chamfer is SegFaulting Freecad
I would recommend you to look inside the file then, you can use Freecad to open it.papyblaise wrote: ↑Sat Apr 01, 2023 7:24 am I don't have a crystal ball to see which edge is the problem
Re: PD Chamfer is SegFaulting Freecad
Thanks, I am not looking for a workaround.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
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.
Re: PD Chamfer is SegFaulting Freecad
@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.
- adrianinsaval
- Veteran
- Posts: 5551
- Joined: Thu Apr 05, 2018 5:15 pm
Re: PD Chamfer is SegFaulting Freecad
Indeed, but I don't have a crash like that (with chamfers) since a long time ago. More than a year, maybe.adrianinsaval wrote: ↑Sat Apr 01, 2023 10:43 pm not for sure unless you have tested on an earlier version and it worked...
- adrianinsaval
- Veteran
- Posts: 5551
- Joined: Thu Apr 05, 2018 5:15 pm
Re: PD Chamfer is SegFaulting Freecad
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.