vlc segfaults and mplayer relocation error following update

Bug #1859537 reported by Jeremy Impson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
New
Undecided
Unassigned

Bug Description

I think the following errors are related. Both started occurring 100% of the time following apt-get ugrade on 2020-01-12.

Vlc 3.0.8-0+deb10u1+rpt1 prints the following when run:

pi@raspberrypi:~/bin $ DISPLAY=:0 vlc
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
[005e29a0] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
[00571b58] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libEGL warning: DRI2: failed to authenticate
Segmentation fault

Mplayer 2:1.3.0-8+b5 prints the following when run:

pi@raspberrypi:~/bin $ DISPLAY=:0 mplayer
mplayer: relocation error: mplayer: symbol av_alloc_vdpaucontext version LIBAVCODEC_58 not defined in file libavcodec.so.58 with link time reference

According to the discussion at https://www.raspberrypi.org/forums/viewtopic.php?t=261617&p=1594106 , recompiling mplayer with --disable-vdpau solves or works around the problem. That same discussion suggests smplayer and gnome-player have a problem as well.

Given the error message in mplayer, I wonder if the problem is actually in ffmpeg lib? I've ffmpeg 7:4.1.4-1+rpt6~deb10u1

Other info;
pi@raspberrypi:~/bin $ uname -a
Linux palmpi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
pi@raspberrypi:~/bin $ cat /etc/debian_version
10.2
pi@raspberrypi:~/bin $ tail -4 /proc/cpuinfo
Hardware : BCM2835
Revision : a020d3
Serial : 0000000075d2780b
Model : Raspberry Pi 3 Model B Plus Rev 1.3

Thank you!
Jeremy

Revision history for this message
peter green (plugwash) wrote :

I wonder if this is an incompatibility between the ffmpeg in plain raspbian (which the other packages are built against) and the ffmpeg in the raspberry pi foundation repository.

Revision history for this message
Jeremy Impson (jdimpson) wrote :

I used apt-cache madison to see what ffmpeg versions are available, and got this result:

   ffmpeg | 7:4.1.4-1+rpt6~deb10u1 | http://archive.raspberrypi.org/debian buster/main arm
hf Packages
    ffmpeg | 7:4.1.4-1~deb10u1 | http://raspbian.raspberrypi.org/raspbian buster/main armhf
 Packages

I was able to remove my current version (7:4.1.4-1+rpt6~deb10u1) by running

   apt-get remove ffmpeg

And I tried to replace it with the other version by running

   apt-get install ffmpeg=7:4.1.4-1~deb10u1

But that fails with strange dependency errors (strange because none of these are installed)

The following packages have unmet dependencies:
 ffmpeg : Depends: libavcodec58 (= 7:4.1.4-1~deb10u1)
          Depends: libavdevice58 (= 7:4.1.4-1~deb10u1) but 7:4.1.4-1+rpt6~deb10u1 is to be installed
          Depends: libavfilter7 (= 7:4.1.4-1~deb10u1)
          Depends: libavformat58 (= 7:4.1.4-1~deb10u1) but 7:4.1.4-1+rpt6~deb10u1 is to be installed
          Depends: libavresample4 (= 7:4.1.4-1~deb10u1) but 7:4.1.4-1+rpt6~deb10u1 is to be installed
          Depends: libavutil56 (= 7:4.1.4-1~deb10u1) but 7:4.1.4-1+rpt6~deb10u1 is to be installed
          Depends: libpostproc55 (= 7:4.1.4-1~deb10u1) but 7:4.1.4-1+rpt6~deb10u1 is to be installed
          Depends: libswresample3 (= 7:4.1.4-1~deb10u1) but 7:4.1.4-1+rpt6~deb10u1 is to be installed
          Depends: libswscale5 (= 7:4.1.4-1~deb10u1) but 7:4.1.4-1+rpt6~deb10u1 is to be installed
E: Unable to correct problems, you have held broken packages.

I even uninstalled all the media players (vlc, mplayer, omxplayer, gstreamer, etc) then autoremoved over a hundred dependencies, but still got the above problem when trying to install the alternate ffmpeg.

I'm willing to continue troubleshooting along this or similar lines of experimentation, but would need more specific guidance and direction to do so.

Thanks!

Revision history for this message
Jeremy Impson (jdimpson) wrote :

Ok I seem to have fixed the problem when i removed and reinstalled the various media players (omxplayer, gstreamer, mplayer, vlc). Fortunately, i capture the output of dpkg -l whenever i back up my systems, so i will attach the borken package list to this comment, and the fixed package list to the next. Note there are lots of differences (as shown by diff -u). Some are because i didn't pay close attention to what i uninstalled and only reinstalled what i knew i need. But at least one set of differences that looks significant are these:

-ii mesa-va-drivers:armhf 19.1.0~git20190429.9628631a380-1~rpt3 armhf Mesa VA-API video acceleration drivers
-ii mesa-vdpau-drivers:armhf 19.1.0~git20190429.9628631a380-1~rpt3 armhf Mesa VDPAU video acceleration drivers
+ii mesa-va-drivers:armhf 19.2.0~rc1-1~bpo10+1~rpt3 armhf Mesa VA-API video acceleration drivers
+ii mesa-vdpau-drivers:armhf 19.2.0~rc1-1~bpo10+1~rpt3 armhf Mesa VDPAU video acceleration drivers

I'm fairly confident that i was up to date per "apt-get upgrade" but it seems i was not.

Revision history for this message
Jeremy Impson (jdimpson) wrote :

And here is the package list that now works.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.