After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 796920 - splitmuxsink: memory leak
splitmuxsink: memory leak
Status: RESOLVED DUPLICATE of bug 796893
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.14.x
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-08-03 13:27 UTC by Peter Seiderer
Modified: 2018-08-14 16:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Peter Seiderer 2018-08-03 13:27:49 UTC
Simple h264 encoding pipeline using splitmuxsink leaks memory:

    $ GST_TRACERS="leaks" GST_DEBUG="GST_TRACER:7" GST_DEBUG_COLOR_MODE=off gst-launch-1.0 videotestsrc num-buffers=200 ! openh264enc ! h264parse ! splitmuxsink location="output.mp4"

0:00:00.047104000   424   0xa7f0a0 DEBUG             GST_TRACER gsttracer.c:164:gst_tracer_register:<registry0> update existing feature 0xa10488 (latency)
0:00:00.047301667   424   0xa7f0a0 DEBUG             GST_TRACER gsttracer.c:164:gst_tracer_register:<registry0> update existing feature 0xa10500 (log)
0:00:00.047379333   424   0xa7f0a0 DEBUG             GST_TRACER gsttracer.c:164:gst_tracer_register:<registry0> update existing feature 0xa10578 (rusage)
0:00:00.047456667   424   0xa7f0a0 DEBUG             GST_TRACER gsttracer.c:164:gst_tracer_register:<registry0> update existing feature 0xa105f0 (stats)
0:00:00.047545000   424   0xa7f0a0 DEBUG             GST_TRACER gsttracer.c:164:gst_tracer_register:<registry0> update existing feature 0xa10668 (leaks)
0:00:00.047882667   424   0xa7f0a0 TRACE             GST_TRACER gsttracerrecord.c:111:gst_tracer_record_build_format: object-alive.class, type-name=(structure)"value\,\ type\=\(type\)gchararray\,\ related-to\=\(GstTracerValueScope\)GST_TRACER_VALUE_SCOPE_PROCESS\;", address=(structure)"value\,\ type\=\(type\)gpointer\,\ related-to\=\(GstTracerValueScope\)GST_TRACER_VALUE_SCOPE_PROCESS\;", description=(structure)"value\,\ type\=\(type\)gchararray\,\ related-to\=\(GstTracerValueScope\)GST_TRACER_VALUE_SCOPE_PROCESS\;", ref-count=(structure)"value\,\ type\=\(type\)guint\,\ related-to\=\(GstTracerValueScope\)GST_TRACER_VALUE_SCOPE_PROCESS\;", trace=(structure)"value\,\ type\=\(type\)gchararray\,\ related-to\=\(GstTracerValueScope\)GST_TRACER_VALUE_SCOPE_PROCESS\;";
0:00:00.047980667   424   0xa7f0a0 DEBUG             GST_TRACER gsttracerrecord.c:125:gst_tracer_record_build_format: new format string: object-alive, type-name=(string)%s, address=(gpointer)%p, description=(string)%s, ref-count=(uint)%u, trace=(string)%s;
0:00:00.048237000   424   0xa7f0a0 TRACE             GST_TRACER gsttracerrecord.c:111:gst_tracer_record_build_format: object-refings.class, ts=(structure)"value\,\ type\=\(type\)guint64\,\ related-to\=\(GstTracerValueScope\)GST_TRACER_VALUE_SCOPE_PROCESS\;", type-name=(structure)"value\,\ type\=\(type\)gchararray\,\ related-to\=\(GstTracerValueScope\)GST_TRACER_VALUE_SCOPE_PROCESS\;", address=(structure)"value\,\ type\=\(type\)gpointer\,\ related-to\=\(GstTracerValueScope\)GST_TRACER_VALUE_SCOPE_PROCESS\;", description=(structure)"value\,\ type\=\(type\)gchararray\,\ related-to\=\(GstTracerValueScope\)GST_TRACER_VALUE_SCOPE_PROCESS\;", ref-count=(structure)"value\,\ type\=\(type\)guint\,\ related-to\=\(GstTracerValueScope\)GST_TRACER_VALUE_SCOPE_PROCESS\;", trace=(structure)"value\,\ type\=\(type\)gchararray\,\ related-to\=\(GstTracerValueScope\)GST_TRACER_VALUE_SCOPE_PROCESS\;";
0:00:00.048327000   424   0xa7f0a0 DEBUG             GST_TRACER gsttracerrecord.c:125:gst_tracer_record_build_format: new format string: object-refings, ts=(guint64)%llu, type-name=(string)%s, address=(gpointer)%p, description=(string)%s, ref-count=(uint)%u, trace=(string)%s;
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:00.344191667
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
0:00:00.510253667   424   0xa7f0a0 TRACE             GST_TRACER :0:: object-alive, type-name=(string)GstPad, address=(gpointer)0xa908b8, description=(string)<queue0:sink>, ref-count=(uint)2, trace=(string);
0:00:00.510391000   424   0xa7f0a0 TRACE             GST_TRACER :0:: object-alive, type-name=(string)GstPad, address=(gpointer)0xa90a10, description=(string)<queue0:src>, ref-count=(uint)2, trace=(string);
0:00:00.510457667   424   0xa7f0a0 TRACE             GST_TRACER :0:: object-alive, type-name=(string)GstQueue, address=(gpointer)0xab6048, description=(string)<queue0>, ref-count=(uint)1, trace=(string);

** (gst-launch-1.0:424): WARNING **: Leaks detected
Comment 1 Jan Schmidt 2018-08-14 16:08:13 UTC
Thanks for the test case. Tracking the fix in Bug 796893

*** This bug has been marked as a duplicate of bug 796893 ***