[Bug 707523] d3dvideosink memleak

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jul 18 12:04:07 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=707523
  GStreamer | gst-plugins-bad | 1.x

voskater15 changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |voskater15 at gmail.com

--- Comment #39 from voskater15 at gmail.com 2014-07-18 19:04:03 UTC ---
I've noticed a huge leak in the d3d resources specially on Windows 7, I can
only give facts, not code (yet, I haven't revised d3dvideosink plugin).

I say that on Windows 7 because my project works like a charm on Windows 8.1
Pro, it does not leaking memory with that OS.

Well the internals of my projects are implemented in this way:

Plugins version-> 1.2.4 (libstd3dvideosink has all the fixes commented in
bugzilla and the plugins-bad cgit site, and some improvements by myself).

Pipeline -> Playbin plugin
Video-Sink -> d3dvideosink (libgstd3dvideosink.dll)

I never dispose my pipeline, only when I receive an error in the bus pipeline,
so what I do when I want to load a new stream is to change the state of the
pipeline to GST_STATE_READY, so the video-sink (d3d) goes to GST_STATE_NULL
when the state transition finishes.

I recompiled libgstd3dvideosink few weeks ago with the MULTITHREAD flag (I
commented that to you Sebastian remember?) and also updated to Directx9 Ex
version (this gains 50% performance, so guys ...what are you waiting for?
hehe).

Well this are the facts that I have noticed on both Windows OS.

On Windows 7 x64:

If I put 3 .mp4 videos in a row within 1 minute the memory increases a lot and
if I stop the pipeline or change to audio streams, RAM stays uncleaned. After
stoping the pipeline I attach a debugger to see what dependencies stays on
memory and I can see 4 nvd3dum.dll. On others Windows 7 I can see 4 d3d9.dll.

On Windows 8.1 Pro x64:

Same as above, RAM incerases a little bit, but It disposes itself I leave the
video playing either I stop the pipeline or play audio streams.

Question is:

What's the difference between memory management and DX resources management on
Windows 7 and Win 8?

Well my business depends on this so I can help like last time, I'll test a
little bit but if I see that I cannot fix it then I'll look at the plugin.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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