V0.21 Workbench selector index issue

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

V0.21 Workbench selector index issue

Post by Roy_043 »

After disabling a workbench on the "Available Workbenches" tab in the Preferences Editor (Preferences_Editor#Available_Workbenches) there is an index issue if you do not restart FreeCAD.
  1. In the Preferences Editor go to Workbenches -> Available Workbenches.
  2. Disable the first WB in the list (Arch WB in my case).
  3. Press OK, but do not restart FreeCAD.
  4. Select the 4th workbench from the selector.
  5. Result: the 5th WB is activated.

Code: Select all

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.21.0.32637 (Git)
Build type: Release
Branch: master
Hash: 7fa7cb7f0b222864be7416c683166876eab190bc
Python 3.10.10, Qt 5.15.8, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US) [ OS: Dutch/Netherlands (nl_NL) ]
Installed mods:
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: V0.21 Workbench selector index issue

Post by openBrain »

@paddle
User avatar
paddle
Veteran
Posts: 1392
Joined: Mon Feb 03, 2020 4:47 pm

Re: V0.21 Workbench selector index issue

Post by paddle »

I can't replicate this bug. Besides we have a second PR coming on the wb pref page soon, so it may be better to test after this second pr merge.
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: V0.21 Workbench selector index issue

Post by Roy_043 »

Index error reported in probably a different context:
viewtopic.php?t=77358
User avatar
paddle
Veteran
Posts: 1392
Joined: Mon Feb 03, 2020 4:47 pm

Re: V0.21 Workbench selector index issue

Post by paddle »

Have you tried to clear the preferences to see if this still happens to you?
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: V0.21 Workbench selector index issue

Post by chrisb »

I had the same with a plain vanilla config. My guess is that something got out of whack when Image workbench was removed.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: V0.21 Workbench selector index issue

Post by Roy_043 »

The problem also occurs after deleting user.cfg, but I now notice that the first WB you activate after disabling a WB is correct, subsequent activations show the index error. So the steps are:
  1. In the Preferences Editor go to Workbenches -> Available Workbenches.
  2. Disable the first WB in the list (Arch WB in my case).
  3. Press OK, but do not restart FreeCAD.
  4. Select the 4th workbench from the selector.
  5. Result: Correct WB is activated.
  6. Select the 5th workbench from the selector.
  7. Result: the 6th WB is activated.
  8. Again select the 4th workbench from the selector.
  9. Result: the 5th WB is activated.
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: V0.21 Workbench selector index issue

Post by openBrain »

Roy_043 wrote: Wed Apr 05, 2023 10:50 pm The problem also occurs after deleting user.cfg, but I now notice that the first WB you activate after disabling a WB is correct, subsequent activations show the index error.
Did you open a ticket for this one in GH ? This is quite problematic and still unresolved AFAIK.
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: V0.21 Workbench selector index issue

Post by Roy_043 »

Post Reply