Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89563

Reg->5:15.2: Segfault calling contextMenuEvent for QGraphicsTextItem with TextEditorInteraction

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/Wayland, Linux/X11, Windows

      Description

      Python crashes with a segmentation fault when contextMenuEvent for a QGraphicsTextItem with setTextInteractionFlags(QtCore.Qt.TextEditorInteraction) is called.

      Repro:

      Run attached script.py and right click in the canvas.

      On PySide2 5.14.2.3 and 5.15.0 this opens a context menu showing Undo, Cut, Copy, Paste etc.

      On PySide2 5.151 and 5.15.2 this casues a segmentation fault.

      Steps to reproduce in Qt:

      • run qtbug89563.zip
      • right click text item

      or

      • Patch the subattac example qtbug89563_subattac_repro.diff
      • Launch, start new game. right click on top right progress text item
      • Observer crash qtbug89563_subattac_stack.txt

      This was reported against Qt for Python 5.15, but it does not happen in Qt for Python 6. Maybe it was fixed in Qt 6?
       

        Attachments

        1. pyside1454_stack.txt
          34 kB
        2. pyside1454.py
          1 kB
        3. qtbug89563_subattac_repro.diff
          1 kB
        4. qtbug89563_subattac_stack.txt
          55 kB
        5. qtbug89563.zip
          1 kB
        6. qtbug-89563.zip
          1 kB
        7. script.py
          1.0 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            hdkire Erik der Hagopian
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes