Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87949 - mplayer crashes after it is unpaused if xscreensaver runs
Summary: mplayer crashes after it is unpaused if xscreensaver runs
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-04 12:31 UTC by Sumit Khanna
Modified: 2006-06-22 07:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sumit Khanna 2005-04-04 12:31:25 UTC
I have the following options in my /etc/mplayer.conf:

vo=sdl  
ao=alsa
fs=yes
vm=yes 
stop-xscreensaver=yes

Most important is the stop-xscreensaver. I am using these versions:

mplayer-1.0_pre6-r1
xscreensaver-4.20

I am using Gnome 2.10 (although I had the same problem with Gnome 2.8) and I have my xscreensaver to blank after 10 min, cycle after 10 min, lock my screen after 15 min, power standby after 10min, suspend after 15 min and off after 20 min.

If I run mplayer, pause it, let the screensaver run, come back and unlock my screen, and then unpause mplayer, it crashes like so:

A:2153.3 V:2153.3 A-V:  0.017 ct: -0.213 51602/51599 12% 15%  1.4% 23 0 49%
No bind found for key 0x134
No bind found for key 0x132
X11 error: BadWindow (invalid Window parameter)


MPlayer interrupted by signal 6 in module: stop_xscreensaver
- 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.
Could not enable DPMS
alsa-uninit: pcm closed
skhanna@raphael /mnt/bender/Unwatched DVDs $

This happens when I play AVIs, DVDs, Mpegs, whatever. I didn't use to happen before. I'm not exactly sure which mplayer release this started with. 

Reproducible: Always
Steps to Reproduce:
1. Play a movie with mplayer
2. Pause movie
3. Wait for xscreensaver to lock screen
4. Unlock Screen 
5. Unpause mplayer

Actual Results:  
Mplayer would crash. I'm not sure if it still crashes if I don't wait long
enough for the screen to lock. I need to test that. It's imporant also to note
that mplayer is in a window at this point when I pause it. I'm not sure if this
happens if I keep it full screened.

Expected Results:  
Played normally

Portage 2.0.51.19 (default-linux/x86/2004.2, gcc-3.3.5, glibc-2.3.4.20041102-r1,
2.6.10 i686)
=================================================================
System uname: 2.6.10 i686 AMD Athlon(tm) MP 1900+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 30 2005, 00:44:23)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.6.3, 1.9.5, 1.5, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-mp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-mp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://gentoo.binarycompass.org http://mirror.datapipe.net/gentoo
http://www.gigaload.org/gentoo.org/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X aalib acpi aim alsa apm arts audiofile avi berkdb
bitmap-fonts cdr crypt cups curl divx4linux dvd dvdr dvdread emboss encode esd
fam flac flash font-server foomaticdb fortran ftp gdbm gif gnome gpm gstreamer
gtk gtk2 gtkhtml imagemagick imap imlib ipv6 java jpeg junit kde libg++ libwww
mad mikmod mmx motif mozilla mp3 mpeg msn ncurses nls oggvorbis opengl pam pda
pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svg
svga tcltk tcpd tiff truetype truetype-fonts type1-fonts xml2 xmms xpm xv xvid
yahoo zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Luca Barbato gentoo-dev 2005-08-04 11:02:18 UTC
is the issue still present in the pre7?
Comment 2 Chris Connett 2005-09-26 16:38:42 UTC
I too experience the same bug.  Here is the error at the end of mplayer's
console output:
---
Pinging xscreensaver.
X11 error: BadWindow (invalid Window parameter)
Type: 0, display: bda0e0, resourceid: 800020, serial: 5b2
Error code: 3, request code: 19, minor code: 0


MPlayer interrupted by signal 6 in module: stop_xscreensaver
- 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.

*** uninit(0xECB)
Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: mp3lib
uninit video: ffmpeg
DEMUXER: freeing demuxer at 0xbc4810
DEMUXER: freeing sh_audio at 0xbc1950
DEMUXER: freeing sh_video at 0xbc1890
Successfully enabled DPMS
Xlib: unexpected async reply (sequence 0x5ba)!

[[[uninit getch2]]]
alsa-uninit: pcm closed
vo: uninit ...
max framesize was 68455 bytes
---
Also:
chris@milliways ~ $ equery w mplayer
/usr/portage/media-video/mplayer/mplayer-1.0_pre7-r1.ebuild

chris@milliways ~ $ emerge info
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib acpi aim alsa apache2 apm avi bash-completion berkdb
bitmap-fonts browserplugin bzlib calendar cdparanoia cdr crypt cups curl doc eds
emacs emboss encode esd exif expat fam flac flash foomaticdb fortran gcj gdbm
gif gimp gmail gmp gnome gphoto2 gpm gstreamer gtk gtk2 guile hal imagemagick
imap imlib innodb ipv6 java javascript joystick jpeg junit libcaca libwww lirc
lzw lzw-tiff mad mime mmap mng mov mozilla mp3 mpeg mysql mythtv ncurses nls
nvidia ogg oggvorbis opengl oscar pam pdflib perl png posix postgres python qt
quicktime readline real ruby scanner sdl slang speex spell sqlite ssl svg tcltk
tcpd tetex theora threads tiff truetype-fonts type1-fonts unicode usb
userlocales utf8 v4l v4l2 vcd videos vorbis wma wmf wmv wxwindows xml xml2 xmms
xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

Furthermore, the bug is reproducible using xscreensaver-demo's Preview button.
Comment 3 Steve Dibb (RETIRED) gentoo-dev 2006-06-22 07:48:41 UTC
Is this bug still present in recent versions?