-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 on multi-period streams #6239
Comments
Duplicate of #6070 |
Reopening. |
@bbert Can you test if it still happens with 4.8.3? Thanks! |
@avelad Have you tested on your side? |
We solved a memory leak, but I didn't know if it had solved all your problems or not. |
My asumption is that memory consumption should not constantly increase in any case. |
Do you want send a PR to fix it? |
For the time being, I'm not enough aware of source code to try to fix it in the shot term. It seems indeed that the initial reason of the identified memory leak has been fixed (as discussed in #6070), but here is a potential clue to identify the leak: |
I have tested the stream in this issue with Cobalt browser with a simple html page and default shaka config. Using main branch (12 May, last commit 5f8628a). I can confirm growing memory usage. Also tested in Chromium (124.0.6367.155, Xubuntu 22.04) and see these JS heap size: PS. We have a similar problem with another dash live stream and I have a fix for it. However that fix doesn't solve this issue. |
@bbert I think we have improved the memory usage significantly, you can check it in the main branch and nightly. If the problem is solved for you, please let us know. |
Issue #6239 --------- Co-authored-by: Álvaro Velad Galván <[email protected]>
Hi @avelad thanks for the update and thanks for the fix ! |
thanks for the update @bbert! Since we have already improved everything we could, I proceed to close the issue as resolved! |
Have you read the FAQ and checked for duplicate open issues?
Yes
If the problem is related to FairPlay, have you read the tutorial?
Yes
What version of Shaka Player are you using?
4.2.x => 4.7.x
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from
main
?Yes
Are you using the demo app or your own custom app?
Demo app
If custom app, can you reproduce the issue using our demo app?
Yes
What browser and OS are you using?
chrome, windows
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
What are the manifest and license server URIs?
https://d24rwxnt7vw9qb.cloudfront.net/v1/dash/e6d234965645b411ad572802b6c9d5a10799c9c1/All_Reference_Streams/4577dca5f8a44756875ab5cc913cd1f1/index.mpd
What configuration are you using? What is the output of
player.getConfiguration()
?Default
What did you do?
Play stream and take memory heap snapshots using chrome dev tools at different times
What did you expect to happen?
Memory heap to be stable
What actually happened?
Memory heap grows consistently for multi-period streams.
On mono-period streams, we dot not notice the same result.
Please find screenshots:
Heap snapshots to illustrate inscrease of memory consumption:
Snapshots comparison after 45 minutes
Details and allocation call stack (based on v4.5.x) of retained objects
Please note that all objects (Text, Element, NodeList ...) are allocated in the same place.
The text was updated successfully, but these errors were encountered: