Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
5.9.7, 5.12.0
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)