Video playback and ram/GPU leaks fixed!

I told myself i wouldn’t bother with the majour issues and bother to fix them but since chatgpt5 came out it made it quite easy to analyze the leaks. I previously had a rough idea about how it should be done but this allowed to really pinpoint the problems.

So i kinda managed to fix it. At least partially for now. I have a few more things.
Overall this actually fixed most of the issues and now it will be quite usable and the resouse usage should be significantly lower.

Of course this is only in my fork.

Did the problem end up being related to GStreamer, or was it on Quelea’s side?

It’s mostly unreleased resources. Esseentially both, but that means it comes from the java side.

With Gstreamer 1.26.5 (random stable version around 2020), the memory leak doesn’t seem to happen. This is just me testing without a second monitor.

I already fixed leaks, so they don’t happen with MKV but they do with mp4. Actually i fixed some things so it’s less with mp4 now but still a few places.


P.S. Actually, I am thinking of making a presentation software myself and making it work like a server where multiple people can operate at the same time. And also integrate it with AI such that the AI can do some of the tasks hahah. It’s just a concept but after working on 2 presentation softwares already it’s already in my head.
It won’t have a sinlge UI but a starting simple UI where users can customize it to their needs should they wish to. The design and some of the architecture is already in my head.

I just don’t want to deal the other people’s bugs anymore

I was talking about Quelea, the latest version, and not your fork specifically :sweat_smile:
(no leaks with the Gstreamer version I specified on last official build of Quelea)

That sounds like a big undertaking, but if you achieve it, then it’ll be a very useful tool for a lot of people!

Did you have mp4 videos in the vid dir ? Multiple or large ones ? Do you have video backgroungs setup in the library songs as preset specific vid-backgrounds?

I have 15 GB of videos of various sizes in the video folder (.quelea). Biggest single one is nearly 2GB.
I didn’t set any video backgrounds or any as preset for some songs.

that’s probably why you didn’t experience some of the leaks