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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P1: Critical
    • None
    • 5.15.18, 6.7.3, 6.7
    • Charts
    • None
    • 12c/24T Xeon, 128gb ddr4 memory, NVME SSD. Tested in RedHat Linux VM and Windows 11 Natively

    Description

      Calling Delete on QChart Calls RemoveAllSeries(), which loops RemoveSeries(). This calls additional functions for each series removed during delete such as update(), which locks the main thread, proportional to # series that are plotted. Because it calls on the GUI, delete/cleanup cannot be handled in a new thread.

      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:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes