nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   VDPAU via libva 1.0.8 crashing (http://www.nvnews.net/vbulletin/showthread.php?t=159688)

LubosD 02-15-11 01:02 PM

VDPAU via libva 1.0.8 crashing
 
Hi, I'm trying to use VDPAU in VLC, which involves libva. After a Debian update to libva 1.0.8 it crashes, but it used to work with libva 1.0.1.

Code:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffca2a0700 (LWP 21214)]
0x00007fffed201e68 in XQueryExtension () from /usr/lib/libX11.so.6
(gdb) bt
#0  0x00007fffed201e68 in XQueryExtension () from /usr/lib/libX11.so.6
#1  0x00007fffed1f6062 in XInitExtension () from /usr/lib/libX11.so.6
#2  0x00007fffeb94a712 in XextAddDisplay () from /usr/lib/libXext.so.6
#3  0x00007fffc9972821 in ?? () from /usr/lib/libvdpau_nvidia.so
#4  0x00007fffc990285d in vdp_imp_device_create_x11 () from /usr/lib/libvdpau_nvidia.so
#5  0x00007fffc9e93e90 in __vaDriverInit_0_31 () from /usr/lib/dri/nvidia_drv_video.so
#6  0x00007fffcde11242 in vaInitialize () from /usr/lib/libva.so.1
#7  0x00007fffce03e8e2 in Open (i_codec_id=<value optimized out>) at vaapi.c:144
#8  vlc_va_NewVaapi (i_codec_id=<value optimized out>) at vaapi.c:490
#9  0x00007fffce03b3b5 in ffmpeg_GetFormat (p_codec=<value optimized out>, pi_fmt=0x7fffcd3f6c94) at video.c:1177
#10 0x00007fffcd173cfd in ?? () from /usr/lib/libavcodec.so.52
#11 0x00007fffcd173dbc in ?? () from /usr/lib/libavcodec.so.52
#12 0x00007fffcd273e80 in avcodec_decode_video2 () from /usr/lib/libavcodec.so.52
#13 0x00007fffcd273f0f in avcodec_decode_video () from /usr/lib/libavcodec.so.52
#14 0x00007fffce03ab06 in DecodeVideo (p_dec=0x1feeb00, pp_block=<value optimized out>) at video.c:550
#15 0x00007ffff7924147 in DecoderDecodeVideo (p_dec=0x1feeb00, p_block=0x7fffd00ddd60) at input/decoder.c:1466
#16 0x00007ffff7924fa9 in DecoderProcessVideo (p_dec=0x1feeb00, p_block=<value optimized out>) at input/decoder.c:1815
#17 DecoderProcess (p_dec=0x1feeb00, p_block=<value optimized out>) at input/decoder.c:2003
#18 0x00007ffff79251fb in DecoderThread (p_this=<value optimized out>) at input/decoder.c:892
#19 0x00007ffff796ff34 in thread_entry (data=<value optimized out>) at misc/threads.c:58
#20 0x00007ffff76ca8ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#21 0x00007ffff722e02d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#22 0x0000000000000000 in ?? ()

From the stack trace, I don't know who's the real culprit here. Whether it's libva doing something nasty, or vdpau calling libx11 the wrong way or libx11 crashing instead of returning an error...

That being said, could the NVDIA devs please take a look at that and decide who is to blame?

gradinaruvasile 02-15-11 01:14 PM

Re: VDPAU via libva 1.0.8 crashing
 
It works for me with libva 1.0.7. Version 1.0.8 crashes with vainfo, vlc etc.

Stephen Warren 02-16-11 10:45 AM

Re: VDPAU via libva 1.0.8 crashing
 
Can you try installing the debug packages for libva, libXext, and libX11. That will hopefully make gdb's bt show the parameters being passed to the various functions, which will make it obvious if libva is passing a NULL display handle to libvdpau_nvidia for some reason (or perhaps the app is passing a NULL display handle to libva).

LubosD 02-16-11 11:05 AM

Re: VDPAU via libva 1.0.8 crashing
 
This is interesting. There is no libva-dbg in Debian, so I decided to compile libva myself. I got the source from http://ftp.de.debian.org/debian/pool....8.orig.tar.gz to find out that my own libva doesn't crash at all.

So it's either something broken in Debian's patches (although I failed to find anything that would strike me as apparently wrong in their patchset) or I don't know. However I can confirm that X11 libraries are receiving a NULL pointer.

gradinaruvasile 04-19-11 08:19 AM

Re: VDPAU via libva 1.0.8 crashing
 
With vainfo, libva etc version 1.0.7 it works. It does not work with 1.0.8 and 1.0.12. Debian Testing (but it was the same with Debian Squeeze).
nvidia driver 260 and 270 series, installed from the .run package from nvidias site, kernel 2.6.32 and 2.6.38.

Code:

$ vainfo
libva: libva version 0.31.1
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/nvidia_drv_video.so
Segmentation fault

libva & co. versions:

Code:

# apt-cache policy libva1 libva-glx1 libva-x11-1 libva-tpi1 vainfo
libva1:
  Installed: 1.0.8-3
  Candidate: 1.0.8-3
  Version table:
    1.0.12-2 0
          1 http://ftp.debian.org/debian/ unstable/main i386 Packages
 *** 1.0.8-3 0
        500 http://ftp.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
    1.0.7-0.0 0
        500 http://www.debian-multimedia.org/ squeeze/main i386 Packages
libva-x11-1:
  Installed: 1.0.8-3
  Candidate: 1.0.8-3
  Version table:
    1.0.12-2 0
          1 http://ftp.debian.org/debian/ unstable/main i386 Packages
 *** 1.0.8-3 0
        500 http://ftp.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
    1.0.7-0.0 0
        500 http://www.debian-multimedia.org/ squeeze/main i386 Packages
libva-tpi1:
  Installed: 1.0.8-3
  Candidate: 1.0.8-3
  Version table:
    1.0.12-2 0
          1 http://ftp.debian.org/debian/ unstable/main i386 Packages
 *** 1.0.8-3 0
        500 http://ftp.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
    1.0.7-0.0 0
        500 http://www.debian-multimedia.org/ squeeze/main i386 Packages
libva-glx1:
  Installed: 1.0.8-3
  Candidate: 1.0.8-3
  Version table:
    1.0.12-2 0
          1 http://ftp.debian.org/debian/ unstable/main i386 Packages
 *** 1.0.8-3 0
        500 http://ftp.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
    1.0.7-0.0 0
        500 http://www.debian-multimedia.org/ squeeze/main i386 Packages
vainfo:
  Installed: 1.0.8-3
  Candidate: 1.0.8-3
  Version table:
    1.0.12-2 0
          1 http://ftp.debian.org/debian/ unstable/main i386 Packages
 *** 1.0.8-3 0
        500 http://ftp.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
    1.0.7-0.0 0
        500 http://www.debian-multimedia.org/ squeeze/main i386 Packages



All times are GMT -5. The time now is 04:46 AM.

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