Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 06-04-09, 04:21 PM   #1
rnissl
Registered User
 
Join Date: Jun 2005
Posts: 36
Default vdp_presentation_queue_create() segfaults: Error detected 0 61

Hi,

I'm running xine to display a MPEG2 stream. When I switch to a text console, xine crashes while reacting to pre emption. This is console output for DPAU_TRACE=1 VDPAU_NVIDIA_DEBUG=1:

Code:
vdp_video_mixer_render(7, 4294967295, NULL, 1, 2, {19, 15}, 19, 1, {17}, {0, 0, 720, 576}, 6, {0, 0, 1026, 576}, {0, 0, 1026, 576}, 0, NULL)
VDPAU nvidia: Error detected 0 274
    -> 3
vdp_get_error_string(3)
    -> 'An invalid handle value was provided.'
vo_vdpau: vdp_video_mixer_render error : An invalid handle value was provided.
vdp_presentation_queue_display(3, 6, 0, 0, 20155555)
VDPAU nvidia: Error detected 0 274
    -> 3
vo_vdpau: VDPAU was pre-empted. Reinit.
VDPAU trace: Multiple devices created; will return get_proc_address results from the latest only
vdp_imp_device_create_x11(0x73c8f0, 0, -, -)
    -> 0, 1, 0x7f9e487d9390
vdp_presentation_queue_target_create_x11(1, 62915484, -)
    -> 0, 2
vdp_presentation_queue_create(1, 2, -)
VDPAU nvidia: Error detected 0 61
Segmentation fault (core dumped)
This is the backtrace of the coredump:
Code:
(gdb) bt
#0  0x00007f9e487dfd8a in ?? () from /usr/lib64/libvdpau_nvidia.so
#1  0x00007f9e487dfa50 in ?? () from /usr/lib64/libvdpau_nvidia.so
#2  0x00007f9e487dca3e in ?? () from /usr/lib64/libvdpau_nvidia.so
#3  0x00007f9e486c9fe6 in ?? () from /usr/lib64/libvdpau_trace.so
#4  0x00007f9e49061d16 in vdpau_reinit (this_gen=0x872300) at ../../../xine-lib-1.2/src/video_out/video_out_vdpau.c:1729
#5  0x00007f9e4905ff95 in vdpau_display_frame (this_gen=0x872300, frame_gen=0x883940) at ../../../xine-lib-1.2/src/video_out/video_out_vdpau.c:1248
#6  0x00007f9e50140689 in overlay_and_display_frame (this=0x880a20, img=0x883940, vpts=839508) at ../../../xine-lib-1.2/src/xine-engine/video_out.c:1076
#7  0x00007f9e50140c21 in video_out_loop (this_gen=0x880a20) at ../../../xine-lib-1.2/src/xine-engine/video_out.c:1238
#8  0x00007f9e4dff5070 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f9e4dd6810d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()
Driver version: 180.60
GF8600GTS 512 MB

BTW: when doing the same while a H.264 stream is running, the driver seems to lock up, i. e. X vanishes, but text console doesn't appear and switching back to X is nolonger possible.

Bye.
rnissl is offline   Reply With Quote
Old 06-04-09, 05:33 PM   #2
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: vdp_presentation_queue_create() segfaults: Error detected 0 61

Does the crash happen without the trace library present? Looking at the backtrace, it probably does, but if not, it might be a bug we fixed in 185.18.14.
Stephen Warren is offline   Reply With Quote
Old 06-04-09, 05:34 PM   #3
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: vdp_presentation_queue_create() segfaults: Error detected 0 61

Oh, and can you repro the crash again, and run "info sharedlibrary" in gdb so I know what the libvdpau.so base address was. Thanks very much.
Stephen Warren is offline   Reply With Quote
Old 06-04-09, 06:40 PM   #4
cehoyos
FFmpeg developer
 
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
Default Re: vdp_presentation_queue_create() segfaults: Error detected 0 61

The pre-emption problem is reproducible with latest MPlayer svn and 185.13, both with and without hardware accelerated decoding: Whenever I change to a text console while using -vo vdpau, there is a display pre-emption. (Changing to text console and back to X works fine with xv and gl as long as ao does not crash.)

Carl Eugen
cehoyos is offline   Reply With Quote
Old 06-04-09, 06:45 PM   #5
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: vdp_presentation_queue_create() segfaults: Error detected 0 61

Display preemption is expected behaviour on a mode-switch or VT-switch. What shouldn't be happening is the segfault inside VDPAU.
Stephen Warren is offline   Reply With Quote
Old 06-04-09, 07:15 PM   #6
crisalide
Registered User
 
