The following example results in a segfault when using PySide ≥ 6.7.0:
import PySide6
from mne_qt_browser import _pg_figure
Note that this example requires the mne-qt-browser package (in addition to PySide6).
I think what's happening here is that the second import also tries to create a Qt app, which apparently produces a segfault with PySide ≥ 6.7.0. The example works with PySide 6.6.3 (and possibly also previous versions). Interestingly, PySide 6.6.3.1 does not work either, but at least it does not segfault.
- is duplicated by
- 
                    PYSIDE-2746 Regression: PySide 6.7 segfaulting with metaclass and asyncio -           
- Closed
 
-         
- relates to
- 
                    PYSIDE-2674 isinstance / inheritance broken depending on import order when using star import -           
- Closed
 
-         
- 
                    PYSIDE-2683 Reg->6.7.0: GridCal no longer working -           
- Closed
 
-         
| For Gerrit Dashboard: PYSIDE-2676 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 552320,8 | PEP 697: Use the new type extension provision, amended | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 | 
| 557270,2 | PEP 697: Use the new type extension provision, amended | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 | 
| 558653,3 | PEP 697: Use the new type extension provision, final | dev | pyside/pyside-setup | Status: MERGED | +2 | +1 | 
| 558896,2 | PEP 697: Use the new type extension provision, final | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |