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

Regression: PySide 6.7 segfaulting with metaclass and asyncio

    XMLWordPrintable

Details

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

    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

        1. pyside2746.py
          1 kB
          Friedemann Kleint
        2. test_pyside3.py
          0.4 kB
          Simon Klemenc

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes