FreeCAD (snap) crashes when deleting a PD feature

Report observations made with the new Toponaming branch.
Post Reply
ngocminhdao88
Posts: 49
Joined: Wed Nov 11, 2020 10:43 am

FreeCAD (snap) crashes when deleting a PD feature

Post by ngocminhdao88 »

My FreeCAD crashes every time i try to delete a feature in PartDesign workbench. Can someone on Snap version try my file please?

My FreeCAD info;
OS: Ubuntu Core 20 (i3/i3)
Word size of FreeCAD: 64-bit
Version: 2022.531.14555 (Git shallow)
Build type: Release
Branch: (HEAD detached at 2022.05.31-edge)
Hash: 36367cecc18492fec00ee01ecb2214c79a326f76
Python version: 3.8.10
Qt version: 5.15.3
Coin version: 4.0.1
OCC version: 7.6.2
Locale: English/United States (en_US)
Attachments
FreeCAD.log
(25.74 KiB) Downloaded 6 times
din_clip.FCStd
(81.42 KiB) Downloaded 8 times
freecad_troublesome_features.png
freecad_troublesome_features.png (35.3 KiB) Viewed 805 times
User avatar
bambuko
Veteran
Posts: 1549
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: FreeCAD (snap) crashes when deleting a PD feature

Post by bambuko »

Unless someone else does it earlier - I will try your file tomorrow
User avatar
bambuko
Veteran
Posts: 1549
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: FreeCAD (snap) crashes when deleting a PD feature

Post by bambuko »

ngocminhdao88 wrote: Fri Jun 03, 2022 8:15 pm Can someone on Snap version try my file please?
I have tried it on LinkStage3 snap (and it indeed crashes when you try to delete either of the pockets).
The problem seems to be with shapebinders?
if you delete shapebinders first, you can delete the two pockets OK without FreeCAD crashing.
I don't understand why is it so? but will play with it to see if I can work it out...

Yet, when I recreate what you did, everything is perfectly fine and I can delete either or both pockets with no problems???
Don't know what's the difference between your and my file? but it must be something you did when creating shapebinders?
file for your examination:
din_clip(bambuko).FCStd
(78.74 KiB) Downloaded 11 times

Code: Select all

OS: Ubuntu Core 20 (Pantheon/pantheon)
Word size of FreeCAD: 64-bit
Version: 2022.531.14555 (Git shallow)
Build type: Release
Branch: (HEAD detached at 2022.05.31-edge)
Hash: 36367cecc18492fec00ee01ecb2214c79a326f76
Python version: 3.8.10
Qt version: 5.15.3
Coin version: 4.0.1
OCC version: 7.6.2
Locale: English/United Kingdom (en_GB)
I then tried it in Master snap (and it is perfectly OK):

Code: Select all

OS: Ubuntu Core 20 (Pantheon/pantheon)
Word size of FreeCAD: 64-bit
Version: 0.20.29016 (Git) Snap 54
Build type: Release
Branch: master
Hash: 704feadc7cd32567408f12c3721c1e3e517f8b4b
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, OCC 7.6.2
Locale: English/United Kingdom (en_GB)
ngocminhdao88
Posts: 49
Joined: Wed Nov 11, 2020 10:43 am

Re: FreeCAD (snap) crashes when deleting a PD feature

Post by ngocminhdao88 »

Thanks for trying bambuko.

I tried your file and it works fine. I revert to the AppImage version (released on 30.4.2022) and redo the work. No problem there.

I did nothing special about the shapebinders. Just clicked on a circle of a sketch and activated the hole or pocket command in PartDesign Workbench.

I will stay on older release for now, since work is more important than trying to be on edge but don't know if model breaks tomorrow or not.
User avatar
bambuko
Veteran
Posts: 1549
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: FreeCAD (snap) crashes when deleting a PD feature

Post by bambuko »

ngocminhdao88 wrote: Sat Jun 04, 2022 5:23 pm I did nothing special about the shapebinders. Just clicked on a circle of a sketch and activated the hole or pocket command in PartDesign Workbench.
That could be a clue...
I am assuming reading your explanation that you have relied on Linkstage3 "auto" shapebinder creation?
I, on the other hand, have manually created shapebinders, before using them.

So if this is the case? I think we should raise it with realthunder as potential bug?
ngocminhdao88
Posts: 49
Joined: Wed Nov 11, 2020 10:43 am

Re: FreeCAD (snap) crashes when deleting a PD feature

Post by ngocminhdao88 »

Same workflow with older version works fine
OS: Manjaro Linux (i3/i3)
Word size of FreeCAD: 64-bit
Version: 2022.430.26244 +4758 (Git)
Build type: Release
Branch: LinkDaily
Hash: b024b876480a533018fdc702145e9e38f8c54ba6
Python version: 3.9.12
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/United States (en_US)
User avatar
bambuko
Veteran
Posts: 1549
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: FreeCAD (snap) crashes when deleting a PD feature

Post by bambuko »

I have tried again "my" version of your file and it works fine if you delete pocket001 before deleting pocket, but doing it in reverse order still crashes FreeCAD.

I suspect some dependency loop? but Graphviz doesn't work with my snap version, so will have to sort it out first before confirming (need to find a thread on the forum where graphviz and snap were discussed)
User avatar
ppd
Posts: 106
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: FreeCAD (snap) crashes when deleting a PD feature

Post by ppd »

bambuko wrote: Sun Jun 05, 2022 7:05 am but Graphviz doesn't work with my snap version, so will have to sort it out first before confirming (need to find a thread on the forum where graphviz and snap were discussed)
https://github.com/ppd/freecad-ppd/issues/34
Try FreeCAD from the Snap Store: Stable releases (in latest/stable) & daily builds (in latest/edge). Supports installing additional python packages via pip!
Image
User avatar
bambuko
Veteran
Posts: 1549
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: FreeCAD (snap) crashes when deleting a PD feature

Post by bambuko »

Thank you @ppd

I knew the bells were ringing but wasn't sure which church :mrgreen:
I was searching the forum not github....
Post Reply