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

StateMachineWrapped event SEGFAULT

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.8.0
    • PySide, Shiboken
    • None
    • Python3.11.4
      PySide6==6.8.0
      Windows11x64
      Ubuntu22.04
    • Linux/Wayland, Windows

    Description

      A simple graphics scene that drives the state machine is created. A transition with the GraphicsSceneMousePress event type triggers the eventTest method when the red area is clicked on the widget. The StateMachineWrapped is unwrapped using the event.event() method and printed, at which point the application crashes.

      The application raises a Segmentation fault (core dumped) on Ubuntu.
      On Windows the application crashes silently and the following error is available in the EventViewer/WindowsLogs/Application

      Exception code: 0xc0000005
      Fault offset: 0x000000000002cfc9
      Faulting process id: 0x0x63A0
      Faulting application start time: 0x0x1DB4716E1CED3FF
      Faulting application path: C:\QtTest\venv\Scripts\python.exe
      Faulting module path: C:\QtTest\venv\Lib\site-packages\shiboken6\shiboken6.abi3.dll
      

      Simple reproduction code attached below

      Attachments

        1. PYSIDE_2948.py
          1 kB
          David Ivkovic
        2. pyside2948_cpp.zip
          1 kB
          Friedemann Kleint
        3. pyside2948_stack.txt
          57 kB
          Friedemann Kleint
        4. pyside2948_valgrind.txt
          30 kB
          Friedemann Kleint
        5. pyside2948.py
          2 kB
          Friedemann Kleint
        6. Screenshot 2024-12-05 143424.png
          5 kB
          David Ivkovic

        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
              davidivkovic David Ivkovic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes