[Bug 797152] vaapidec: leak of dmabuf fds when transitioning from PLAYING to NULL state

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Sep 17 12:16:26 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=797152

--- Comment #1 from Víctor Manuel Jáquez Leal <vjaquez at igalia.com> ---
(In reply to Sakari Kapanen from comment #0)
> Created attachment 373668 [details]
> I have an application at hand where it is necessary to repeatedly stop and
> start the stream. This issue causes memory leakage and, eventually, program
> crashing due to too many open files. I have also tried to more gracefully
> stop the pipeline by sending an EOS event and only transitioning to NULL
> state after receiving the event on the pipeline's bus. However, the results
> are similar - leakage happens even then. Is there something regarding the
> dmabufs that has to be taken account during such transitions, or is this
> simply a bug in gstreamer-vaapi?

It looks like a bug, indeed.

> Even though the attached code uses a home-baked function that counts the
> open dmabuf fds, the behaviour can be verified by e.g. watching the output
> of lsof:
> lsof -p $(pidof repro) | grep -c dmabuf
> 
> I would appreciate any input on how to resolve the issue (or if you can
> confirm it's an actual bug in gstreamer-vaapi or some other element).

Tracing the created buffers and detect those which aren't deallocated and
deallocate them at the right moment.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list