FS#27899 - since ffmpeg 20120110-1 vlc crashes when loading avcodec decoder

Attached to Project: Arch Linux
Opened by Nicolás Adamo José (nicoadamo) - Tuesday, 10 January 2012, 22:45 GMT
Last edited by Ionut Biru (wonder) - Wednesday, 11 January 2012, 23:08 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Since upgrade to ffmpeg 20120110-1, vlc crashes when trying to open some videos.
If started from terminal, output is:
$ vlc
VLC media player 1.1.13 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x18e2120] 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, "")
Blocked: call to putenv("LANGUAGE=")
kfilemodule(1640) KSambaSharePrivate::testparmParamValue: We got some errors while running testparm "Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
ERROR: pid directory /var/run/samba does not exist
"
libdvdnav: Using dvdnav version 4.2.0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Couldn't find device name.
libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
libva: VA-API version 0.32.0
libva: User requested driver 'xvba'
libva: Trying to open /usr/lib/dri//xvba_drv_video.so
[0x7fe4c8006b00] pulse audio output error: cannot connect to server: Connection refused
libva: va_openDriver() returns 0
xvba_video: XVBA_GetSurface(): status 2
[0x7fe4dcc02fc0] avcodec decoder: Using VA API version 0.32 for hardware decoding.
Segmentation fault

Errors regarding sound are not to worry, they appear even when playing is alright, with sound.
It seems that crashing occurs when loading the avcodec decoder
This task depends upon

Closed by  Ionut Biru (wonder)
Wednesday, 11 January 2012, 23:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  20120111-1
Comment by Ionut Biru (wonder) - Tuesday, 10 January 2012, 22:49 GMT
sounds like is crashing when libva is used.

is worth recompiling with debug and get a trace and report it upstream
Comment by Nicolás Adamo José (nicoadamo) - Tuesday, 10 January 2012, 23:21 GMT
Did what says:
https://wiki.archlinux.org/index.php/Step_By_Step_Debugging_Guide
Still have to recompile libva with debug options:

(gdb) bt full
#0 0x00007fffc215d53f in ?? () from /usr/lib/libavcodec.so.53
No symbol table info available.
#1 0x00007fffc1f6a6a3 in ?? () from /usr/lib/libavcodec.so.53
No symbol table info available.
#2 0x00007fffc1f6ad9d in ?? () from /usr/lib/libavcodec.so.53
No symbol table info available.
#3 0x00007fffc20cf55b in ?? () from /usr/lib/libavcodec.so.53
No symbol table info available.
#4 0x00007ffff76bee7a in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#5 0x00007ffff71f2bad in clone () from /lib/libc.so.6
No symbol table info available.
#6 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb)
Comment by Nicolás Adamo José (nicoadamo) - Wednesday, 11 January 2012, 11:36 GMT
This is with libva recompiled with debugging symbols on:

#0 0x00007fffc215d11f in ?? () from /usr/lib/libavcodec.so.53
#1 0x00007fffc1f69733 in ?? () from /usr/lib/libavcodec.so.53
#2 0x00007fffc1f69e2d in ?? () from /usr/lib/libavcodec.so.53
#3 0x00007fffc20cf13b in ?? () from /usr/lib/libavcodec.so.53
#4 0x00007ffff76bee7a in start_thread () from /lib/libpthread.so.0
#5 0x00007ffff71f2bad in clone () from /lib/libc.so.6
#6 0x0000000000000000 in ?? ()

It seems so similar like the previous output... Am I doing something wrong?? I started "gdb vlc". Should I start libva some other way??
Comment by Ionut Biru (wonder) - Wednesday, 11 January 2012, 12:09 GMT
https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces#One_package_settings_only

in addition to that, remove --disable-debug from ./configure
Comment by Artem A Klevtsov (unikum) - Wednesday, 11 January 2012, 17:23 GMT
Confirm that. With GPU accelreation option vlc crash with any video.
/ nvidia proprietary driver.
Comment by Ionut Biru (wonder) - Wednesday, 11 January 2012, 21:58 GMT

Loading...