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

QPainter::drawImage causes crash with certain ratio of QImage width and target width on High DPI Systems

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • 5.6.1
    • 5.3.2, 5.5.0
    • GUI: Painting
    • None
    • Mac OS X, Retina Systems

    Description

      A special ratio of a QImage width and the target width used in QPainter::drawImage causes an assertion violation / buffer overflow in fetchTransformedBilinearARGB32PM on Retina Macs.
      One example is a QImage with width 2048 and target width 1023.999.

      Attachments

        1. mainwindow.cpp
          0.7 kB
        2. mainwindow.h
          0.3 kB
        3. RetinaTest_2015-07-10-112927_tarjan.crash
          49 kB
        4. RetinaTest.pro
          0.3 kB

        Issue Links

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

          Activity

            People

              allan.jensen Allan Sandfeld Jensen
              oxyt Frank Bodmann
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes