question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Memory leak when creating segment references from a timeline

See original GitHub issue

Have you read the FAQ and checked for duplicate open issues? Yes

What version of Shaka Player are you using? v3.0.6-master

Can you reproduce the issue with our latest release version? Yes

Can you reproduce the issue with the latest code from master? Yes

Are you using the demo app or your own custom app? Both

If custom app, can you reproduce the issue using our demo app? Yes

What browser and OS are you using? Chrome Version 87.0.4280.88 (Official Build) (x86_64) MacOS 11.0.1

For embedded devices (smart TVs, etc.), what model and firmware version are you using? Chromecast (2nd generation)

What are the manifest and license server URIs?

What did you do? Playing our Dash live stream that contains 90 minutes of buffer.

What did you expect to happen? No buffering like v2.5.x version.

What actually happened? We found the issue within our app with the latest Chromecast CAF receiver update (November 22, 2020) that use Shaka 3.0.x. With our live stream containing 90 minutes of buffer, we notice high level of buffering issue with our customer.

production-issue-caf3 0 085

With some investigation, I found that Shaka player leak memory with Dash live manifest. shaka-demo-app-leak

Into my Chromecast receiver app, I logged the usedJSHeapSize and the heap size never stop growing.

09:49:15.562 Shaka test /// usedJSHeapSize: 97.607819 MB  /// lower usedJSHeapSize: 27.552935 /// higher usedJSHeapSize: 98.064532
09:49:15.564 Shaka test /// usedJSHeapSize increased 70 MB in 344 seconds since beginning of live playback session

It seems that we are not alone with this issue - https://issuetracker.google.com/issues/173897425

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
joeyparrishcommented, Jan 6, 2021

Yes. I was doing test passes yesterday, and had some issues crop up with the v2.5 cherry-picks that I still need to resolve.

1reaction
joeyparrishcommented, Dec 28, 2020

It has been cherry-picked for v3.0.7. We’re short-handed right now, on top of which we have holidays at the moment. I will plan to release v3.0.7 in the week of January 5 at the latest.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Memory leak when creating segment references from a timeline
Memory leak when creating segment references from a timeline #3038 ... With some investigation, I found that Shaka player leak memory with ...
Read more >
Understanding Memory Leaks In Programming - Medium
A leak generally occurs when the memory allocated for the object is not freed when the allocated block of memory is no longer...
Read more >
Isolating memory leaks with Chrome's Allocation Timeline
Memory leaks can slow down your app and may eventually cause it to crash. ... Keeping references to the strings we're creating in...
Read more >
Memory leak - Wikipedia
In computer science, a memory leak is a type of resource leak that occurs when a computer program incorrectly manages memory allocations in...
Read more >
Memory Leak Analysis using Time-Travel-based and Timeline ...
ory monitoring tool and applied it in two memory leak case studies. CCS Concepts. •General and reference → Performance; •Software and its engineering ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found