| Summary: | Garbage Collector is not cleaning memory | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Arthur Lobo <arthurciprianolobo> |
| Component: | Wallpaper images | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | crash | CC: | sitter |
| Priority: | NOR | ||
| Version First Reported In: | 6.3.2 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
test.qml
Small Video with nothing |
||
|
Description
Arthur Lobo
2025-03-09 20:07:19 UTC
We don't maintain QtMultimedia, you'll want to talk to Qt I guess. Created attachment 179260 [details] test.qml For what it's worth I've had a quick look and I think there is no actual leak. What happens is that qtffmpeg doesn't fully de-initialize itself when you destroy the Video item. Specifically it holds on to its internal engine until a new media is set. As well as some global statics that only get cleared on app shutdown. https://codebrowser.dev/qt6/qtmultimedia/src/plugins/multimedia/ffmpeg/qffmpegmediaplayer.cpp.html#188 Depending on the video in question that would be more or less memory it uses, but it shouldn't keep growing forever. And indeed a simple test program I have attached doesn't, it rises for a bit and eventually stays within the same range. Created attachment 179275 [details]
Small Video with nothing
I did a test with this video file with nothing. The file size is about to 4kb and for each time I opened the Dialog rendering it the RAM usage raises 20Mb to 40Mb for each time and keeping raising as I open and close the Dialog.
|