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

zooming infinitely causes infinite allocating loop

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • None
    • 6.2.0 Alpha
    • Charts
    • None
    • Linux/X11

      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;
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes