Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.7.0
-
None
Description
Starting with PySide 6.7.0 classes with metaclasses fail at import time.
from __future__ import annotations import abc from PySide6 import QtCore class MixinMeta(type(QtCore.QObject), abc.ABCMeta): # type: ignore pass class CompareView(metaclass=MixinMeta): def __init__(self, parent: QtCore.QObject=None): pass @abc.abstractmethod def update_view(self) -> None: raise NotImplementedError()
[08:42 simon@simonlaptop local :)] python test_pyside.py corrupted size vs. prev_size Aborted (core dumped)
after removal of abc.ABCMeta the result is this:
[08:49 simon@simonlaptop local :)] python test_pyside.py free(): corrupted unsorted chunks Aborted (core dumped)
Attachments
Issue Links
- duplicates
-
PYSIDE-2676 Segfault on Linux when using mne_qt_browser (Python 3.12/meta classes)
- Closed
- relates to
-
PYSIDE-1767 Pyside6/Shiboken and ABCMeta Bug
- Reported