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

Deleting a visible QAbstractSeries with OpenGL enabled causes an error

    XMLWordPrintable

Details

    • 5c4ddaae0 (dev), be3f2005f (6.7), 81986f13e (6.6), 3ecf8f2e7 (tqtc/lts-6.5)
    • G&UI Finishing 2023

    Description

      When a QAbstractSeries subclass with setUseOpenGL(true) called is added to a QChart added to a visible QChartView, when the QChartView is deleted an error is thrown.

      This includes deleteLater() and closing the application normally.

       

      The error is as follows:

      Debug Error!

       

      Program: C:/Qt/6.6.1/msvc2019_64\bin\Qt6Cored.dll

      Module: 6.6.1

      File:

      C:\Users\qt\work\install\include\QtCore/qobjectdefs_impl.h

      Line: 130

       

      ASSERT failure in GLWidget: "Called object is not of the correct type (class destructor may have already fun)", file C:\Users\qt\work\install\include\QtCore/qtobjetdefs_impl.h, line 130

       

      Error can be reproduced with any Qt example that uses a QAbstractSeries subclass, call setUseOpenGL(true) on the subclass and close the application with the QChartView containing it visible.

      Attachments

        For Gerrit Dashboard: QTBUG-119900
        # Subject Branch Project Status CR V

        Activity

          People

            vhilshei Volker Hilsheimer
            kevin.zhang Kevin Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes