gstbasesink hang
Baby Octopus
jagadishkamathk at gmail.com
Mon Apr 1 23:04:34 PDT 2013
Hi,
My pipeline hangs after several hours of execution. The pipeline is nothing
but
gst-launch-1.0 udpsrc port=5000 ! decodebin ! x264enc ! mpegtsmux ! udpsink
host=192.168.2.123 port=10000
It is a simple video only re-encode pipeline and then stream it out. Here
the pipeline goes into a long wait after 20hours of execution(sometimes even
more). This is the gdb backtrace
#1 0x00007ffff686f98f in gst_poll_wait
(set=0x7a9ad0,timeout=95443756676080) at gstpoll.c:1254
#2 0x00007ffff6889911 in
gst_system_clock_id_wait_jitter_unlocked(clock=0x7b1160,
entry=0x7fffe006f020, jitter=0x7fffed2d90d0,restart=1) at
gstsystemclock.c:644
#3 0x00007ffff6889ccd in gst_system_clock_id_wait_jitter(clock=0x7b1160,
entry=0x7fffe006f020, jitter=0x7fffed2d90d0) atgstsystemclock.c:741
#4 0x00007ffff682fdda in gst_clock_id_wait
(id=0x7fffe006f020,jitter=0x7fffed2d90d0) at gstclock.c:512
#5 0x00007ffff6b2b1b7 in gst_base_sink_wait_clock
(sink=0x78f050,time=292485740405559, jitter=0x7fffed2d90d0) at
gstbasesink.c:1998
#6 0x00007ffff6b2c5ae in gst_base_sink_do_sync
(basesink=0x78f050,obj=0x7fffe006d190, late=0x7fffed2d9204,
step_end=0x7fffed2d9200) atgstbasesink.c:2372
#7 0x00007ffff6b30389 in gst_base_sink_chain_unlocked(basesink=0x78f050,
pad=0x76afd0, obj=0x7fffe006d190, is_list=0) atgstbasesink.c:3189
#8 0x00007ffff6b31140 in gst_base_sink_chain_main
(basesink=0x78f050,pad=0x76afd0, obj=0x7fffe006d190, is_list=0) at
gstbasesink.c:3323
#9 0x00007ffff6b312a9 in gst_base_sink_chain (pad=0x76afd0,parent=0x78f050,
buf=0x7fffe006d190) at gstbasesink.c:3352
#10 0x00007ffff685d72f in gst_pad_chain_data_unchecked
(pad=0x76afd0,type=4112, data=0x7fffe006d190) at gstpad.c:3654
#11 0x00007ffff685e203 in gst_pad_push_data (pad=0x79f180,
type=4112,data=0x7fffe006d190) at gstpad.c:3871
#12 0x00007ffff685e773 in gst_pad_push (pad=0x79f180,buffer=0x7fffe006d190)
at gstpad.c:3974
#13 0x00007fffed2e43f4 in mpegtsmux_push_packets (mux=0x7ae050,force=0) at
mpegtsmux.c:1342
#14 0x00007fffed2e37b5 in mpegtsmux_collected_buffer
(pads=0x7b1000,data=0x7aaef0, buf=0x7fffd80030a0, mux=0x7ae050) at
mpegtsmux.c:1170
#15 0x00007ffff6b52f7e in gst_collect_pads_default_collected(pads=0x7b1000,
user_data=0x0) at gstcollectpads.c:1494
#16 0x00007ffff6b52752 in gst_collect_pads_check_collected(pads=0x7b1000) at
gstcollectpads.c:1295
#17 0x00007ffff6b544bb in gst_collect_pads_chain
(pad=0x79f3b0,parent=0x7ae050, buffer=0x7fffd80030a0) at
gstcollectpads.c:2009
#18 0x00007ffff685d72f in gst_pad_chain_data_unchecked
(pad=0x79f3b0,type=4112, data=0x7fffdc0a1160) at gstpad.c:3654
#19 0x00007ffff685e203 in gst_pad_push_data (pad=0x79eaf0,
type=4112,data=0x7fffdc0a1160) at gstpad.c:3871
#20 0x00007ffff685e773 in gst_pad_push (pad=0x79eaf0,buffer=0x7fffdc0a1160)
at gstpad.c:3974
#21 0x00007ffff701a7a8 in gst_video_encoder_finish_frame(encoder=0x7a6c10,
frame=0x7fffdc0a1490) at gstvideoencoder.c:1856
#22 0x00007ffff7b12269 in gst_x264_enc_handle_frame(ps_video_enc=0x7a6c10,
ps_input_frame=0x7fffdc0a1490) at gstrs.c:800
#23 0x00007ffff70183a4 in gst_video_encoder_chain
(pad=0x79e8c0,parent=0x7a6c10, buf=0x7fffdc0a1380) at gstvideoencoder.c:1341
#24 0x00007ffff685d72f in gst_pad_chain_data_unchecked
(pad=0x79e8c0,type=4112, data=0x7fffdc0a1380) at gstpad.c:3654
#25 0x00007ffff685e203 in gst_pad_push_data (pad=0x79ef50,
type=4112,data=0x7fffdc0a1380) at gstpad.c:3871
#26 0x00007ffff685e773 in gst_pad_push (pad=0x79ef50,buffer=0x7fffdc0a1380)
at gstpad.c:3974
#27 0x00007ffff6b473ee in gst_base_transform_chain
(pad=0x79ed20,parent=0x7ac040, buffer=0x7fffdc0a1380) at
gstbasetransform.c:2203
#28 0x00007ffff685d72f in gst_pad_chain_data_unchecked
(pad=0x79ed20,type=4112, data=0x7fffdc0a1380) at gstpad.c:3654
#29 0x00007ffff685e203 in gst_pad_push_data (pad=0x79e690,
type=4112,data=0x7fffdc0a1380) at gstpad.c:3871
#30 0x00007ffff685e773 in gst_pad_push (pad=0x79e690,buffer=0x7fffdc0a1380)
at gstpad.c:3974
#31 0x00007ffff6b473ee in gst_base_transform_chain
(pad=0x79e460,parent=0x7a44c0, buffer=0x7fffdc0a1380) at
gstbasetransform.c:2203
#32 0x00007ffff685d72f in gst_pad_chain_data_unchecked
(pad=0x79e460,type=4112, data=0x7fffdc0a1380) at gstpad.c:3654
#33 0x00007ffff685e203 in gst_pad_push_data (pad=0x79e230,
type=4112,data=0x7fffdc0a1380) at gstpad.c:3871
#34 0x00007ffff685e773 in gst_pad_push (pad=0x79e230,buffer=0x7fffdc0a1380)
at gstpad.c:3974
#35 0x00007ffff6b473ee in gst_base_transform_chain
(pad=0x79e000,parent=0x7a2380, buffer=0x7fffdc0a1380) at
gstbasetransform.c:2203
#36 0x00007ffff685d72f in gst_pad_chain_data_unchecked
(pad=0x79e000,type=4112, data=0x7fffdc0a1380) at gstpad.c:3654
#37 0x00007ffff685e203 in gst_pad_push_data (pad=0x76b890,
type=4112,data=0x7fffdc0a1380) at gstpad.c:3871
#38 0x00007ffff685e773 in gst_pad_push (pad=0x76b890,buffer=0x7fffdc0a1380)
at gstpad.c:3974
#39 0x00007ffff6b473ee in gst_base_transform_chain
(pad=0x76b660,parent=0x799e20, buffer=0x7fffdc0a1380) at
gstbasetransform.c:2203
#40 0x00007ffff685d72f in gst_pad_chain_data_unchecked
(pad=0x76b660,type=4112, data=0x7fffdc0a1380) at gstpad.c:3654
#41 0x00007ffff685e203 in gst_pad_push_data (pad=0x76b430,
type=4112,data=0x7fffdc0a1380) at gstpad.c:3871
#42 0x00007ffff685e773 in gst_pad_push (pad=0x76b430,buffer=0x7fffdc0a1380)
at gstpad.c:3974
#43 0x00007fffee9dcdfe in gst_queue_push_one (queue=0x792020) at
gstqueue.c:1045
#44 0x00007fffee9dda94 in gst_queue_loop (pad=0x76b430) at gstqueue.c:1161
#45 0x00007ffff689139c in gst_task_func (task=0x7be000) at gsttask.c:316
#46 0x00007ffff68924a3 in default_func (tdata=0x7a8410, pool=0x624040)at
gsttaskpool.c:70
#47 0x00007ffff5ed12c9 in g_thread_pool_thread_proxy (data=<valueoptimized
out>) at gthreadpool.c:309
#48 0x00007ffff5ed04d5 in g_thread_proxy (data=0x796990) at gthread.c:797
#49 0x0000003bc6407851 in start_thread () from /lib64/libpthread.so.0
#50 0x0000003bc60e811d in clone () from /lib64/libc.so.6
I see that poll has got a timeout of 95443 seconds. Everytime it hangs, i
see the same wait, 95443 seconds. Anything fishy here? 95443 is actually
2^33 / 90000(33 bits for PCR 90KHz clock)
Any leads will be much appreciated. I have been debugging this for weeks now
~BO
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gstbasesink-hang-tp4659356.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list