Open prakhar114 opened 6 months ago
Hi, thanks for reporting. First we need to analyse, where this RAM build-up is coming from. It could come from the sample code itself (unlikely, since it's pure Python), from the eCAL binding, from Protobuf, or from opencv which is used to read the webcam images.
We can check pure eCAL samples (e.g. person_snd) to see if that builds up memory. Maybe also the VideoCapture is building up data, and not freeing it.
Hello, I tested the following:-
Observation:-
@Kerstin-Keller any possible solution/workaround to fix this issue?
Hi @prakhar114 , sorry for the late answer. I now picked up this issue and wanted to reproduce the problem by
I did start the webcam app in the venv, and let everything run for 15-30 minutes. I could not see any increasing ram usage.
Then I modified the setup, like
Everytime with 5-15 minutes of monitoring. (Unfortunately?) There was never an increase in RAM usage visible, monitoring with htop.
So in order to debug your issue, could you please provide
I hope that we can find a solution soon together.
Problem Description
When I try to run ecal webcam_grabber.py from ecal-camera-samples/ecal_camera_send_python , the ram keeps on increasing and then if i keep running it for longer time,ram gets filled up completely.
Ram usage before running the webcam_grabber.py
Ram usage after running webcam_grabber.py for 5 min
Protobuff packet size is ~0.6MB
How to reproduce
clone this repo https://github.com/eclipse-ecal/ecal-camera-samples follow the python setup code in Readme connect a full hd(1920,1080) camera via usb (/dev/video0) run the webcam_grabber.py --compressed
Protobuff packet size is ~0.6MB
How did you get eCAL?
Download from Release Page
Environment
eCAL System Information