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

Painting multiple QImages in QPrintPreviewDialog has large memory consumption

XMLWordPrintable

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

      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?

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

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

              Created:
              Updated:

                There are no open Gerrit changes