Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.7.0, 5.7.1, 5.8.0
-
None
-
OS: Windows 10 Home
CPU: Intel Core i7-5700HQ
GPU: Nvidia GeForce GTX 970M
RAM: 16 Gb
Qt Creator v4.2.1
Qt 5.7.0 for MSVC2013 64bit
Qt 5.8.0 for MSVC2015 64bit
Description
There is a huge memory leak in the ToolBar from QtQuick.Controls2 when choosing Material theme.
How to reproduce:
Create an ApplicationWindow, put ToolBar into it's header, set Material theme in qtquickcontrols2.conf. Now launch your application and try to resize the window. Memory consumption will start to grow very fast.
I think this issue related only to Windows, because my colleague could not reproduce it on Linux.
UPDATE:
I have found that the actual problem is buggy DropShadow effect.
It is attached to the ToolBar when using Material theme, but setting Material.elevation to 0 fixes memory leak (but removes shadow effect).
Adding DropShadow effect to the scene manually also causes huge memory leak on window resize. See updated main.qml.