GNOME Bugzilla – Bug 796920
splitmuxsink: memory leak
Last modified: 2018-08-14 16:08:13 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
Thanks for the test case. Tracking the fix in Bug 796893 *** This bug has been marked as a duplicate of bug 796893 ***