Bug#922400: crash when playing video (with gpu and hardware decoding)
Package: mpv
Version: 0.29.1-1
Severity: important
Tags: patch
When starting mpv on a video (p.E. mp4) without option it crashes, leaving a
core file behind:
$ mpv vim-editor-as-integrated-development-environment.mp4
Playing: vim-editor-as-integrated-development-environment.mp4
(+) Video --vid=1 (*) (h264 1280x720 25.000fps)
(+) Audio --aid=1 (*) (aac 2ch 44100Hz)
Using hardware decoding (vdpau).
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 1280x720 vdpau
mpv: ../src/mesa/state_tracker/st_sampler_view.c:546:
st_get_texture_sampler_view_from_stobj: Assertion `stObj->level_override ||
last_level(stObj) == view->u.tex.last_level' failed.
zsh: abort (core dumped) mpv vim-editor-as-integrated-development-
environment.mp4
When setting --vo to other then gpu it does not crash.
When using --vo=gpu and --hwdec=no it does not crash.
By comparison vlc and mplayer (version 2:1.3.0-8+b4 amd64) work out of the box:
$ mplayer vim-editor-as-integrated-development-environment.mp4
MPlayer 1.3.0 (Debian), built with gcc-8 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing vim-editor-as-integrated-development-environment.mp4.
libavformat version 58.20.100 (external)
Mismatching header version 58.12.100
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4ac1f01e00]Protocol name not provided, cannot
determine if input is local or a network protocol, buffers and access patterns
cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO: [H264] 1280x720 24bpp 25.000 fps 316.3 kbps (38.6 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 58.35.100 (external)
Mismatching header version 58.18.100
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
major_brand: mp42
minor_version: 0
compatible_brands: isommp42
creation_time: 2016-08-27T08:37:01.000000Z
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 125.6 kbit/4.45% (ratio: 15698->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] 44100Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x720 Planar YV12
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=de:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages mpv depends on:
ii libarchive13 3.3.3-4
ii libasound2 1.1.7-2
ii libass9 1:0.14.0-2
ii libavcodec58 7:4.1-1
ii libavdevice58 7:4.1-1
ii libavfilter7 7:4.1-1
ii libavformat58 7:4.1-1
ii libavutil56 7:4.1-1
ii libbluray2 1:1.0.2-3
ii libc6 2.28-6
ii libcaca0 0.99.beta19-2+b3
ii libcdio-cdda2 10.2+0.94+2-4
ii libcdio-paranoia2 10.2+0.94+2-4
ii libcdio18 2.0.0-2
ii libdrm2 2.4.97-1
ii libdvdnav4 6.0.0-1
ii libdvdread4 6.0.0-1
ii libegl1 1.1.0-1
ii libgbm1 18.3.2-1
ii libgl1 1.1.0-1
ii libjack-jackd2-0 [libjack-0.125] 1.9.12~dfsg-2
ii libjpeg62-turbo 1:1.5.2-2+b1
ii liblcms2-2 2.9-3
ii liblua5.2-0 5.2.4-1.1+b2
ii libpulse0 12.2-3
ii librubberband2 1.8.1-7
ii libsdl2-2.0-0 2.0.9+dfsg1-1
ii libsmbclient 2:4.9.4+dfsg-2
ii libsndio7.0 1.5.0-3
ii libswresample3
Reply to: