<div dir="ltr">Hi<div><div><br></div><div>1. How many bytes are "leaking" every iteration? Is it a factor of page size? It doesn't look like it based on your massif output, but I might be wrong. If not, how many bytes?</div>
</div><div><div>2. Would be interesting to monitor 'grep stack /proc/$pid/maps' to see whats going on while the app runs. If you have procfs (and are running on linux) that is.<br></div></div><div><br></div><div>Since you are stopping and starting the pipeline, you are basically joining a couple of threads and starting new ones. Running your app in GDB would probably show messages indicating this. Could it be a leak in either the kernel or user space threading library? Far fetched, but maybe worth while checking out? Writing a simple application spawning a lot of threads should in theory then be "leaking" as well.</div>
<div><br></div><div>Best regards,</div><div>Haakon</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 1, 2014 at 8:43 PM, jbvulai <span dir="ltr"><<a href="mailto:jb.vu.lai@gmail.com" target="_blank">jb.vu.lai@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes i've been using valgrind. Did not definitive loss has been found. I've<br>
also checked using GST_TRACE when i run my code on linux with GStreamer 1.0.<br>
The stack that i've been referring to is the stack that valgrind massif<br>
shows me. Memory heap shows no growth. Only the stack has a suspicious<br>
behaviour from what i see.<br>
<br>
I've posted the screenshot result of the massif output of valgrind for<br>
eclipse, ill attach them again here.<br>
<br>
<<a href="http://gstreamer-devel.966125.n4.nabble.com/file/n4666697/Massif-gst0_10-x300.png" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/file/n4666697/Massif-gst0_10-x300.png</a>><br>
<<a href="http://gstreamer-devel.966125.n4.nabble.com/file/n4666697/Massif-gst1_0-x300.png" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/file/n4666697/Massif-gst1_0-x300.png</a>><br>
<<a href="http://gstreamer-devel.966125.n4.nabble.com/file/n4666697/Massif-gst0_10-onoff-test.png" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/file/n4666697/Massif-gst0_10-onoff-test.png</a>><br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Stack-memory-issue-with-gstreamer-tp4666681p4666697.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Stack-memory-issue-with-gstreamer-tp4666681p4666697.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>