-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Memory leak #2075
Comments
That isn't good @C-monC! I look at Payload and nothing is obvious to me yet. The only time we store things outside the scope of the function it is a set (and not an append). Is it possible to recreate this just using a payloader? Would you be able to capture the H264 packets and reproduce this? |
I am also available on Slack if you want to debug quicker. |
I've taken a single payload and sent it in a forever loop to the payloader and there is no increase in memory. Does this mean somehow the calls to H264Payloader.Payload are increasing? I am not sure how to interpret the heap dump. Moving to slack, thank you. |
Unfortunately I am not sure what fixed it. After many debugging/profiling hours it just went away. The Payload node in the graph gets capped at about 15mb now. Thanks for the help @Sean-Der. I'll update this thread if I figure out what happened. |
Hey there, @Sean-Der I've stumbled across this issue and am not sure if my findings are still relevant (we are on the v3 version of the package). My application sounded similar enough, we read Could the fact that my For better context.. here's how we're using it: I meant the length of the |
Hi,
I'm restreaming rtsp cameras over webrtc using pion. It works, I can view the streams but it leaks about a mb every 10 seconds.
Here is the go routine I use to make webrtc.NewTrackLocalStaticSample tracks which I add to peer connections.
I can try make a minimal example if that's necessary. It seems like the inflating function is at pion/rtp/codecs/h264_packet.go line 72.
I collected the heap after running the program for a while.
Early on:
after a few minutes:
If I leave the programming running for 2 days it ends up with around 2gb of ram usage.
The datachannel has a similar problem but it is not as severe.
The text was updated successfully, but these errors were encountered: