A lot of QTWidgets related errors and GUI mostly unusable

Description:

I get a bunch of QTWidgets related error messages as well as most of FreeCAD is unusable. E.G. Trying to create a new Path Job. (Open one of the examples. Select "Path" from the dropdown at the top and then click the "Create Path Job" button.

Additional info:

  • package version(s): 0.21.2-13
  • config and/or log files:
During initialization the error "'PySide6.QtWidgets.QStatusBar.removeWidget' called with wrong argument types:
  PySide6.QtWidgets.QStatusBar.removeWidget(QPushButton)
Supported signatures:
  PySide6.QtWidgets.QStatusBar.removeWidget(PySide6.QtWidgets.QWidget)" occurred in /usr/lib/freecad/Mod/Tux/InitGui.py
Please look into the log file for further information
Coin warning in glxglue_isdirect(): Couldn't get current GLX context.
Running the Python command 'Path_Job' failed:
Traceback (most recent call last):
  File "/usr/lib/freecad/Mod/Path/Path/Main/Gui/JobCmd.py", line 68, in Activated
    dialog.setupModel()
  File "/usr/lib/freecad/Mod/Path/Path/Main/Gui/JobDlg.py", line 174, in setupModel
    self.dialog.modelTree.setItemDelegateForColumn(1, self.delegate)

'PySide6.QtWidgets.QAbstractItemView.setItemDelegateForColumn' called with wrong argument types:
  PySide6.QtWidgets.QAbstractItemView.setItemDelegateForColumn(int, _ItemDelegate)
Supported signatures:
  PySide6.QtWidgets.QAbstractItemView.setItemDelegateForColumn(int, PySide6.QtWidgets.QAbstractItemDelegate)
  • link to upstream bug report, if any:
  • May relate to #3 (closed)
  • Similarly to #3 (closed) downgrading to 0.21.2-6 ( f1567c38) resolves these issues and is currently the only way for me to have a usable FreeCAD:
    $ sudo pacman -U https://archive.archlinux.org/packages/f/freecad/freecad-0.21.2-6-x86_64.pkg.tar.zst

Steps to reproduce:

  1. Open FreeCAD
  2. The left most example project
  3. Select a workbench e.g. "Path" and click the "Create Path Job" button.
Edited by Klaus Frank
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information