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

zooming infinitely causes infinite allocating loop

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.2.0 Alpha
    • Fix Version/s: None
    • Component/s: Charts
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      Running the QML example attached to QTBUG-79218 and trying to zoom in infinitely, causes the application to freeze, while continuously allocating memory. The only way to close the application, is to hit CTRL-C in the console before swapping takes over the whole system.

      The allocating loop seems to be at ChartValueAxisX::calculateLayout()inĀ chartvalueaxisx.cpp:94

      89              const qreal deltaX = gridRect.width() / (maxValue - minValue);
      90
      91              QList<qreal> points;
      92              const qreal leftPos = gridRect.left();
      93              while (value <= maxValue || qFuzzyCompare(value, maxValue)) {
      94                  points << (value - minValue) * deltaX + leftPos;
      95                  value += interval;
      96              }
      97
      98              return points;
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jimis Dimitrios Apostolou
              Reporter:
              jimis Dimitrios Apostolou
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes