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

Newegg Daily Deals

Reply
 
Thread Tools
Old 02-15-11, 01:02 PM   #1
LubosD
Registered User
 
Join Date: Jan 2005
Location: Czech Republic
Posts: 451
Send a message via ICQ to LubosD
Default 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?
LubosD is offline   Reply With Quote
Old 02-15-11, 01:14 PM   #2
gradinaruvasile
Registered User
 
gradinaruvasile's Avatar
 
Join Date: May 2008
Posts: 199
Default 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.
gradinaruvasile is offline   Reply With Quote
Old 02-16-11, 10:45 AM   #3
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default 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).
Stephen Warren is offline   Reply With Quote
Old 02-16-11, 11:05 AM   #4
LubosD
Registered User
 
Join Date: Jan 2005
Location: Czech Republic
Posts: 451
Send a message via ICQ to LubosD
Default 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.
LubosD is offline   Reply With Quote
Old 04-19-11, 08:19 AM   #5
gradinaruvasile
Registered User
 
gradinaruvasile's Avatar
 
Join Date: May 2008
Posts: 199
Default 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
gradinaruvasile 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


All times are GMT -5. The time now is 01:03 PM.


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