Re: OpenGL 2.0 vo driver

Michal Novotny <[email protected]> Thu, 10 May 2012 15:15:11 +0200
Newsgroups gmane.comp.video.xine.devel
Message-ID <[email protected]>
Hi Christophe,

I'm experiencing a deadlock when using this opengl2 output. Below is the 
backtrace. Threads 1,15 and 17 are blocked. Does anybody have an idea 
what could be wrong? This is not necessarily related to your patch, 
since I remember that I had a similar problem with vdr-xineliboutput. 
That one was caused by hiding the mouse cursor. Instead of solving it 
properly I simply commented out the code that hides the cursor.

Thanks for any help,
Michal


(gdb) t a a bt

Thread 18 (Thread 0x7fbe4d593700 (LWP 15422)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x00000000004838e8 in _tips_loop_thread (data=<value optimized out>) 
at tips.c:84
#2  0x0000003b54406ccb in start_thread (arg=0x7fbe4d593700) at 
pthread_create.c:301
#3  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 17 (Thread 0x7fbe4cd92700 (LWP 15423)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000003b5544db07 in _XReply (dpy=0x1d781f0, rep=0x7fbe4cd91d60, 
extra=0, discard=1) at xcb_io.c:526
#2  0x0000003b554414c3 in XSync (dpy=0x1d781f0, discard=0) at Sync.c:46
#3  0x000000000045791e in video_window_set_mrl (mrl=<value optimized 
out>) at videowin.c:2398
#4  0x000000000043d4c3 in slider_loop (dummy=<value optimized out>) at 
panel.c:442
#5  0x0000003b54406ccb in start_thread (arg=0x7fbe4cd92700) at 
pthread_create.c:301
#6  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 16 (Thread 0x7fbe4c591700 (LWP 15424)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x00007fbe536b1738 in metronom_sync_loop (this_gen=0x1eb7270) at 
metronom.c:889
#2  0x0000003b54406ccb in start_thread (arg=0x7fbe4c591700) at 
pthread_create.c:301
#3  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 15 (Thread 0x7fbe4ae20700 (LWP 15425)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000003b55432690 in _XDisplayLockWait (dpy=0x1d781f0) at locking.c:447
#2  0x0000003b5544db67 in _XReply (dpy=0x1d781f0, rep=0x7fbe4ae1fa30, 
extra=0, discard=1) at xcb_io.c:533
#3  0x0000003a7eaa61de in ?? () from /usr/lib64/nvidia/libGL.so.1
#4  0x0000003a7ea758f6 in ?? () from /usr/lib64/nvidia/libGL.so.1
#5  0x0000003a7ea75af6 in ?? () from /usr/lib64/nvidia/libGL.so.1
#6  0x0000003a7ea76980 in ?? () from /usr/lib64/nvidia/libGL.so.1
#7  0x0000003a7ea7d253 in ?? () from /usr/lib64/nvidia/libGL.so.1
#8  0x00007fbe4bb785dd in opengl2_draw (that=0x20db490, frame=0x23119e0) 
at video_out_opengl2.c:1080
#9  0x00007fbe4bb79093 in opengl2_display_frame (this_gen=0x20db490, 
frame_gen=0x23119e0) at video_out_opengl2.c:1225
#10 0x00007fbe536c3895 in overlay_and_display_frame (this=0x22fc8f0, 
img=0x23119e0, vpts=20921) at video_out.c:1370
#11 0x00007fbe536c3f97 in video_out_loop (this_gen=0x22fc8f0) at 
video_out.c:1545
#12 0x0000003b54406ccb in start_thread (arg=0x7fbe4ae20700) at 
pthread_create.c:301
#13 0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 14 (Thread 0x7fbe4a415700 (LWP 15426)):
#0  0x0000003b538d7283 in __poll (fds=<value optimized out>, nfds=<value 
optimized out>, timeout=<value optimized out>) at 
../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fbe4a419111 in my_snd_mixer_wait (mixer=0x23231d0, 
timeout=333) at audio_alsa_out.c:150
#2  0x00007fbe4a41915f in ao_alsa_handle_event_thread (data=0x22fa1b0) 
at audio_alsa_out.c:166
#3  0x0000003b54406ccb in start_thread (arg=0x7fbe4a415700) at 
pthread_create.c:301
#4  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 13 (Thread 0x7fbe49c14700 (LWP 15427)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fbe536c6374 in fifo_peek_int (fifo=0x2352600, blocking=1) at 
audio_out.c:360
#2  0x00007fbe536c64ba in fifo_peek (fifo=0x2352600) at audio_out.c:400
#3  0x00007fbe536c7fc7 in ao_loop (this_gen=0x2333cf0) at audio_out.c:1025
#4  0x0000003b54406ccb in start_thread (arg=0x7fbe49c14700) at 
pthread_create.c:301
#5  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 12 (Thread 0x7fbe43fff700 (LWP 15428)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x00007fbe536c0ce2 in vo_remove_from_img_buf_queue_int 
(queue=0x22fff90, blocking=0, width=1920, height=1088, 
ratio=1.7777777777777777, format=842094169,
     flags=27) at video_out.c:278
#2  0x00007fbe536c0e6e in vo_remove_from_img_buf_queue_nonblock 
(queue=0x22fff90, width=1920, height=1088, ratio=1.7777777777777777, 
format=842094169, flags=27)
     at video_out.c:323
#3  0x00007fbe536c1df9 in vo_get_frame (this_gen=0x22fc8f0, width=1920, 
height=1088, ratio=1.7777777777777777, format=842094169, flags=27) at 
video_out.c:695
#4  0x00007fbe25962a0d in parse_chunk (mpeg2dec=0x7fbe3c003260, code=1, 
buffer=
     0x7fbe48059010 
"\022\357ê\300]~\273\372\257߮\376\203\257\330\v\253\243\377\252\375\372\350X}W\357\327~", 
next_code=2) at decode.c:519
#5  0x00007fbe25963263 in mpeg2_decode_data (mpeg2dec=0x7fbe3c003260, 
current=0x7fbe48e5631f 
"\022\255(\177\250,\232\215\264\020\300\220\020@l\023@T", end=
     0x7fbe48e57f98 "", pts=198198) at decode.c:726
#6  0x00007fbe2597c23e in mpeg2dec_decode_data (this_gen=0x7fbe3c003230, 
buf=0x26af940) at xine_mpeg2_decoder.c:81
#7  0x00007fbe536beb38 in video_decoder_loop (stream_gen=0x2639290) at 
video_decoder.c:415
#8  0x0000003b54406ccb in start_thread (arg=0x7fbe43fff700) at 
pthread_create.c:301
#9  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 11 (Thread 0x7fbe43415700 (LWP 15429)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fbe536b5bfc in fifo_buffer_get (fifo=0x26b7b20) at buffer.c:236
#2  0x00007fbe536bf8a2 in audio_decoder_loop (stream_gen=0x2639290) at 
audio_decoder.c:67
#3  0x0000003b54406ccb in start_thread (arg=0x7fbe43415700) at 
pthread_create.c:301
#4  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 10 (Thread 0x7fbe42c14700 (LWP 15430)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x00007fbe536c3b50 in interruptable_sleep (this=0x26d2c00, 
usec_to_sleep=1000) at video_out.c:1423
#2  0x00007fbe536c4275 in video_out_loop (this_gen=0x26d2c00) at 
video_out.c:1621
#3  0x0000003b54406ccb in start_thread (arg=0x7fbe42c14700) at 
pthread_create.c:301
#4  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 9 (Thread 0x7fbe3bfff700 (LWP 15431)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fbe536c6374 in fifo_peek_int (fifo=0x26fd220, blocking=1) at 
audio_out.c:360
#2  0x00007fbe536c64ba in fifo_peek (fifo=0x26fd220) at audio_out.c:400
#3  0x00007fbe536c7fc7 in ao_loop (this_gen=0x26dee30) at audio_out.c:1025
#4  0x0000003b54406ccb in start_thread (arg=0x7fbe3bfff700) at 
pthread_create.c:301
#5  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 8 (Thread 0x7fbe3b7fe700 (LWP 15432)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fbe536cceb0 in xine_event_wait (queue=0x289ccc0) at events.c:56
#2  0x00007fbe536cd47f in listener_loop (queue_gen=0x289ccc0) at 
events.c:219
#3  0x0000003b54406ccb in start_thread (arg=0x7fbe3b7fe700) at 
pthread_create.c:301
#4  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 7 (Thread 0x7fbe3a444700 (LWP 15433)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fbe536b5bfc in fifo_buffer_get (fifo=0x289ee80) at buffer.c:236
#2  0x00007fbe536be13d in video_decoder_loop (stream_gen=0x289da20) at 
video_decoder.c:148
#3  0x0000003b54406ccb in start_thread (arg=0x7fbe3a444700) at 
pthread_create.c:301
#4  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 6 (Thread 0x7fbe42211700 (LWP 15434)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fbe536cceb0 in xine_event_wait (queue=0x28f67a0) at events.c:56
#2  0x00007fbe536cd47f in listener_loop (queue_gen=0x28f67a0) at 
events.c:219
#3  0x0000003b54406ccb in start_thread (arg=0x7fbe42211700) at 
pthread_create.c:301
#4  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7fbe40e57700 (LWP 15435)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fbe536b5bfc in fifo_buffer_get (fifo=0x28f89b0) at buffer.c:236
#2  0x00007fbe536be13d in video_decoder_loop (stream_gen=0x28f7550) at 
video_decoder.c:148
#3  0x0000003b54406ccb in start_thread (arg=0x7fbe40e57700) at 
pthread_create.c:301
#4  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7fbe2e560700 (LWP 15436)):
#0  0x0000003b538d9093 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x0000000000446bd2 in ctrlsocket_func (data=<value optimized out>) 
at session.c:157
#2  0x0000003b54406ccb in start_thread (arg=0x7fbe2e560700) at 
pthread_create.c:301
#3  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7fbe2dd5f700 (LWP 15437)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000000000499087 in scheduler_thread (data=<value optimized out>) 
at utils.c:93
#2  0x0000003b54406ccb in start_thread (arg=0x7fbe2dd5f700) at 
pthread_create.c:301
#3  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7fbe26587700 (LWP 15438)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fbe536b576e in buffer_pool_alloc (this=0x263a7d0) at buffer.c:96
#2  0x00007fbe2658aad3 in demux_ts_buffer_pes (this=0x2a4b470, 
ts=0x2a4fec4 "\300\002\066\375\266\b\036|\b b\b\377", <incomplete 
sequence \326>, mediaIndex=0,
     pus=0, cc=2, len=184) at demux_ts.c:1302
#3  0x00007fbe2658cd36 in demux_ts_parse_packet (this=0x2a4b470) at 
demux_ts.c:2272
#4  0x00007fbe2658cf1a in demux_ts_send_chunk (this_gen=0x2a4b470) at 
demux_ts.c:2348
#5  0x00007fbe536d31eb in demux_loop (stream_gen=0x2639290) at demux.c:342
#6  0x0000003b54406ccb in start_thread (arg=0x7fbe26587700) at 
pthread_create.c:301
#7  0x0000003b538e0c2d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fbe536317e0 (LWP 15421)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000003b55432690 in _XDisplayLockWait (dpy=0x1d781f0) at locking.c:447
#2  0x0000003b55432cf9 in _XLockDisplay (dpy=0x1d781f0) at locking.c:462
#3  0x0000003b55432467 in XLockDisplay (dpy=0x1d781f0) at LockDis.c:47
#4  0x0000000000480d68 in xitk_run (cb=<value optimized out>, 
data=<value optimized out>) at xitk.c:2116
#5  0x000000000041700b in gui_run (session_opts=0x0) at event.c:2112
#6  0x0000000000426b27 in main (argc=<value optimized out>, argv=0x0) at 
main.c:2281

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
xine-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-devel