On Wed, 1 Dec 2021 at 09:33, Alvin <
idea.vi...@gmail.com> wrote:
> While I use this library, I noticed something wrong with it, when I use FXImageSink from your examples. It show the streams, however after I leave it for 1 hour, the ram usage gradually increased. So I tried your example and I found similar issue. But if I comment out the
> imageSink.requestFrameSize(640, 480);
> Then the ram usage will not growing and stay the same.
> ...
> I also test the gstreamer pipeline to make sure if the bug is from gstremer itself. But the ram usage is not increasing.
> Do you have any Idea why the ram usage keep growing? Thank you
>
> My specification
> - Ubuntu 18.04 LTS
> - Gstreamer 1.14.5
> - JavaFx 13.02
> - Java Liberica 13
I cannot replicate your issue on current Ubuntu 20.04 dev machine. I
did see a memory leak on an older machine that I was first developing
this on, but that took about a minute to max out memory and crash the
machine. This was caused by an interaction between JavaFX and the GPU
driver. I'd have to look back through some email archives to find the
exact trigger though.
What's your GPU?
Are you using a JDK with JavaFX included? If so, don't - use the
mechanism from the examples to include JavaFX. I would also try with
updated versions of both JavaFX and JDK (although you'll need to
update the Gradle wrapper in the example for JDK 17 - working on that)
Best wishes,
Neil
--
Neil C Smith
Codelerity Ltd.
www.codelerity.com
Codelerity Ltd. is a company registered in England and Wales
Registered company number : 12063669
Registered office address : Office 4 219 Kensington High Street,
Kensington, London, England, W8 6BD