-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[0.x] Possible memory leaks found with libasan latest #3367
Comments
Versions: loop_index is set to 4 build on Ubuntu 24.04 in Docker jnaus build with: |
I'm sorry, but I won't debug logs related to plugins that are not part of this repo, let alone potentially proprietary ones. If you can replicate the problem with the stock code feel free to reopen. |
a few notes:
|
understand and thanks for the Feedback @atoppi i add a new test and the session is closed after i hit CTRL-C the new test was with older ubuntu 20.04 LTS and not enable event_loop |
@atoppi can i ask what version of https://github.com/sctplab/usrsctp is used in your test? i wonder if this has something to do with the datachannels |
commit |
Thank you, used the same version on test do you have any Idea what resources, we should look at in the rust plugin? |
@arpu please stop linking to the code of third party plugins. As already discussed, we won't inspect or debug code that doesn't belong to this repo. |
any interests to bring this rust plugin to the official janus repo? |
Question if we send a Datachannel with the plugin as message a DataChannel is opened https://github.com/meetecho/janus-gateway/blob/0.x/janus.c#L1662 do we need to use janus_dtls_srtp_destroy and free in the Plugin? |
this is the cleanup after removing 2 clients from same room ( audio video datachannel) |
Thank you @atoppi for your notes, much appreciated.
with the two following fixes:
But we have the following direct leak with latest libnice:
g_malloc0 is from (in 0.x branch) Line 189 in a7767ad
As far as I can see this has nothing to do with the rust plugin and janus_sctp_association_destroy(sctp) seems to be called in all relevant cases. So I really have no clue about this one.
I tested the following libnice versions: I know you guys don't support debugging third party plugin. I'm just putting this here in case it rings a bell to you and there is something obvious for you or maybe an incompatibility between libstrp and libnice versions you know of. |
What version of Janus is this happening on?
v0.14.3
Have you tested a more recent version of Janus too?
Yes
We use the Rust plugin janus plugin for video Audio + datachannel, and we see some memory growing over time
at the moment i am not sure if this is a janus problem or the rust plugin https://github.com/networked-aframe/janus-plugin-sfu
janus log + libasan output with 2 users connceted each sending audi/video +datachannel,
after both of them leave the Room i close janus with Ctrl+C
https://gist.github.com/arpu/1280532db480c8a3bd045784aef2cad9
The text was updated successfully, but these errors were encountered: