Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.2, 5.1.0 RC1
-
None
-
Windows, Linux, Embedded linux
Description
Switching between QML pages with Loader or with Qt.createComponent causes memory leak even if gc() is called.
Please check the attached code for reproduction. It uses a timer to switch between 2 qml pages in every second.
Please use property bool useloader: true//false in main.qml between switching the loading with Loader or js.
On Linux the application calls pmap to log the change of the memory usage every 10 seconds on windows please use the taskmanager.
Valgrind was not able to detect the problem, but I had to run the application for at least 15 minutes to see the grow, we have been running the application whole night also and the difference is big.