[Webkit-unassigned] [Bug 46560] [LEAK] [GStreamer] Removing video element will not free assigned memory

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Nov 1 02:11:12 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=46560

--- Comment #13 from Philippe Normand <pnormand at igalia.com> ---
I'd rather move this to the MediaPlayerPrivateInterface directly to avoid code duplication. ::totalBytes() could also be declared there.

I have a similar patch here and it works but not in the best way :) I can see the GC is triggered after many add/remove steps. But that default implementation is not the best because it depends on the media file size. So if you use a large file the GC will be triggered faster. Another option would be to force a smaller size for the heap (with the JSC_maxHeapSize env var IIRC).

Ideally we'd need to know how much memory is used by the gst libs but it's not a trivial task...

Another workaround would be to call clearMediaPlayer() within HTMLMediaElement after it was removed from its container but I'm not sure such patch would be approved :)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141101/23b8a947/attachment-0002.html>


More information about the webkit-unassigned mailing list