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

Painting multiple QImages in QPrintPreviewDialog has large memory consumption

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.4.2
    • GUI: Printing
    • None
    • Linux/X11

    Description

      This was originally a QtWebEngine issue, but it is reproducible without the WebEngine component: https://bugreports.qt.io/browse/QTBUG-108539

      Painting an image (with ~150 Kib size) 100 times into a QPrintPreviewDialog has more than 3 gigabytes of resident memory usage, and this is unexpected for the users.

      Please see the attached example and observe memory consumption in htop. Printing without the preview dialog or using the same QImage object for each page has no memory issue.

      Is this a real issue, or is there any more effective ways to print multiple images into a preview dialog?

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              davidsz Szabolcs David
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes