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

Reparenting widget containg QGLWidget causes crash after deletion of previous parent

    XMLWordPrintable

Details

    • Linux/X11, Windows

    Description

      Deleting QGLWidget causes a crash when all the following conditions are met:

      1.) QGLWidget has a parent widget

      2.) The parent is a child of a floating QDockWidget

      3.) The parent of QGLWidget is given a new parent and QDockWidget is deleted

      Steps to reproduce:

      Run the attached project & click the button.

      Qt 5.12.3 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 7.4.0) ("-e")
      QWindow QWindow(0x55eccfc27d80) QWindow(0x0)
      QWindow QWindow(0x55eccfd6ca90) QWindow(0x0)
      setParent QWidgetWindow(0x55eccfd6ca90, name="DockWindow") QWindow(0x0)
      QWindow QWindow(0x55eccfd89fe0) QWindow(0x0)
      setParent QWidgetWindow(0x55eccfd89fe0, name="QWidgetClassWindow") QWidgetWindow(0x55eccfd6ca90, name="DockWindow")
      >crash
       crash About to setCentralWidget()
       crash About to m_container->show()
       crash About to delete m_dockWidget
      ~QWindow QWindow(0x55eccfd6ca90, name="DockWindow")
      ~QWindow QWindow(0x55eccfd89fe0, name="GLWidgetWindow")
       crash About to delete m_glWidget
      Segmentation fault (core dumped)
      

      Attachments

        1. qt-bug.zip
          2 kB
        2. qtbug75755_diag.diff
          4 kB
        3. qtbug75755_log.txt
          14 kB
        4. qtbug75755_stack.txt
          16 kB
        5. qtbug75755_valgrind_log.txt
          3 kB
        6. qtbug75755.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            miikapernu Miika Pernu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes