Ondsel-Development / FreeCAD

This is the official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler.
https://www.freecad.org
Other
192 stars 9 forks source link

[1.0 Bughunt] If I add an unconnected shape to a sketch after applying padding and thickness, there is an error #81

Open raindropsfromsky opened 5 months ago

raindropsfromsky commented 5 months ago

Is there an existing issue for this?

Problem description

  1. Create a shape in a sketch and close the sketch.
  2. Pad the sketch.
  3. Apply thickness
  4. Edit the sketch. (double-click on the sketch node)
  5. Add a new unconnected shape.

image

Immediately we get an error:

<PropertyLinks> PropertyLinks.cpp(435): Unnamed#Thickness.Base auto change element reference Unnamed#Pad ;g1459;SKT;:Hfbc,E;FAC;:Hfbc:4,F;:G0;XTR;:Hfbc:8,F.Face6 -> ;g1459;SKT;:Hfbc,E;FAC;:Hfbc:4,F;:G0;XTR;:Hfbc:8,F;:H,F.Face6
3071.36 <App> Document.cpp(3158): Unknown exception in Unnamed#Thickness thrown
Thickness: Unknown exception!

I repeated the same sequence with the Fillet tool in step-3.

I got this error: <PropertyLinks> PropertyLinks.cpp(435): Unnamed#Fillet.Base auto change element reference Unnamed#Pad ;g1459;SKT;:Hfbc,E;FAC;:Hfbc:4,F;:G0;XTR;:Hfbc:8,F.Face6 -> ;g1459;SKT;:Hfbc,E;FAC;:Hfbc:4,F;:G0;XTR;:Hfbc:8,F;:H,F.Face6

I omitted step-3, and there was no error.

To conclude: The process breaks if we modify the padded shape and then edit the sketch to add another unconnected shape.

Desired behavior:

  1. There should be no error
  2. The second operation (thickness/chamfer/fillet) should apply to the second shape also.

Full version info

OS: Windows 11 build 22631
Word size of Ondsel: 64-bit
Version: 2024.2.0dev.37608 (Git)
Build type: Release
Branch: flavor
Hash: cbb758c5dc79fd4c016a9cd45a007d3c7ce1a689
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: English/India (en_IN)
Installed mods: 
  * Ondsel-Lens 2024.3.26.01

Subproject(s) affected?

None

Anything else?

This may be connected to bug #80 (where I found the problem while working backwards)

Code of Conduct