Join Date: Dec 2008
Posts: 173
Default Re: vdp_presentation_queue_create() segfaults: Error detected 0 61

Quote:
Originally Posted by Stephen Warren View Post
Does the crash happen without the trace library present? Looking at the backtrace, it probably does, but if not, it might be a bug we fixed in 185.18.14.
I can repro the crash with 185.18.14
crisalide is offline   Reply With Quote
Old 06-05-09, 03:38 AM   #7
cehoyos
FFmpeg developer
 
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
Default Re: vdp_presentation_queue_create() segfaults: Error detected 0 61

Quote:
Originally Posted by Stephen Warren View Post
Display preemption is expected behaviour on a mode-switch or VT-switch.
No work-around possible?

Carl Eugen
cehoyos is offline   Reply With Quote
Old 06-05-09, 02:04 PM   #8
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: vdp_presentation_queue_create() segfaults: Error detected 0 61

Quote:
Originally Posted by cehoyos View Post
No work-around possible?
That's correct.

I believe xine detects the preemption return codes, and recreates VDPAU objects from scratch (at least for the mode-switch it deliberately induces at start of playback to match video refresh rate, not sure about during the middle of playback)
Stephen Warren is offline   Reply With Quote

Old 06-06-09, 05:03 PM   #9
rnissl
Registered User
 
Join Date: Jun 2005
Posts: 36
Default Re: vdp_presentation_queue_create() segfaults: Error detected 0 61

Hi,

Quote:
Originally Posted by Stephen Warren View Post
Oh, and can you repro the crash again, and run "info sharedlibrary" in gdb so I know what the libvdpau.so base address was. Thanks very much.
This time without trace library:
Code:
img->pts:   1696984517, pts:   1696984517, img->duration: 3600
img->pts:   1696988117, pts:   1696988117, img->duration: 3600
vo_vdpau: VDPAU preemption callback
vo_vdpau: vdp_video_mixer_render error : The display was pre-empted, or a fatal error occurred.
vo_vdpau: VDPAU was pre-empted. Reinit.
img->pts:   1696991717, pts:   1696991717, img->duration: 3600
Segmentation fault (core dumped)
Code:
(gdb) bt
#0  0x00007f1b07ef7d8a in ?? () from /usr/lib64/libvdpau_nvidia.so
#1  0x00007f1b07ef7a50 in ?? () from /usr/lib64/libvdpau_nvidia.so
#2  0x00007f1b07ef4a3e in ?? () from /usr/lib64/libvdpau_nvidia.so
#3  0x00007f1b08779d16 in vdpau_reinit (this_gen=0x872400) at ../../../xine-lib-1.2/src/video_out/video_out_vdpau.c:1729
#4  0x00007f1b08777f95 in vdpau_display_frame (this_gen=0x872400, frame_gen=0x883210) at ../../../xine-lib-1.2/src/video_out/video_out_vdpau.c:1248
#5  0x00007f1b0f858689 in overlay_and_display_frame (this=0x880630, img=0x883210, vpts=7937807) at ../../../xine-lib-1.2/src/xine-engine/video_out.c:1076
#6  0x00007f1b0f858c21 in video_out_loop (this_gen=0x880630) at ../../../xine-lib-1.2/src/xine-engine/video_out.c:1238
#7  0x00007f1b0d70d070 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f1b0d48010d in clone () from /lib64/libc.so.6
#9  0x0000000000000000 in ?? ()
Code:
(gdb) info sharedlibrary
From                To                  Syms Read   Shared Object Library
0x00007f1b0f83f6e0  0x00007f1b0f8811c6  Yes         /usr/local/lib/libxine.so.2
0x00007f1b0f631b20  0x00007f1b0f632668  Yes         /usr/lib64/libXinerama.so.1
0x00007f1b0f42bfc0  0x00007f1b0f42f048  Yes         /usr/lib64/libXxf86vm.so.1
0x00007f1b0f21a700  0x00007f1b0f227778  Yes         /usr/lib64/libXft.so.2
0x00007f1b0f00db70  0x00007f1b0f0140c8  Yes         /usr/lib64/libXrender.so.1
0x00007f1b0ede0340  0x00007f1b0edf8998  Yes         /usr/lib64/libfontconfig.so.1
0x00007f1b0eb620d0  0x00007f1b0ebb8578  Yes         /usr/lib64/libfreetype.so.6
0x00007f1b0e941260  0x00007f1b0e94caf8  Yes         /lib64/libz.so.1
0x00007f1b0e622250  0x00007f1b0e6b11b8  Yes         /usr/lib64/libX11.so.6
0x00007f1b0e3f3950  0x00007f1b0e3fe478  Yes         /usr/lib64/libXext.so.6
0x00007f1b0e1ea580  0x00007f1b0e1ed678  Yes         /usr/lib64/libXtst.so.6
0x00007f1b0dfae100  0x00007f1b0dfdbac8  Yes         /usr/lib64/libcurl.so.4
0x00007f1b0dd53e60  0x00007f1b0dd88878  Yes         /lib64/libm.so.6
0x00007f1b0db4b250  0x00007f1b0db4db78  Yes         /usr/lib64/libXv.so.1
0x00007f1b0d926ec0  0x00007f1b0d942378  Yes         /usr/lib64/libpng12.so.0
0x00007f1b0d70b280  0x00007f1b0d716468  Yes         /lib64/libpthread.so.0
0x00007f1b0d3cb210  0x00007f1b0d4b750c  Yes         /lib64/libc.so.6
0x00007f1b0d1a9df0  0x00007f1b0d1aa958  Yes         /lib64/libdl.so.2
0x00007f1b0cfa22e0  0x00007f1b0cfa5f38  Yes         /lib64/librt.so.1
0x00007f1b0cd8c8e0  0x00007f1b0cd98878  Yes         /lib64/libresolv.so.2
0x00007f1b0cb750e0  0x00007f1b0cb80e58  Yes         /lib64/libnsl.so.1
0x00007f1b0c964d10  0x00007f1b0c96b4e8  Yes         /usr/local/lib/libavutil.so.50
0x00007f1b0c73ce40  0x00007f1b0c756518  Yes         /lib64/libexpat.so.1
0x00007f1b0c537730  0x00007f1b0c537938  Yes         /usr/lib64/libxcb-xlib.so.0
0x00007f1b0c3246f0  0x00007f1b0c32f768  Yes         /usr/lib64/libxcb.so.1
0x00007f1b0c117ec0  0x00007f1b0c118c08  Yes         /usr/lib64/libXau.so.6
0x00007f1b0bee7250  0x00007f1b0beeb7d8  Yes         /usr/lib64/libidn.so.11
0x00007f1b0bca92b0  0x00007f1b0bcd35a8  Yes         /usr/lib64/libssl.so.0.9.8
0x00007f1b0b980b50  0x00007f1b0ba27588  Yes         /usr/lib64/libcrypto.so.0.9.8
0x00007f1b0b6e32e0  0x00007f1b0b70bd88  Yes         /usr/lib64/libldap-2.4.so.2
0x00007f1b0b4af6d0  0x00007f1b0b4ced58  Yes         /usr/lib64/libgssapi_krb5.so.2
0x00007f1b0b220590  0x00007f1b0b2913a8  Yes         /usr/lib64/libkrb5.so.3
0x00007f1b0afe6a80  0x00007f1b0affa8e8  Yes         /usr/lib64/libk5crypto.so.3
0x00007f1b0adde230  0x00007f1b0addebc8  Yes         /lib64/libcom_err.so.2
0x00007f1b0abdabb0  0x00007f1b0abdb138  Yes         /lib64/libkeyutils.so.1
0x00007f1b0fa9eb00  0x00007f1b0fab5dc4  Yes         /lib64/ld-linux-x86-64.so.2
0x00007f1b0a9cd990  0x00007f1b0a9d5ef8  Yes         /usr/lib64/liblber-2.4.so.2
0x00007f1b0a7b3d90  0x00007f1b0a7c4178  Yes         /usr/lib64/libsasl2.so.2
0x00007f1b0a5a7ea0  0x00007f1b0a5abb38  Yes         /usr/lib64/libkrb5support.so.0
0x00007f1b0a39dc80  0x00007f1b0a3a2dc8  Yes         /usr/lib64/libXcursor.so.1
0x00007f1b0a1965d0  0x00007f1b0a199478  Yes         /usr/lib64/libXfixes.so.3
0x00007f1b087745b0  0x00007f1b0878d9f6  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_vo_out_vdpau.so
0x00007f1b0856bd20  0x00007f1b085707c8  Yes         /usr/lib64/libSM.so.6
0x00007f1b083666f0  0x00007f1b08367bb8  Yes         /lib64/libuuid.so.1
0x00007f1b0814d560  0x00007f1b0815be98  Yes         /usr/lib64/libICE.so.6
0x00007f1b0faec8c0  0x00007f1b0faeca78  Yes         /usr/lib64/libvdpau.so.1
0x00007f1b07eef500  0x00007f1b07f54aec  Yes         /usr/lib64/libvdpau_nvidia.so
0x00007f1b074a2250  0x00007f1b074a67c6  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_ao_out_alsa.so
0x00007f1b071d4150  0x00007f1b072486d8  Yes         /usr/lib64/libasound.so.2
0x00007f1b05f3d650  0x00007f1b05f6ae26  Yes         /usr/local/lib/xine/plugins/2.0/post/xineplug_post_tvtime.so
0x00007f1b05cedd00  0x00007f1b05d0b786  Yes         /usr/local/lib/xine/plugins/2.0/post/xineplug_post_goom.so
0x00007f1b01d47790  0x00007f1b01d47f36  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_vo_out_none.so
0x00007f1b01343720  0x00007f1b01343c86  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_ao_out_none.so
0x00007f1af9b10b00  0x00007f1af9b19556  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_vdr.so
0x00007f1af99052e0  0x00007f1af990b0f6  Yes         /usr/local/lib/xine/plugins/2.0/post/xineplug_post_audio_filters.so
0x00007f1af96fd970  0x00007f1af9701676  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_inp_v4l.so
0x00007f1af94f68d0  0x00007f1af94fa166  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_inp_pvr.so
0x00007f1af92ed7b0  0x00007f1af92f25b6  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_inp_http.so
0x00007f1af90e7540  0x00007f1af90ea126  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_inp_rtp.so
0x00007f1af8edaa70  0x00007f1af8ee1b96  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_inp_vcd.so
0x00007f1af8cb1a10  0x00007f1af8cc6bc8  Yes         /usr/lib64/libvcdinfo.so.0
0x00007f1af8aa0f30  0x00007f1af8aa6df8  Yes         /usr/lib64/libiso9660.so.5
0x00007f1af8882060  0x00007f1af88921d8  Yes         /usr/lib64/libcdio.so.7
0x00007f1af86761f0  0x00007f1af8678f56  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_inp_file.so
0x00007f1af8470d10  0x00007f1af8472e36  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_inp_stdin_fifo.so
0x00007f1af825f4e0  0x00007f1af826baf6  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_inp_dvb.so
0x00007f1af80538f0  0x00007f1af80598f6  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_inp_cdda.so
0x00007f1af7e44b30  0x00007f1af7e4d586  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_inp_mms.so
0x00007f1af7c3cf40  0x00007f1af7c40636  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_inp_pnm.so
0x00007f1af7a37f90  0x00007f1af7a3a3b6  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_inp_net.so
0x00007f1af7827790  0x00007f1af7833656  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_inp_rtsp.so
0x00007f1af75f82b0  0x00007f1af761b676  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_inp_dvd.so
0x00007f1af73f0c60  0x00007f1af73f2976  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_inp_vcdo.so
0x00007f1af49e4b30  0x00007f1af49e8c26  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_dmx_mpeg_pes.so
0x00007f1af47dfc20  0x00007f1af47e1326  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_decode_dxr3_video.so
0x00007f1af45d2bc0  0x00007f1af45d87c8  Yes         /usr/local/lib/libavutil.so.49
0x00007f1af43cc910  0x00007f1af43ceaf6  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_decode_vdpau_mpeg12.so
0x00007f1aef3f50f0  0x00007f1aef4019d6  Yes         /usr/local/lib/xine/plugins/2.0/xineplug_decode_mad.so
(gdb)
rnissl is offline   Reply With Quote
Old 06-07-09, 12:40 AM   #10
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: vdp_presentation_queue_create() segfaults: Error detected 0 61

Which driver version was that last trace from? It's not making any sense with 180.60 nor 185.18.14... Thanks.
Stephen Warren is offline   Reply With Quote
Old 06-07-09, 05:54 AM   #11
rnissl
Registered User
 
Join Date: Jun 2005
Posts: 36
Default Re: vdp_presentation_queue_create() segfaults: Error detected 0 61

Hi,

nvidia-settings shows me

NVIDIA Driver Version: 180.60

Bye.
rnissl is offline   Reply With Quote
Old 06-07-09, 03:45 PM   #12
rnissl
Registered User
 
Join Date: Jun 2005
Posts: 36
Default Re: vdp_presentation_queue_create() segfaults: Error detected 0 61

Hi,

Quote:
Originally Posted by Stephen Warren View Post
Which driver version was that last trace from? It's not making any sense with 180.60 nor 185.18.14... Thanks.
With 185.18.14, the X server terminates when switching to a framebuffer console while xine is replaying a SD MPEG2 video using vdpau.

Bye.
rnissl is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
X Segfaults with Geforce 4 ReNeGaDe NVIDIA Linux 2 09-17-02 05:34 PM

All times are GMT -5. The time now is 05:41 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.