Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.9.1
-
None
-
MSVC2015
Precompiled Qt 5.9.1 64 bit
QtCreator 4.3.1
Windows 10 64 bit
-
39061af50cc3092289cdd71d17802139590ecb59
Description
This is the first bug report I am submitting, so please let me know how to improve on the quality.
I am using a custom image provider to display a stream of images. On every update I update the source of the image like this
liveImage.source = "image://" + imageProvider + "/grayscale" + Math.random()
in order to avoid caching.
This worked fine in 5.8, however since switching to Qt 5.9 memory usage constantly increases with every new image until I run out of memory.
The problem can be reproduced using the image provider from the Image Provider example and a timer to update the image:
Timer {
interval: 20
running: true
onTriggered: {
img.source = "image://colors/yellow" + Math.random()
console.log("update") running = true
}
Image {
anchors.fill: parent;
id: img;
source: "image://colors/yellow"
}
Attachments
Issue Links
- duplicates
-
QTBUG-61754 Change image source cause memory leak
- Closed