mpv segfaults after upgrade

I am experiencing segfaults with mpv after upgrading to 14.2-RELEASE-p3. I'm not sure where to look.

I am running mpv in my workstation jail and prior to this update, it was running fine. On the host, I see:
pid 98414 (mpv), jid 7, uid 1000: exited on signal 11 (core dumped)

I don't see anything more than that. I have drm.ko, i915kms.ko all loaded.

mplayer appears to play the audio, but complains about:
==========================================================================
Cannot find codec matching selected -vo and video format 0x39307076.
==========================================================================
libva info: VA-API version 1.22.0) 0.4%
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: va_openDriver() returns -1

==========================================================================
Cannot find codec matching selected -vo and video format 0x39307076.
===== PAUSE =====
A: 7.3 (07.3) of 774.3 (12:54.2) 0.4%

Exiting... (Quit)
libvdpau-va-gl: Device::Resource::~Resource(): caught exception
Terminating due to uncaught exception 0x385c0f2245e0 of type std::__1::system_error

vlc plays the video, but also complains:
[000000081f201560] xcb_x11 vout display error: shared memory (MIT-SHM) not available
[000000081f201560] xcb_x11 vout display error: shared memory allocation error: Function not implemented
[000000081be02060] main video output error: video output creation failed
[000000081ba66ae0] main decoder error: failed to create video output


I checked last night about vdpau and other packages and believe those are all installed:
xcb-util
libvdpau
libvdpau-va-gl
libva-vdpau-driver
 
I had an issue recently with a corrupted .ICEauthority file which broke mpv playback. Deletion of the file allowed it to be recreated when I logged out then back and fixed my issue. I'm thinking mine threw something like "xrdb error connection refused" so this idea is a shot in the dark, but I don't think it can hurt.
 
No dice.

EDIT:
I rebuilt my systems over the weekend and on a new system from scratch, I get the same error.
 
Last edited:
The error suggests it may be VA-API that's stopped working. Have you tried editing the video output driver? In ~/.config/mpv/mpv.conf, adding vo=gpu or vo=xv might work.
 
Yes, xv did it, but uh, the root of the problem is that VAAPI isn't working, but I guess it is a workaround. There was an issue earlier with drm kmod and I think I installed one version and not the other.

 
I checked last night about vdpau and other packages and believe those are all installed:
xcb-util
libvdpau
libvdpau-va-gl
libva-vdpau-driver

Code:
libva info: VA-API version 1.22.0)  0.4%

libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so

libva info: va_openDriver() returns -1

libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so

libva info: va_openDriver() returns -1

Hm.. Not sure which card you have but did you checked
multimedia/libva-intel-media-driver or multimedia/libva-intel-driver as well?
 
Hello, have you ever solved this problem?

I haven't upgraded packages for a few months and did just today, now my mpv no longer works with hwdec and only works with vo=xv or vo=x11 which is extremely slow. I have a ThinkPad W520 with 2nd generation Intel i7 and Nvidia Quadro 1000M (x11/nvidia-driver-390).
 
Back
Top