Major memory leak whilst outputting video and audio to /dev/video1 and being used by skype, after around ~30 minutes, using the ffmpeg backend.
- Looking at memory filling up
- Eventually stops going down and reaches its maximum value
- Video slows down to a crawl, no longer real time
- If I don't immediately SIGTERM the program this slows down the whole operating system to a crawl and requires a hard reboot
Great UI overhaul though, fixed most of the gripes I had with it.
Disregard this.
Anyway, I should add that ffmpeg version 2.8.7. Will try again with git master and report back with results.
Last edit: Cris Teix 2016-07-07
Ok, so the reason why the system crashes is because I literally run out of memory AND swapping space.
Webcam studio claims it's using 736MB/1760MB, but htop showed me 2GB at first and, after a few minutes running, it hit 5.5GB and would have kept climbing until my system ran out of memory.
Hitting the RAM button (which I believe uses system.gc()?) did nothing.
Apparently this happens WITHOUT streaming as well. Just keeps growing while the program is doing nothing.
Last edit: Cris Teix 2016-10-13
New update: I used it today and there were no memory leaks, much to my dismay. Then, after over 1 hour of streaming, out of curiosity, I hit the RAM button to invoke system.gc() and lou and behold, memory started leaking after one click on that button!
This issue seems to affect only the "WebcamStudio1.0Alpha FX" and not the
normal version.
Hi Cris,
how about Java version? Oracle or OpenJDK + OpenFX?
You can also remove all system.gc() that are present in the code (if I
remember well the command is present in the "stopping stream" operation or
something similar)
Have a good weekend.
karl.
2016-10-13 19:23 GMT+02:00 Cris Teix powercosmic@users.sf.net:
Related
Tickets: #143