<div dir="ltr">Hi,<br><div><br>On Wed, 22 Mar 2017 at 08:57 silver <<a href="mailto:sxhsxhsxh66@gmail.com">sxhsxhsxh66@gmail.com</a>> wrote:<br class="gmail_msg"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I tried to test the stability of my application so I programmatically open<br class="gmail_msg">
and close the window again and again. But always after thousands iterations,<br class="gmail_msg">
no response from JVM but no special errors (neither gstreamer nor java)<br class="gmail_msg">
shown in console. I assume that it encountered a deadlock on gstreamer level<br class="gmail_msg">
but I cannot find any solution to debug or even solve it. Hope you guys can<br class="gmail_msg">
help me.<br class="gmail_msg"></blockquote><div><br></div><div>Have you tried profiling and a thread dump on the Java side?  When updating the 0.10 bindings for gst1-java-core I fixed a load of memory leaks, but it's possible your code is finding another one.  Is memory usage increasing?  Are any particular objects not being garbage collected?  Does the thread dump show a potential deadlock inside the JVM?<br><br></div><div>Note that you should probably be calling buffer.map(true) - the boolean is a shortcut for mapping the buffer with the write flag.<br><br></div><div>I'm not sure what your stopFromNeedData() call is doing, but it should probably use Gst,invokeLater().<br><br></div><div>Best wishes.<br><br></div><div>Neil <br></div></div></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">Neil C Smith<div>Artist & Technologist</div><div><a href="http://www.neilcsmith.net">www.neilcsmith.net</a></div><div><br></div><div>Praxis LIVE - hybrid visual IDE for creative coding - <a href="http://www.praxislive.org">www.praxislive.org</a></div></div></div>