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

Unsafe deletion of children QOpenGL* objects from QOpenGLWindow

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.4.1
    • Fix Version/s: 5.5.0
    • Component/s: GUI: OpenGL
    • Labels:
      None
    • Commits:
      7414c2c404cc241b1dbfa2d15aee2917a3b0cfb2

      Description

      When using QOpenGLWindow, if one has a QOpenGL wrapper class as a child object of a QOpenGLWindow subclass, then the child object gets destroyed without a context active.

      That's merely because ~QObject destroys children first, then the private object (holding the context) is destroyed; and nothing makes the context current in the between. This leads to crashes.

        Attachments

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

          Activity

            People

            Assignee:
            peppe Giuseppe D'Angelo
            Reporter:
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes