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

QImage smooth scaling crashes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • 5.5.1
    • 5.5.0, 5.5.1, 5.6
    • GUI: Painting
    • None
    • Mac OS X 10.10.x, Qt5.6, clang++

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes