Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.3
-
Ubuntu 20.04 Linux
-
-
3ccf37ce966923b6b65499f1116ee1941a1f36f1, 3bf5e8b671e0f7be7f3fa5004aedbb2f9838c56a
Description
If QtQuick application dynamically allocates memory for QML objects and then deallocates the same objects with destroy() only part of the memory is returned back to the OS.
Steps to reproduce.
- Please run the attached example.
- Inspect the memory usage of the application process (valgrind --tool=massif --pages-as-heap=yes, pmap -d or top)
- Create QML objects by pressing the button in the application
- Repeat step 2.)
- Delete the QML objects by pressing the button in the application
- Repeat step 2.)
It can be observed that only about 1/3 of the memory that was allocated is returned back to the OS.
mapped: 753432K writeable/private: 85488K shared: 18652K
mapped: 1112792K writeable/private: 437268K shared: 52304K
mapped: 1040892K writeable/private: 365752K shared: 52304K
Attachments
Issue Links
- relates to
-
QTBUG-98150 Designer puppet keeps crashing at startup in batch renderer
- Closed
For Gerrit Dashboard: QTBUG-93956 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
376708,2 | sg: Drop internal pool allocs upon QQuickWindow::releaseResources | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
378297,2 | sg: Drop internal pool allocs upon QQuickWindow::releaseResources | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
378298,4 | sg: Drop internal pool allocs upon QQuickWindow::releaseResources | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |