Skip to content
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

Fix some memory leaks with multi-period live streams #4666

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

tea
Copy link
Contributor

@tea tea commented Jan 20, 2025

Each new period introduces new tracks; they should be completely wiped out of existence once the period is gone from mpd, but it seems some of the dash.js code never ever lets go of them. As of now, each new period introduces many new functions and contexts; many are callbacks into EventBus which reveals some of the worst offenders. And then there are just plain old forgotten cleanups.

Most of the leaks plugged here could be observed by simply looking at JS heap behaviour when browsing http://reference.dashif.org/dash.js/nightly/samples/multiperiod/live.html .

@tea tea force-pushed the fix-memory-leaks branch from 13ef501 to bc97d34 Compare January 20, 2025 08:54
@dsilhavy dsilhavy added this to the 5.0.0 milestone Jan 20, 2025
@dsilhavy dsilhavy self-assigned this Jan 20, 2025
@dsilhavy dsilhavy merged commit bae2c5b into Dash-Industry-Forum:development Jan 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants