Description
Shaka seems to accumulate the playing stream buffer/ranges in memory in Chrome, resulting in large amounts of memory spent by the browser tab process. For instance, after one hour of playback, 1,6 GB is used by the browser tab, with Shaka playing the test stream referred underneath.
We have had other tests where the memory usage easily exceeded 2,5 GB, according to the task manager in Chrome. For a lot of users, this means Chrome and/or the computer slows down, and the browser or tab is crashing.
By recording heap allocations in the Profiles tool of Chrome DevTools, it looks like most of the memory usage originates from ArrayBuffer structures. Does Shaka miss some cleanup of played ranges?
This live test stream can be used for reproducing the problem in Shaka:
http://hls-live.akamai.tv2.no/wzlive3/_definst_/amlst:GT.smil/manifest.mpd
The problem is also apparent on on demand streams. For instance, movies are long enough to make this a problem for end users.