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

QT Charts - Delete Locks MainThread ~O(n^2) Proportional to # of Series

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.18, 6.7.0, 6.7.3
    • None
    • 12c/24T Xeon, 128gb ddr4 memory, NVME SSD. Tested in RedHat Linux VM and Windows 11 Natively

    Description

      Calling Delete/DeleteLater on QChart Calls RemoveAllSeries(), which loops RemoveSeries(). This calls additional functions for each series removed during delete such as update(), which locks the main GUI thread, proportional to # of series that were plotted. This causes the application to hang.

      From Testing (Natively in Windows):

      12k Series -> ~30sec removeAll threadlock

      9.3k Series -> ~19sec removeAll threadlock

      7.8k Series -> ~12.7sec removeAll threadlock

      4.8k Series -> ~4.8sec removeAll threadlock

      1.24k Series -> ~0.39sec removeAll threadlock

      0.735k Series -> ~0.045s removeAll threadlock

      See: QT Forum - Deleting QChart Causes Application Hang

      Attachments

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

        Activity

          People

            e0348803 Miikka Heikkinen
            fleetingmemory Mason Cole
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes