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

Windows: QPainter::drawImage crashes when certain floating points used in translate() and drawImage()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 4.8.5, 5.2.0
    • Fix Version/s: None
    • Component/s: GUI: Painting
    • Environment:
      Windows 7

      Description

      Crash happens in qt_scale_image_32bit to blender.write().

      QImage src(532,519,QImage::Format_ARGB32_Premultiplied);
      QImage dest(1000,1000,QImage::Format_ARGB32_Premultiplied);
      QPainter painter1(&dest);
      painter1.setTransform(QTransform(1.25, 0, 0, 1.25, 15.900000000000034, 72.749999999999986));
      painter1.drawImage(QRectF(-2.6, -2.6, 425.6, 415.20000000000005), src, QRectF(0,0,532,519)); 
      

        Attachments

        1. qtbug35927_diag.patch
          2 kB
        2. qtbug35927_purify.tasks
          62 kB
        3. qtbug35927_purify.txt
          62 kB
        4. qtbug35927_valgrind.log
          13 kB
        5. qtbug35927.log.gz
          283 kB
        6. qtbug35927.zip
          1 kB

          Issue Links

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

            Activity

              People

              Assignee:
              laknoll Lars Knoll
              Reporter:
              qtcomsupport Qt Support
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes