-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Important memory leak of v4l2-relayd service after each camera start #93
Comments
Thank you @thomasarmel . Would you help attach the full valgrind report? |
Hi, |
What was your test flow? When libcamhal is killed, valgrind will report many places leaked but I added num-buffers=5 to make it automatically exit after 5 frames. In this case, valgrind only reported 3 leak points which are all in libia_cca.so. |
After capturing a few frames I sent a SIGINT to the v4l2-relayd process, in order to ensure Valgrind exited correctly (which is not the case using SIGKILL). My OS is Ubuntu 22.04.4 LTS. My laptop is a Dell Precision 5480. Camera format is NV12, 1280x720, 30 fps. |
What is the application are you using? |
For the valgrind report I shared it was google-chrome, but it works with any application that uses the camera. |
I looked into our source code and did some tests on my side. I found that:
Concluding from the above, the memory leakage should happens in the v4l2-relayd or v4l2loopback. Canonical owns v4l2-relayd and v4l2loopback now, so I think we need their help to look into this issue. |
Hi, |
Could you execute |
Hi, |
Hi dear developers,
Some time ago, I noticed an important memory leak of v4l2-relayd service on my Ubuntu 22.04.4 LTS laptop : a couple of GB after some video calls.
I decided to investigate using valgrind and found it comes from this lib.
I noticed memory is leaked each time camera is restarted.
I plan to investigate a little bit further myself, please do not hesitate if you need more precisions :)
Best regards
The text was updated successfully, but these errors were encountered: