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

Glow effect devours RAM

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.2.1
    • 6.2.0
    • None
    • Mac OS 11.6

    Description

      I have a ListView, and each item in it has Glow graphical effect applied.

      It works just fine in Qt 5.15.2. But with Qt 6.2.0 I noticed that the same(?) Glow effect from Qt5Compat.GraphicalEffects devours RAM continuously.

      On the attached video-recording (glow-ram-devouring.mp4 with 4x playback speed) you can see it with the very same application built with Qt 5.15.2 and with Qt 6.2.0: the Activity Monitor shows RAM consumption by both variants, and the one built with Qt 6.2.0 consumes (tremendously) much more RAM over time and especially when you start scrolling the list.

      To confirm that it's the Glow effect who causes this, I commented it out and re-ran the applications. Without Glow effect both variants consume (almost) the same amount of RAM and it doesn't increase over time:

      The test application sources are attached in glow-ram-devouring.zip

      I can reproduce it on Mac OS and Windows. Didn't test it on Linux, but I suspect it is reproducible there too.

      Attachments

        1. glow-ram-dev.png
          glow-ram-dev.png
          632 kB
        2. glow-ram-devouring.mp4
          4.85 MB
        3. glow-ram-devouring.zip
          3 kB
        4. no-glow-same-ram.png
          no-glow-same-ram.png
          612 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            artemsyd Artem Sidyakin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes