[bug/regression] Selecting support plane for new sketch in second/third/... body gives error

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!
Post Reply
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

[bug/regression] Selecting support plane for new sketch in second/third/... body gives error

Post by kisolre »

Create a new document.
Create new Body.
Create new sketch, select plane, close sketch.
Create second body.
Create second sketch. Try to single click select plane from the 3D viewport or list:

Code: Select all

20:59:07  32392.4 Selection.cpp(1691): Sub-object Unnamed#Body001.Origin001.XZ_Plane001. not found
I suspect the reason is the trailing comma which probably appeared after this git commit 6340dcd
Doubleclick on the list selects and confirms the plane and opens sketch for editing.
realthunder wrote: pinged by pinger macro

Code: Select all

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.20.28870 (Git)
Build type: Release
Branch: master
Hash: 4ae98779c1c2524924316696dc3535c8cc5279e5
Python 3.8.6+, Qt 5.15.2, Coin 4.0.1, OCC 7.5.3
Locale: Bulgarian/Bulgaria (bg_BG)
Installed mods: 
  * 3DfindIT 1.2.0
  * A2plus 0.4.56
  * AirPlaneDesign 0.4.0
  * AnimationFreeCAD 1.0.0
  * ArchTextures
  * Assembly3 0.11.3
  * Assembly4 0.11.12
  * BIM 2021.12.0
  * BOLTSFC
  * CfdOF 1.15.1
  * CubeMenu
  * CurvedShapes 1.0.3
  * Curves 0.3.0
  * CycloidGearBox
  * Defeaturing
  * Design456
  * DesignSPHysics 0.6.1-2201-31-01
  * dodo
  * DynamicData 2.46.0
  * ExplodedAssembly
  * fasteners 0.3.41
  * FCGear 1.0.0
  * FCPDWorkbench 0.2.0
  * FEM_FrontISTR 0.1.0
  * frame
  * freecad.xray 2022.4.17
  * FreeCAD_mcm_addon
  * Help 1.0.0-alpha
  * InvGears 0.1.2
  * kicadStepUpMod 10.12.0
  * lattice2 1.0.0
  * Launcher
  * MakerWorkbench
  * Manipulator 1.4.3
  * Mechatronic
  * MeshRemodel 1.8919.0
  * MnesarcoUtils 0.1.0
  * Nikra-DAP
  * nurbs
  * OpticsWorkbench 1.0.8
  * ose-piping
  * parts_library
  * PlacementTools
  * Plot 2022.4.17
  * Pyramids-and-Polyhedrons
  * Reinforcement
  * Render 2022.1.0
  * Rocket 2.4.1
  * SearchBar 1.0.1
  * SelectorToolbar
  * sheetmetal 0.2.49
  * Ship 2022.4.11
  * Silk
  * SlopedPlanesMacro
  * StemfieWB
  * symbols_library
  * ThreadProfile 1.81.0
  * toSketch
  * Woodworking 1.0.0
  * workfeature
  * workfeature-macro
User avatar
Shalmeneser
Veteran
Posts: 9560
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: [bug/regression] Selecting support plane for new sketch in second/third/... body gives error

Post by Shalmeneser »

1) Creating sketch in a second body. Selecting XY-plane.
2) Modifying support for a sketch in a second body.

* 0.20 28611 : NO problem
* 0.20 28872 : Problem !

Code: Select all

OS: Linux Mint 20.3 (MATE/mate)
Word size of FreeCAD: 64-bit
Version: 0.20.28611 (Git) AppImage
Build type: Release
Branch: (HEAD detached at a3b804e)
Hash: a3b804e7806c2b3b5e1228c41bca4569a743b400
Python 3.9.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: French/France (fr_FR)
Installed mods: 
  * Manipulator
  * fasteners
  * sheetmetal

Code: Select all

OS: Linux Mint 20.3 (MATE/mate)
Word size of FreeCAD: 64-bit
Version: 0.20.28872 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 9057658)
Hash: 9057658ae5d638f6903bc831b53ceb349c2870a2
Python 3.9.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: French/France (fr_FR)
Installed mods: 
  * Manipulator
  * fasteners
  * sheetmetal
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: [bug/regression] Selecting support plane for new sketch in second/third/... body gives error

Post by kisolre »

Shalmeneser wrote: Sun May 15, 2022 8:27 pm 0.20 28872 : Problem !
The suspect commit should be something around 28868.
realthunder
Veteran
Posts: 2190
Joined: Tue Jan 03, 2017 10:55 am

Re: [bug/regression] Selecting support plane for new sketch in second/third/... body gives error

Post by realthunder »

PR submitted here
Try Assembly3 with my custom build of FreeCAD at here.
And if you'd like to show your support, you can donate through patreon, liberapay, or paypal
Post Reply