-
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 overflow #1622
Comments
Hey @fayfive Sorry you are having issues! You don't need to call I am not able to reproduce this right now. We have some basic tests to assert things don't leak, but we could have missed something. Would you mind doing a heap profile? If you are able to share the entire project that would even be better! I am happy to run it and debug also. thanks |
@Sean-Der Here is the link thanks |
I am able to reproduce this. The NACK Responder Interceptor has a leak. The issue is that sync.Map is GC'ed this seems to be related to golang/go#40999 I am moving to a map + mutex |
sync.Map is causing confusion around garbage collection so just removing the complexity all together. Relates to pion/webrtc#1622
Drops sync.Map usage and fixes leaks Resolves #1622
Drops sync.Map usage and fixes leaks Resolves #1622
@fayfive This is fixed with
Another thing I saw is that if a HTTP Request hung (SIGQUIT the client) that that PeerConnection created in the handler would stick even if |
@Sean-Der |
I wrote a program referring to the V3 broadcast example. Read local h264 to WriteSample(). The function is OK, but the memory can not be released. When a old watcher web page close, the memory can not be reduced. When a new watcher page open, the memory is increased. I use OnConnectionStateChange to listen PeerConnectionStateDisconnected. When PeerConnectionStateDisconnected, I RemoveTrack and close peerconnection.
The text was updated successfully, but these errors were encountered: