Comment 9 for bug 773466

Revision history for this message
Anthony Williams (anthony-justsoftwaresolutions) wrote : Re: libva1 trying to open /usr/lib/dri/nvidia_drv_video.so ends with segmentation fault

I have an ATI graphics card, using the ATI Catalyst fglrx proprietary drivers, and have the same problem.

vlc was crashing after call va_getDriverName():

VLC media player 1.1.9 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x1b83120] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Blocked: call to setlocale(6, "")
Blocked: call to setlocale(6, "")
brainfart cropping not supported, this could look slightly wrong ...
libva: libva version 0.32.0
Xlib: extension "XFree86-DRI" missing on display ":0".
libva: va_getDriverName() returns 0
Segmentation fault

Setting the LIBVA_DRIVER_NAME environment variable to **anything** fixes the crash, even if it's not a valid driver name (e.g. "fred"):

VLC media player 1.1.9 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x18aa120] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Blocked: call to setlocale(6, "")
Blocked: call to setlocale(6, "")
brainfart cropping not supported, this could look slightly wrong ...
libva: libva version 0.32.0
libva: User requested driver 'fred'
libva: Trying to open /usr/lib/dri/fred_drv_video.so
libva: va_openDriver() returns -1

Setting LIBVA_DRIVER_NAME to "fglrx", and ensuring that /usr/lib/dri/fglrx_drv_video.so is linked to /usr/lib/va/drivers/fglrx_drv_video.so allows VLC to use the fglrx driver