<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Too late now - will do if it shows up again. It is very much not repeatable. Suggestions on how I could *make it* more repeatable, or, better, not happen at all :) ?</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">-Bill</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 1, 2022 at 6:05 AM Nicolas Dufresne via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>Le lundi 31 octobre 2022 à 17:05 -0700, Bill Hofmann via gstreamer-devel a écrit :</div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Folks:</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Running 1.20.4 on Ubuntu 22.04, my (python) code seeks:</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div>Oct 27 07:27:55 player0 python3[7546]: set_seek_and_rate 20849000000000ns 2022-10-27T07:27:55.185108-07:00<br><div class="gmail_default" style="font-family:verdana,sans-serif">An hour or two later I noted that it was hard hung. Attaching to python3 using gdb, the stack trace looks like below. This required a power cycle, as shutdown or kill -9 the process would not work. This is VERY intermittent - first time I've seen in months. HOWEVER, since this is intended to be mostly unattended, it worries me.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default"><font face="monospace" size="1">[Thread debugging using libthread_db enabled]<br>Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".<br>futex_wait (private=0, expected=2, futex_word=0x555c97ea0cf0) at ../sysdeps/nptl/futex-internal.h:146<br>146 ../sysdeps/nptl/futex-internal.h: No such file or directory.<br>(gdb) bt</font></div></div></blockquote><div><br></div><div>As its possibly a deadlock, can you run "thread apply all bt", so we can locate, if any, the other thread implicated ?</div><div><br></div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div dir="ltr"><div class="gmail_default"><font face="monospace" size="1"><b>#0 futex_wait (private=0, expected=2, futex_word=0x555c97ea0cf0) at ../sysdeps/nptl/futex-internal.h:146<br>#1 __GI___lll_lock_wait (futex=futex@entry=0x555c97ea0cf0, private=0) at ./nptl/lowlevellock.c:49<br>#2 0x00007faad55a70dd in lll_mutex_lock_optimized (mutex=0x555c97ea0cf0) at ./nptl/pthread_mutex_lock.c:48<br>#3 ___pthread_mutex_lock (mutex=0x555c97ea0cf0) at ./nptl/pthread_mutex_lock.c:128<br>#4 0x00007faad3045736 in gst_element_send_event (element=0x555c97f54110, event=0x7faa8c0c81d0) at ../subprojects/gstreamer/gst/gstelement.c:1980<br></b>#5 0x00007faad3988e2e in () at /lib/x86_64-linux-gnu/libffi.so.8<br>#6 0x00007faad3985493 in () at /lib/x86_64-linux-gnu/libffi.so.8</font></div></div></blockquote><div><br></div><div>ffi debug symbols will help a lot.</div><div><br></div><div>regards,</div><div>Nicolas</div><div><br></div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div dir="ltr"><div class="gmail_default"><font face="monospace" size="1">#7 0x00007faad3b70722 in () at /usr/lib/python3/dist-packages/gi/_<a href="http://gi.cpython-310-x86_64-linux-gnu.so" target="_blank">gi.cpython-310-x86_64-linux-gnu.so</a><br>#8 0x00007faad3b6e826 in () at /usr/lib/python3/dist-packages/gi/_<a href="http://gi.cpython-310-x86_64-linux-gnu.so" target="_blank">gi.cpython-310-x86_64-linux-gnu.so</a><br>#9 0x00007faad3b6ea7d in () at /usr/lib/python3/dist-packages/gi/_<a href="http://gi.cpython-310-x86_64-linux-gnu.so" target="_blank">gi.cpython-310-x86_64-linux-gnu.so</a><br>#10 0x0000555c956fe3bb in _PyObject_MakeTpCall ()<br>#11 0x0000555c956f6f59 in _PyEval_EvalFrameDefault ()<br>#12 0x0000555c9570812c in _PyFunction_Vectorcall ()<br>#13 0x0000555c956f09e6 in _PyEval_EvalFrameDefault ()<br>#14 0x0000555c9570812c in _PyFunction_Vectorcall ()<br>#15 0x0000555c956f09e6 in _PyEval_EvalFrameDefault ()<br>#16 0x0000555c9570812c in _PyFunction_Vectorcall ()<br>#17 0x0000555c956f09e6 in _PyEval_EvalFrameDefault ()<br>#18 0x0000555c95715c5e in ()<br>#19 0x00007faad3b7254f in () at /usr/lib/python3/dist-packages/gi/_<a href="http://gi.cpython-310-x86_64-linux-gnu.so" target="_blank">gi.cpython-310-x86_64-linux-gnu.so</a><br>#20 0x00007faad39887ec in () at /lib/x86_64-linux-gnu/libffi.so.8<br>#21 0x00007faad3989050 in () at /lib/x86_64-linux-gnu/libffi.so.8<br>#22 0x00007faad3a672a8 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0<br>#23 0x00007faad3a66c24 in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0<br>#24 0x00007faad3abb6f8 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0<br>#25 0x00007faad3a66293 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0<br>#26 0x00007faad3988e2e in () at /lib/x86_64-linux-gnu/libffi.so.8<br>#27 0x00007faad3985493 in () at /lib/x86_64-linux-gnu/libffi.so.8<br>#28 0x00007faad3b70722 in () at /usr/lib/python3/dist-packages/gi/_<a href="http://gi.cpython-310-x86_64-linux-gnu.so" target="_blank">gi.cpython-310-x86_64-linux-gnu.so</a><br>#29 0x00007faad3b6e826 in () at /usr/lib/python3/dist-packages/gi/_<a href="http://gi.cpython-310-x86_64-linux-gnu.so" target="_blank">gi.cpython-310-x86_64-linux-gnu.so</a><br>#30 0x00007faad3b6ea7d in () at /usr/lib/python3/dist-packages/gi/_<a href="http://gi.cpython-310-x86_64-linux-gnu.so" target="_blank">gi.cpython-310-x86_64-linux-gnu.so</a><br>#31 0x0000555c956fe3bb in _PyObject_MakeTpCall ()<br>#32 0x0000555c956f6f59 in _PyEval_EvalFrameDefault ()<br>#33 0x0000555c9570812c in _PyFunction_Vectorcall ()<br>#34 0x0000555c956f09e6 in _PyEval_EvalFrameDefault ()<br>#35 0x0000555c9570812c in _PyFunction_Vectorcall ()<br>#36 0x0000555c956f09e6 in _PyEval_EvalFrameDefault ()<br>#37 0x0000555c9570812c in _PyFunction_Vectorcall ()<br>#38 0x0000555c956f08a1 in _PyEval_EvalFrameDefault ()<br>#39 0x0000555c956ed026 in ()<br>#40 0x0000555c957e3106 in PyEval_EvalCode ()<br>#41 0x0000555c9580fe18 in ()<br>#42 0x0000555c95808c6b in ()<br>#43 0x0000555c9580fb65 in ()<br>#44 0x0000555c9580f048 in _PyRun_SimpleFileObject ()<br>#45 0x0000555c9580ed43 in _PyRun_AnyFileObject ()<br>#46 0x0000555c9580017e in Py_RunMain ()<br>#47 0x0000555c957d60dd in Py_BytesMain ()<br>#48 0x00007faad5538d90 in __libc_start_call_main (main=main@entry=0x555c957d60a0, argc=argc@entry=3, argv=argv@entry=0x7ffe8279e068) at ../sysdeps/nptl/libc_start_call_main.h:58<br>#49 0x00007faad5538e40 in __libc_start_main_impl (main=0x555c957d60a0, argc=3, argv=0x7ffe8279e068, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe8279e058)<br> at ../csu/libc-start.c:392<br>#50 0x0000555c957d5fd5 in _start ()<br></font></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Actual seek code:</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default"><font face="monospace" size="1"> flags = Gst.SeekFlags.TRICKMODE | Gst.SeekFlags.KEY_UNIT | Gst.SeekFlags.SNAP_NEAREST | Gst.SeekFlags.FLUSH<br><br> seek_event = Gst.Event.new_seek(rate,<br> Gst.Format.TIME,<br> flags,<br> Gst.SeekType.SET, position_nanoseconds,<br> Gst.SeekType.NONE, 0)<br><br> if seek_event:<br> self._player.send_event(seek_event)<br> else:<br> Gst.error("change rate failed")<br></font></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Pipeline:</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default"><font face="monospace">souphttpsrc location="<a href="http://localhost/foo.m3u8" target="_blank">http://localhost/foo.m3u8</a>" ! </font></div><div class="gmail_default"><font face="monospace"> parsebin name=pb ! queue ! vaapih265dec !<br> video/x-raw,format=P010_10LE ! </font></div><div class="gmail_default"><font face="monospace"> queue max-size-bytes=100663300 ! </font></div><div class="gmail_default"><font face="monospace"> kmssink connector-id=308 plane-id=31<br> pb. ! queue ! fdkaacdec ! scaletempo ! volume volume=0.9 ! alsasink<br></font></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Thoughts?</div><div class="gmail_default" style="font-family:verdana,sans-serif">-Bill</div></div></blockquote><div><br></div><div><span></span></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="color:rgb(51,51,51);font-family:verdana,sans-serif">Bill Hofmann</span><br></div><div><span style="color:rgb(102,102,102);font-family:verdana,sans-serif">+1 510 387-0952</span><br></div></div></div></div></div></div>