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

Crash when connecting/disconnecting inherited slot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.5.0
    • 6.3.1, 6.4.1
    • PySide
    • None
    • Python 3.8
      Qt 6.4.1 (x86_64-little_endian-llp64 shared (dynamic) release build; by MSVC 2019) [limited API]
    • Windows
    • 1270a9e82e5bc3bd53a1131698ece60403da1192, 15ccf2484 (dev), e42f576bf (6.4), cec835ba1 (tqtc/lts-6.2), 46ab90a5f (dev), afffc5838 (6.5), 9529690b4 (dev), 1d429a7b5 (6.7), eaff347f5 (6.6), c777151d2 (tqtc/lts-6.5), 279658b85 (dev), 66a58efd8 (6.7)

      Program crashes with an "access violation" error when running the attached script:

      Python 3.8
      Qt 6.4.1 (x86_64-little_endian-llp64 shared (dynamic) release build; by MSVC 2019) [limited API]
      Windows fatal exception: access violation
      
      Current thread 0x00002388 (most recent call first):
        File ".\testthreads.py", line 32 in <module>
      

      If the script is changed so that `obj = A()` instead of `obj = B()`, the crash does not occur.

      This also occurs if the `c` object is used (for example emitting the signal), as long as the operation is not blocking (in our case it emits a queued signal) or the target thread is congested.

      Linux

      Out of memory  in QtCore/qarraydatapointer.h, line 215
      

        1. testthreads.py
          0.6 kB
          Matthew Joyce
        2. pyside2141_stack.txt
          35 kB
          Friedemann Kleint
        3. pyside2141_valgrind.txt
          903 kB
          Friedemann Kleint
        4. pyside2141.py
          1 kB
          Friedemann Kleint
        5. pyside214_cpp.zip
          1 kB
          Friedemann Kleint
        6. pyside2141_log.txt
          1 kB
          Friedemann Kleint
        7. pyside2141_diag.diff
          3 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            matsjoyce-refeyn Matthew Joyce
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: