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

SIGSEGV after reconnecting a signal with argument in an inner class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.6.0, 6.5.4
    • 6.5.3
    • PySide
    • None
    • Linux/X11

    Description

      Hi,

      after upgrading to PySide 6.5.3 I am running in a SIGSEGV when changing the current item in a QComboBox and disconnecting/reconnecting the currentIndexChanged signal. I did not have any issue with PySide 6.5.2.

      After a lot of trial and error I could pin this down to the fact, that my QComboBox and signal connections were part of an inner class that is derived from QObject. I managed to create a small reproduction case using only a simple signal with an argument that I am attaching.
      The issue does not show all the time but if it does, it is mostly already on the first execution.

      The backtrace always looks like this:

      #0  0x00007fffd7399e24 in QObject::setProperty(char const*, QVariant const&) ()
         from .../venv/lib/python3.11/site-packages/PySide6/Qt/lib/libQt6Core.so.6
      #1  0x00007fffd80fc339 in ?? ()
         from .../venv/lib/python3.11/site-packages/PySide6/libpyside6.abi3.so.6.5
      #2  0x00007fffd739b9df in ?? ()
         from .../venv/lib/python3.11/site-packages/PySide6/Qt/lib/libQt6Core.so.6
      #3  0x00007fffd80fb2af in PySide::SignalManager::SignalManagerPrivate::qtMethodMetacall(QObject*, int, void**) ()
      from .../venv/lib/python3.11/site-packages/PySide6/libpyside6.abi3.so.6.5
      ...
      

      I am running debian testing with Python 3.11 with venv. The PySide version was installed using pip.

      Thanks for looking into this and best wishes,

      Martin.

      Attachments

        1. pyside2527_stack.txt
          53 kB
        2. pyside2527.py
          1 kB
        3. SignalTest.py
          1 kB

        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
              martink1 A Developer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes