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

Crash of QDockWidget example upon window movement

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.10.0, 6.9.2, 6.9.3
    • PySide
    • None
    • Linux/X11, Windows

      Upon playing with the examples to learn about the docked widgets I found that the dockwidgets example (https://doc.qt.io/qtforpython-6/examples/example_widgets_mainwindows_dockwidgets.html) consistently crashes when the dock widgets on the right side are rapidly moved.

      To reproduce:

      • launch the example
      • "grab" one of the docked widgets on the right side like the "Paragraphs"
      • quickly move it up and down in the area where it would like to "redock"
      • This should result in a segmentation fault (tested on Windows and on Ubuntu 24.04).

      (If you can't reproduce: I found this crash to be more likely if there are more dock widgets, so you could spawn additional ones.)

      I tested versions 6.10.0, 6.9.3 and 6.9.2.
      The older versions don't seem to be affected.

      On Ubuntu I gathered the following stacktrace with gdb:

      Thread 1 "python" received signal SIGSEGV, Segmentation fault.
      0x00007ffff67317dd in QVariantAnimation::keyValueAt(double) const ()
      from xxxxxxxxxx/.venv/lib/python3.14/site-packages/PySide6/Qt/lib/libQt6Core.so.6
      
      (gdb) bt
      
      #0 0x00007ffff67317dd in QVariantAnimation::keyValueAt(double) const ()
      from xxxxxxxxxx/.venv/lib/python3.14/site-packages/PySide6/Qt/lib/libQt6Core.so.6
      #1 0x00007ffff673189a in QVariantAnimation::endValue() const ()
      from xxxxxxxxxx/.venv/lib/python3.14/site-packages/PySide6/Qt/lib/libQt6Core.so.6
      #2 0x00007ffff1e49735 in ?? () from xxxxxxxxxx/.venv/lib/python3.14/site-packages/PySide6/Qt/lib/libQt6Widgets.so.6
      #3 0x00007ffff1f06f77 in ?? () from xxxxxxxxxx/.venv/lib/python3.14/site-packages/PySide6/Qt/lib/libQt6Widgets.so.6
      #4 0x00007ffff1f06de6 in ?? () from xxxxxxxxxx/.venv/lib/python3.14/site-packages/PySide6/Qt/lib/libQt6Widgets.so.6
      #5 0x00007ffff1f070e9 in ?? () from xxxxxxxxxx/.venv/lib/python3.14/site-packages/PySide6/Qt/lib/libQt6Widgets.so.6
      #6 0x00007ffff1f523db in ?? () from xxxxxxxxxx/.venv/lib/python3.14/site-packages/PySide6/Qt/lib/libQt6Widgets.so.6
      #7 0x00007ffff1f5464b in ?? () from xxxxxxxxxx/.venv/lib/python3.14/site-packages/PySide6/Qt/lib/libQt6Widgets.so.6
      #8 0x00007ffff1f458cb in QMainWindow::event(QEvent*) ()
      from xxxxxxxxxx/.venv/lib/python3.14/site-packages/PySide6/Qt/lib/libQt6Widgets.so.6
      #9 0x00007ffff1879aac in ?? () from xxxxxxxxxx/.venv/lib/python3.14/site-packages/PySide6/QtWidgets.abi3.so
      #10 0x00007ffff1d91c8b in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
      from xxxxxxxxxx/.venv/lib/python3.14/site-packages/PySide6/Qt/lib/libQt6Widgets.so.6
      #11 0x00007ffff1d9b263 in QApplication::notify(QObject*, QEvent*) ()
      

       

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

            crmaurei Cristian Maureira-Fredes
            maxm Max M
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes