Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] mplayer crash when I use keyboard control
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
buptwugh
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2012
Posts: 101
Location: Beijing,China

PostPosted: Sat Jun 08, 2013 3:00 pm    Post subject: [Solved] mplayer crash when I use keyboard control Reply with quote

Hi, all
I use emerge mplayer to my media, it can play a video, however, when I use keyboard control (such as 0,9,<,>)to control mplayer crashed.

Here is mplayer crash information
Code:

tom@nextzone /windows/d/Torrent $ mplayer gbruceBBC.隐秘的朝鲜.mkv
MPlayer 1.1-4.6.3 (C) 2000-2012 MPlayer Team
MMX2 supported but disabled

Playing gbruceBBC.隐秘的朝鲜.mkv.
libavformat version 53.32.100 (external)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang eng
[lavf] stream 2: subtitle (text), -sid 0, -slang eng
VIDEO:  [H264]  1024x576  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.61.100 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1024x576 => 1024x576 Planar YV12
A:   2.8 V:   2.8 A-V: -0.002 ct:  0.068   0/  0 19%  1%  1.2% 0 0
[AO_ALSA] Unable to find simple control 'PCM',0.
[AO_ALSA] Unable to find simple control 'PCM',0.
[Mixer] No hardware mixing, inserting volume filter.


MPlayer interrupted by signal 4 in module: filter video
- MPlayer crashed by an 'Illegal Instruction'.
  It usually happens when you run it on a CPU different than the one it was
  compiled/optimized for.
  Verify this!
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.


Here is my emerge --info
Code:

nextzone ~ # emerge --info
Portage 2.1.12.2 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo x86_64)
=================================================================
System uname: Linux-3.7.10-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_M_430_@_2.27GHz-with-gentoo-2.2
KiB Mem:     3906240 total,    384676 free
KiB Swap:    2097148 total,   2097116 free
Timestamp of tree: Sat, 08 Jun 2013 14:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo sabayon x-my_ebuilds
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.xmu6.edu.cn/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sabayon /var/lib/layman/my_ebuilds"
SYNC="rsync://mirrors.xmu6.edu.cn/gentoo-portage"
USE="3dnow X Xaw3d a52 aac acl acpi alsa amd64 bash-completion bcmath berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli consolekit cracklib crypt cscope ctype cups curl cxx dbus djvu dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fortran ftp gdbm gif gpm gstreamer gtk gzip hddtemp iconv imap imlib ios ipod ipv6 javascript jpeg latex lcms ldap libass libcaca libnotify lm_sensors lua lzma mad mmap mmx mng modules mp3 mp4 mpeg mtp mudflap multilib mute ncurses nls nptl ogg opengl openmp pam pango pcre pdf plasma png policykit posix ppds pulseaudio python qt3support qt4 readline sdl session smp sockets socks5 sound spell sse sse2 ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vcd vim-syntax vorbis wxwidgets x264 xcb xft xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Here is my make.conf
Code:

nextzone ~ # cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
# Host Setting
# ============
#
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.

# for portage
SYNC="rsync://mirrors.xmu6.edu.cn/gentoo-portage"
# SYNC="rsync://mirrors.xmu.edu.cn/gentoo-portage"
# for distfile
GENTOO_MIRRORS="http://mirrors.xmu6.edu.cn/gentoo"
# GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/"
# GENTOO_MIRRORS="http://mirrors.xmu.edu.cn/gentoo"


# for portage
#SYNC="rsync://mirrors.xmu.edu.cn/gentoo-portage"
# for distfile
#GENTOO_MIRRORS="http://mirrors.xmu.edu.cn/gentoo"

# These are the USE flags that were used in addition to what is provided by the
# delete uses: emacs xemacs webkit directfb mysql mysqli java
# profile used for building.
USE="3dnow X Xaw3d bash-completion bcmath cjk cscope ctype curl  mmx sse sse2
 djvu ffmpeg fontconfig ftp gstreamer gzip hddtemp imap imlib ios ipod 
 javascript latex libass libcaca lm_sensors lua lzma mmap mtp mute plasma
 posix pulseaudio python sockets socks5 sound smp threads vim-syntax vcd
 win32codecs xft"

VIDEO_CARDS="nouveau"
INPUT_DEVICES="evdev synaptics"
source /var/lib/layman/make.conf


here is my use flags for mplayer
Code:

nextzone ~ # emerge -pv mplayer

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-video/mplayer-1.1-r1  USE="3dnow X a52 alsa cdio dts dv dvd dvdnav enca encode faad ftp gif iconv ipv6 jpeg libass libcaca live mad mmx mng mp3 network opengl osdmenu png pulseaudio quicktime rar real rtc sdl shm speex sse sse2 theora toolame tremor truetype twolame unicode vorbis x264 xscreensaver xv xvid -3dnowext -aalib (-altivec) (-aqua) -bidi -bindist -bl -bluray -bs2b -cddb -cdparanoia -cpudetection -debug -dga -directfb -doc -dvb -dxr3 -faac -fbcon -ggi -gsm -jack -joystick -jpeg2k -ladspa -libmpeg2 -lirc -lzo -md5sum -mmxext -nas -nut -openal -oss -pnm -pvr -radio -rtmp -samba -ssse3 -tga -v4l -vdpau (-vidix) -xanim -xinerama -xvmc -zoran" VIDEO_CARDS="-mga -s3virge -tdfx" 0 kB



Thank you for your time!
:roll:


Last edited by buptwugh on Tue Jun 11, 2013 1:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Sat Jun 08, 2013 8:04 pm    Post subject: Reply with quote

I wonder if it could be related to on-screen displays. Does "f" for fullscreen or spacebar for pause/play cause it to crash?
Back to top
View user's profile Send private message
buptwugh
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2012
Posts: 101
Location: Beijing,China

PostPosted: Sun Jun 09, 2013 2:18 am    Post subject: Reply with quote

Thank you BradN.
"f" for fullscreen or spacebar for pause/play won't cause it to crash.
I can use "f" and "space".
So, what can I do, get gnome-mplayer or smplayer.
BradN wrote:
I wonder if it could be related to on-screen displays. Does "f" for fullscreen or spacebar for pause/play cause it to crash?
Back to top
View user's profile Send private message
buptwugh
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2012
Posts: 101
Location: Beijing,China

PostPosted: Sun Jun 09, 2013 5:59 pm    Post subject: Reply with quote

is There any one
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Sun Jun 09, 2013 6:36 pm    Post subject: Reply with quote

It means the problem is probably in on-screen displays. The keys you mentioned all try to display to the screen when you press them, but space and f don't. I would try looking to see if it is using a bad font or something like that, or if you can just shut off the on-screen displays entirely as a workaround.

Here are some options for mplayer to look at (from man mplayer):

Code:
       -font <path to font.desc file, path to font (FreeType), font pattern (Fontconfig)>
              Search  for  the  OSD/SUB  fonts  in  an alternative directory (default for normal fonts: ~/
              .mplayer/font/font.desc, default for FreeType fonts: ~/.mplayer/subfont.ttf).
              NOTE: With FreeType, this option determines the path to the text font file.   With  Fontcon-
              fig, this option determines the Fontconfig font pattern.

              EXAMPLE:
                 -font ~/.mplayer/arial-14/font.desc
                 -font ~/.mplayer/arialuni.ttf
                 -font 'Bitstream Vera Sans'
                 -font 'Bitstream Vera Sans:style=Bold'

       -fontconfig (fontconfig only)
              Enables the usage of fontconfig managed fonts.
              NOTE: By default fontconfig is used for libass-rendered subtitles and not used for OSD. With
              -fontconfig it is used for both libass and OSD, with -nofontconfig it is not used at all.

       -osdlevel <0-3> (MPlayer only)
              Specifies which mode the OSD should start in.
                 0    subtitles only
                 1    volume + seek (default)
                 2    volume + seek + timer + percentage
                 3    volume + seek + timer + percentage + total time


for example, -osdlevel 0 would maybe make it stop crashing for a video with no subtitles, but you wouldn't see any status displays.
Back to top
View user's profile Send private message
buptwugh
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2012
Posts: 101
Location: Beijing,China

PostPosted: Mon Jun 10, 2013 2:55 am    Post subject: Reply with quote

Thank you BradN.
I try your method. When I use -osdlevel 0 to play some videos Mplayer do not crash. But When I use -osdlevel 1 and -font /usr/share/fonts/corefonts/arial.ttf It crash again. I try some font such as msyh.tff, arial.tff, arialuni.ttf. However, It crash again. When I use -osdlevel 2 and 3 Mplayer can not play any movie.

BradN wrote:
It means the problem is probably in on-screen displays. The keys you mentioned all try to display to the screen when you press them, but space and f don't. I would try looking to see if it is using a bad font or something like that, or if you can just shut off the on-screen displays entirely as a workaround.

Here are some options for mplayer to look at (from man mplayer):

Code:
       -font <path to font.desc file, path to font (FreeType), font pattern (Fontconfig)>
              Search  for  the  OSD/SUB  fonts  in  an alternative directory (default for normal fonts: ~/
              .mplayer/font/font.desc, default for FreeType fonts: ~/.mplayer/subfont.ttf).
              NOTE: With FreeType, this option determines the path to the text font file.   With  Fontcon-
              fig, this option determines the Fontconfig font pattern.

              EXAMPLE:
                 -font ~/.mplayer/arial-14/font.desc
                 -font ~/.mplayer/arialuni.ttf
                 -font 'Bitstream Vera Sans'
                 -font 'Bitstream Vera Sans:style=Bold'

       -fontconfig (fontconfig only)
              Enables the usage of fontconfig managed fonts.
              NOTE: By default fontconfig is used for libass-rendered subtitles and not used for OSD. With
              -fontconfig it is used for both libass and OSD, with -nofontconfig it is not used at all.

       -osdlevel <0-3> (MPlayer only)
              Specifies which mode the OSD should start in.
                 0    subtitles only
                 1    volume + seek (default)
                 2    volume + seek + timer + percentage
                 3    volume + seek + timer + percentage + total time


for example, -osdlevel 0 would maybe make it stop crashing for a video with no subtitles, but you wouldn't see any status displays.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Mon Jun 10, 2013 8:36 am    Post subject: Reply with quote

Try running mplayer with -vo gl, that uses a different method to render the OSD than default Xv so it might not crash.
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Mon Jun 10, 2013 8:38 am    Post subject: Reply with quote

Unfortunately I don't know what exactly would be causing it to crash, I would suggest recompiling/upgrading any font related packages, but that's just guessing. Maybe try turning on/off font related use flags. My mplayer has "truetype" use flag on.

If it is something related to a missing file, maybe running mplayer with strace could give a hint:
emerge strace
strace -f mplayer

Just some ideas to try, I don't know if it will help :(

Also try Ant P.'s suggestion, worth a shot.
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Mon Jun 10, 2013 9:55 am    Post subject: Reply with quote

I used smplayer at first, but I eventually lost patience with bugs
in qt updates crashing it. I much prefer running mplayer in text mode,
which has given me no problems. But the only keyboard controls
I ever use are p (pause), m (mute), * (increase volume), and q (quit).
I only use it for playing audio.

"Illegal instruction" is a fairly rare error. You could try disabling the
USE flags for various instruction set subsets that would most likely
be used at assembler level (3DNow, mmx, sse, sse2, etc), re-emergeing
mplayer, and see if it still crashes. Or disable all of them and add
them back one at a time and test. (I am assuming that gcc is less
likely to generate machine code with -march=native on a fairly widely
used cpu that raises that error than that hand-coded assembler that
uses one of those instruction set subsets might raise that error.)

Since when does an Intel Core cpu have support for 3DNow instructions?
Maybe it does and I simply do not know about it, but 3DNow was an AMD
extension to the x86 instruction set, so that USE flag is the first one I would
suspect on your system, assuming that I am reading your emerge --info
output correctly.
_________________
TIA
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Mon Jun 10, 2013 8:31 pm    Post subject: Reply with quote

Oh, didn't see that. USE="3dnow -cpudetection" is almost certain to be the root of the problem.
Back to top
View user's profile Send private message
buptwugh
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2012
Posts: 101
Location: Beijing,China

PostPosted: Tue Jun 11, 2013 2:30 am    Post subject: Reply with quote

Ant P. wrote:
Oh, didn't see that. USE="3dnow -cpudetection" is almost certain to be the root of the problem.

Thank you Ant p.
I will try this.
Back to top
View user's profile Send private message
buptwugh
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2012
Posts: 101
Location: Beijing,China

PostPosted: Tue Jun 11, 2013 1:46 pm    Post subject: Reply with quote

Thank you cwg, I solved the problem by disabling "3dnow" use flag, then mplayer work, all keyboard control work.

wcg wrote:
I used smplayer at first, but I eventually lost patience with bugs
in qt updates crashing it. I much prefer running mplayer in text mode,
which has given me no problems. But the only keyboard controls
I ever use are p (pause), m (mute), * (increase volume), and q (quit).
I only use it for playing audio.

"Illegal instruction" is a fairly rare error. You could try disabling the
USE flags for various instruction set subsets that would most likely
be used at assembler level (3DNow, mmx, sse, sse2, etc), re-emergeing
mplayer, and see if it still crashes. Or disable all of them and add
them back one at a time and test. (I am assuming that gcc is less
likely to generate machine code with -march=native on a fairly widely
used cpu that raises that error than that hand-coded assembler that
uses one of those instruction set subsets might raise that error.)

Since when does an Intel Core cpu have support for 3DNow instructions?
Maybe it does and I simply do not know about it, but 3DNow was an AMD
extension to the x86 instruction set, so that USE flag is the first one I would
suspect on your system, assuming that I am reading your emerge --info
output correctly.
Back to top
View user's profile Send private message
nicoseb
n00b
n00b


Joined: 26 Oct 2011
Posts: 13
Location: United States

PostPosted: Sun Jul 07, 2013 5:02 am    Post subject: Finally someone with the same issue! Reply with quote

Hi,

I have the same issue, and running mplayer with osdlevel=0 fixes it, but activating the osd directly fails.
It used to run without any issues, and then stopped after some upgrade of ffmpeg...

Here is my make.conf:
Code:

CFLAGS="-march=amdfam10 -mtune=generic -mmmx -msse -msse2 -msse3 -mssse3 -msse4a -mabm -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j3"
VIDEO_CARDS="fglrx r600 fbdev vesa radeon" #fglrx"
ACCEPT_LICENSE='*'

SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
#LINGUAS="us"
ACCEPT_KEYWORDS="~x86 ~amd64"

USE="-kde -gnome -gtk alsa cdr acpi aalib libcaca cairo cdda cups curl
dbus dri -emacs encode png jpeg jpeg2k mpeg mp4 -firefox -mozilla
gimp gpm imagemagick ios java pulseaudio libnotify lzo
matroska -mono -msn ncurses -networkmanager pdf policykit -seamonkey css
truetype usb v4l v4l2 videos wifi win32codecs x264 -xine -bluetooth
bash-completion static-libs X asf fuse -thunar -gnome-keyring symlink
mad matroska mp3 wma wmv asf ogg unicode -xmms icu a52 theora modplug
xv xvid browserplugin opengl png real sdl truetype vorbis encode gif
dvd dvdread edl sdk python svg aac divx4linux -doc ati -qt3support
qt4 ntfs libmpeg2 mpg123 bluray aacs ass tiff vdpau vaapi xinerama g3dvl"
#mmx sse sse2 mmx2

FEATURES="-sandbox"

source /var/lib/layman/make.conf


As you can see I disable the USE flags for mmx sse sse2 mmx2 but that does not change anything (actually no packages were re-emerged) and rebuilt mplayer!

Here is the error message:
Code:
MPlayer interrupted by signal 6 in module: flip_page
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.


Please note I am running the mplayer from git git://gitorious.org/vaapi/mplayer.git for vaapi support (running with AMD APU)

Any help would be appreciated!

Thanks
Back to top
View user's profile Send private message
nicoseb
n00b
n00b


Joined: 26 Oct 2011
Posts: 13
Location: United States

PostPosted: Sun Jul 07, 2013 5:28 am    Post subject: Reply with quote

Nevermind, don't mind me, after writing the post I realized that changing my make.conf has no repercussion on me manually building from git!
I am now recompiling with disabled mmx[2-ext] sse[2-3], I'll ask for more help tomorrow if that does not fix the issue...
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Sun Jul 07, 2013 7:57 pm    Post subject: Reply with quote

What does USE flag "mmx2" enable? (I have never heard of it.)
Flags in /proc/cpuinfo do not always match the names of USE
flags. "pni" support in the cpu actually means "sse3" support,
for example, and while there is no pni USE flag there is an
sse3 USE flag. So the "mmx2" USE flag may signal emerge to
enable "mmxext" or something like that.

The reason that those USE flags were of particular interest for
the OP's problem was because of the "Illegal Instruction" error
reported. Those USE flags often have the effect of enabling
hand-coded assembler in the code, where I guessed that one
might more likely find code that caused that error on a common
cpu than that "gcc -march=native" would generate code for
that same cpu that would cause the cpu to report an "illegal
instruction" error.

That would not necessarily be the only reason that the "on-screen
display" (OSD) in mplayer might crash, though.

Did your error logs show anything like that?

http://www.gentoo.org/proj/en/qa/backtraces.xml

(A lot of people change their optimization flags from -O2 to
-O1 or -O0 when compiling with -ggdb for debugging. That
seems clueless to me. When debugging with gdb, I want it
to trace the code that I am actually running when the error
happens, with the addition of the code annotations enabled
by -ggdb. So I leave the -O flag at -O2 if that is what I used
for the program that showed the error. gdb still works with
"-O2 -ggdb" code.)
_________________
TIA
Back to top
View user's profile Send private message
nicoseb
n00b
n00b


Joined: 26 Oct 2011
Posts: 13
Location: United States

PostPosted: Mon Jul 08, 2013 2:54 am    Post subject: Reply with quote

Thanks wcg,

I get the point, obviously these flags did not fix the problem...
I'll try to look at it this week using gdb to see what it gives me!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum