Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2746

Regression: PySide 6.7 segfaulting with metaclass and asyncio

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.7.0
    • PySide
    • None
    • Linux/X11

      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) 

        1. pyside2746.py
          1 kB
        2. test_pyside3.py
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            crmaurei Cristian Maureira-Fredes
            hiaselhans Simon Klemenc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes