Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.8.0
-
MacOS 10.12 (Sierra)
Description
There are several QWidgets in QGridLayout and those QWidgets need to be updated continuously in short time interval. Based on Activity Monitor these updates consume continuously increasing amount of memory. The curious thing is that if the application is switched to background and then back to front, the memory consumption drops close to initial consumption, but continues to grow again. The same happens while debugging when you stop in a breakpoint even if the application stays in front. It seems like the application cannot free memory until it is given a break. On Windows and on Linux the memory consumption is stable.
The attached example can be used to reproduced the problem. Just run the example, keep it visible and follow its memory consumption. Then put it background and visible again and notice the change in the memory consumption. The example's paintEvent() is empty. Thus it doesn't draw anything, but the problem still exists.
Attachments
Issue Links
- relates to
-
QTBUG-65504 No autorelease pool block for event loop iteration
- Closed
For Gerrit Dashboard: QTBUG-60012 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
198381,2 | macOS: Work around buildup of NSDisplayCycle objects during rapid painting | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 |