Package: mplayer Version: 2:1.3.0-3 Severity: normal Dear Maintainer,
mplayer crashes when taking a screenshot, this is how to reproduce the issue: $ mplayer -vf screenshot file.avi and then press 's' on the keyboard. I am attaching a full backtrace of the crash, but from the mplayer log you can already see some anomalies: ... libavformat version 57.41.100 (external) Mismatching header version 57.25.100 ... [png @ 0x7ffff29c1040]The encoder timebase is not set. Could not open libavcodec PNG encoder FATAL: Cannot initialize video driver. ... Thanks, Antonio -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (900, 'unstable'), (500, 'unstable-debug') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.6.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Init: systemd (via /run/systemd/system) Versions of packages mplayer depends on: ii liba52-0.7.4 0.7.4-18 ii libaa1 1.4p5-44 ii libasound2 1.1.2-1 ii libass5 0.13.2-1 ii libaudio2 1.9.4-5 ii libavcodec57 7:3.1.2-1 ii libavformat57 7:3.1.2-1 ii libavutil55 7:3.1.2-1 ii libbluray1 1:0.9.3-2 ii libbs2b0 3.1.0+dfsg-2.2 ii libc6 2.23-4 ii libcaca0 0.99.beta19-2+b1 ii libcdio-cdda1 0.83-4.2+b1 ii libcdio-paranoia1 0.83-4.2+b1 ii libcdio13 0.83-4.2+b1 ii libdca0 0.0.5-10 ii libdirectfb-1.2-9 1.2.10.0-5.2+b1 ii libdv4 1.0.0-11 ii libdvdnav4 5.0.3-1 ii libdvdread4 5.0.3-1 ii libenca0 1.18-1 ii libfaad2 2.8.0~cvs20150510-1 ii libfontconfig1 2.11.0-6.5 ii libfreetype6 2.6.3-3+b1 ii libfribidi0 0.19.7-1 ii libgif7 5.1.4-0.3 ii libgl1-mesa-glx [libgl1] 11.2.2-1 ii libjack-jackd2-0 [libjack-0.116] 1.9.10+20150825git1ed50c92~dfsg-2 ii libjpeg62-turbo 1:1.5.0-1 ii liblircclient0 0.9.0~pre1-1.2 ii libmad0 0.15.1b-8 ii libmpeg2-4 0.5.1-7 ii libmpg123-0 1.22.4-1 ii libogg0 1.3.2-1 ii libopenal1 1:1.17.2-1 ii libpng16-16 1.6.24-1 ii libpostproc54 7:3.1.2-1 ii libpulse0 9.0-1.1 ii libsdl1.2debian 1.2.15+dfsg1-4 ii libsmbclient 2:4.4.5+dfsg-2 ii libspeex1 1.2~rc1.2-1 ii libswresample2 7:3.1.2-1 ii libswscale4 7:3.1.2-1 ii libtheora0 1.1.1+dfsg.1-14 ii libtinfo5 6.0+20160625-1 ii libvdpau1 1.1.1-3 ii libvorbisidec1 1.0.2+svn18153-0.2 ii libx11-6 2:1.6.3-1 ii libxext6 2:1.3.3-1 ii libxinerama1 2:1.1.3-1+b1 ii libxss1 1:1.2.2-1 ii libxv1 2:1.0.10-1+b1 ii libxvidcore4 2:1.3.4-1 ii libxvmc1 2:1.0.9-1 ii libxxf86dga1 2:1.1.4-1+b1 ii libxxf86vm1 1:1.1.4-1 ii zlib1g 1:1.2.8.dfsg-2+b1 mplayer recommends no packages. Versions of packages mplayer suggests: ii bzip2 1.0.6-8 ii fontconfig 2.11.0-6.5 ii fonts-freefont-ttf 20120503-4 pn mplayer-doc <none> pn netselect | fping <none> -- no debconf information -- Antonio Ospite http://ao2.it A: Because it messes up the order in which people normally read text. See http://en.wikipedia.org/wiki/Posting_style Q: Why is top-posting such a bad thing?
$ gdb --args mplayer -vf screenshot file.avi GNU gdb (Debian 7.11.1-2) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from mplayer...Reading symbols from /usr/lib/debug/.build-id/b0/9b7701932caeaf25b08a4eb8ea58e8a96c1064.debug...done. done. (gdb) run Starting program: /usr/bin/mplayer -vf screenshot file.avi [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". MPlayer 1.3.0 (Debian), built with gcc-5.4.0 (C) 2000-2016 MPlayer Team Playing file.avi. libavformat version 57.41.100 (external) Mismatching header version 57.25.100 AVI file format detected. [aviheader] Video stream found, -vid 0 [aviheader] Audio stream found, -aid 1 [aviheader] Audio stream found, -aid 2 VIDEO: [XVID] 640x272 12bpp 25.000 fps 1161.4 kbps (141.8 kbyte/s) Opening video filter: [screenshot] ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family libavcodec version 57.48.101 (external) Mismatching header version 57.24.102 Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4) ========================================================================== Clip info: Software: VirtualDubMod 1.5.10.2 (build 2540/release) Load subtitles in ./ ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 48000 Hz, 2 ch, floatle, 384.0 kbit/12.50% (ratio: 48000->384000) Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3) ========================================================================== [New Thread 0x7fffccb9a700 (LWP 25128)] AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample) Starting playback... Movie-Aspect is undefined - no prescaling applied. [swscaler @ 0x7ffff3a0b020]bicubic scaler, from yuv420p to rgb24 using MMXEXT [swscaler @ 0x7ffff3a0b020]using unscaled yuv420p -> rgb24 special converter [png @ 0x7ffff29c1040]The encoder timebase is not set. Could not open libavcodec PNG encoder FATAL: Cannot initialize video driver. Movie-Aspect is 2.35:1 - prescaling to correct movie aspect. VO: [xv] 640x272 => 640x272 Planar YV12 A: 0.3 V: 0.2 A-V: 0.021 ct: -0.011 7/ 7 ??% ??% ??,?% 3 0 [VD_FFMPEG] DRI failure. A: 2.6 V: 2.6 A-V: 0.004 ct: -0.016 65/ 65 7% 2% 1.3% 3 0 sending VFCTRL_SCREENSHOT! Thread 1 "mplayer" received signal SIGSEGV, Segmentation fault. 0x00007ffff21d0c54 in avcodec_encode_video2 (avctx=0x555555de8f00, avpkt=avpkt@entry=0x7fffffffcc10, frame=0x555555bb8fa0, got_packet_ptr=got_packet_ptr@entry=0x7fffffffcc0c) at src/libavcodec/utils.c:1933 1933 src/libavcodec/utils.c: File o directory non esistente. (gdb) bt full #0 0x00007ffff21d0c54 in avcodec_encode_video2 (avctx=0x555555de8f00, avpkt=avpkt@entry=0x7fffffffcc10, frame=0x555555bb8fa0, got_packet_ptr=got_packet_ptr@entry=0x7fffffffcc0c) at src/libavcodec/utils.c:1933 ret = <optimized out> user_pkt = {buf = 0x0, pts = <optimized out>, dts = <optimized out>, data = 0x555555dee1e0 "", size = <optimized out>, stream_index = <optimized out>, flags = <optimized out>, side_data = <optimized out>, side_data_elems = <optimized out>, duration = <optimized out>, pos = <optimized out>, convergence_duration = <optimized out>} needs_realloc = 0 #1 0x00005555557337d2 in write_png (priv=<optimized out>) at libmpcodecs/vf_screenshot.c:121 fname = 0x555555bb7f24 "shot0001.png" fp = <optimized out> pkt = {buf = 0x0, pts = -9223372036854775808, dts = -9223372036854775808, data = 0x555555dee1e0 "", size = 1109792, stream_index = 0, flags = 0, side_data = 0x0, side_data_elems = 0, duration = 0, pos = -1, convergence_duration = 0} res = <optimized out> got_pkt = 0 #2 put_image (vf=0x555555bb7cd0, mpi=<optimized out>, pts=<optimized out>) at libmpcodecs/vf_screenshot.c:225 dmpi = 0x555555fe8380 #3 0x0000555555677772 in filter_video (sh_video=<optimized out>, frame=0x555555fe82e0, pts=2.5999999046325684) at libmpcodecs/dec_video.c:486 mpi = 0x555555fe82e0 t2 = 1036287255 vf = 0x555555bb7cd0 ret = <optimized out> #4 0x00005555555eec94 in update_video (blit_frame=0x7fffffffcdb8) at mplayer.c:2534 in_size = 6150 start = 0x5555562926b0 "" decoded_frame = 0x555555fe82e0 drop_frame = 0 full_frame = 1 sh_video = 0x555555b93c40 frame_time = 0.039999999105930328 #5 0x00005555555e1cb5 in main (argc=4, argv=0x7fffffffdef8) at mplayer.c:3826 frame_time = <optimized out> frame_time_remaining = 0 blit_frame = 0 skip_timing = 0 aq_sleep_time = 0 opt_exit = <optimized out> profile_config_loaded = <optimized out> i = <optimized out>