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

QImage smooth scaling crashes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 5.5.0, 5.5.1, 5.6
    • Fix Version/s: 5.5.1
    • Component/s: GUI: Painting
    • Labels:
      None
    • Environment:
      Mac OS X 10.10.x, Qt5.6, clang++

      Description

      I have an example that reproduces the bug.

      #include <qapplication.h>
      #include <qimage.h>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QImage image(128, 256, QImage::Format_ARGB32);
          image.fill(Qt::darkGreen);
          QImage scaled = image.scaled(154, 308, Qt::KeepAspectRatio,
                                       Qt::SmoothTransformation);
          return a.exec();
      }
      

      The application always crashes inside the qt_qimageScaleAARGBA_up_xy function. I investigated the problem. This function was optimized after the Qt4.8.6 version.
      How can I fix this algorithm and test the fix?
      It is really blocker on OS X because this function is required for the Retina support tasks.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              allan.jensen Allan Sandfeld Jensen
              Reporter:
              wiz29 Alexander
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes