[MPlayer-users] Mplayer crashes after looping...
Aaron Trumm
aaron at nquit.com
Thu Mar 31 00:32:55 CEST 2005
Hello - I wonder if anyone has ever seen this, or knows of any information on it, or what not...any help is greatly appreciated, as my employer has tasked me with figuring this one out! :) I paste some of an email I just wrote to another person...
Here is the situation I'm trying to deal with - the goal is to run 3
simultaneous instances of mplayer, one on each of three monitors on 3 nvidia
geforce 5200 video cards, using the motion compensation codecs. I don't
understand xorg that well yet (I'm actually an audio engineer), but the lead
developer tells me that it's three different X servers as opposed to one (as
in Xinerama?)
So using the xv video output in mplayer (mplayer -vo xv) this works fine, I
play back and it's great and I have yet to see a crash. Using xvmc (
mplayer -vc ffmpeg12mc -vo xvmc ), what happens is, after about an hour of
looping videos (I'm looping 2-3 minute videos over and over), mplayer will
start to crash. One instance will crash, then some minutes later, another,
and another. Mplayer crashes when it starts a new loop. So it doesn't
crash in the middle of the video. It'll finish the video a bunch of times,
and then finally, on the 20th time or whatever number it is (I haven't
counted and I don't think it's the same each time), it tries to play the
video again and crashes with this output:
Starting playback...
vd_ffmpeg: XVMC accelerated MPEG2
trying pixfmt=0
VDec: vo config request - 720 x 480 (preferred csp: MPEG1/2 Motion
Compensation and IDCT)
VDec: using MPEG1/2 Motion Compensation and IDCT as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xvmc] 720x480 => 720x540 MPEG1/2 Motion Compensation and IDCT [fs]
vo_xvmc: Port 292 grabed
vo_xvmc: Found matching surface with id=54434449 on 292 port at 0
adapter
FATAL: Cannot initialize video driver.
trying pixfmt=1
Only buffers allocated by vo_xvmc allowed
mplayer: vd_ffmpeg.c:942: mc_get_buffer: Assertion `0' failed.
MPlayer interrupted by signal 6 in module: decode_video
- 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.
alsa-uninit: pcm closed
It will indeed do this with 2 instances, but it takes longer. It happens
quicker with larger more resolute video files. All this leads me to believe
it's a memory leak.
I have upgraded from xorg-x11-6.7 to 6.8.0 and then to 6.8.2 and I've added
the line
Option "XaaNoOffscreenPixmaps"
to each of the 3 device sections in xorg.conf. (this seems to have improved
CPU usage DRASTICALLY, and I believe it was only taking about half an hour
to crash before, but eventually, they still crash), per this bugzilla discussion:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=126307
This and this mailing list archive are the closest I've found to someone having the same problem:
http://www.newsarch.com/archive/mailinglist/mplayer/user/msg10614.html
In the bugzilla discussion, you can see that the problem is actually
different. Instead of "only buffers allocated by vo_xvmc allowed", their
message is "BadAlloc (insufficient resources for operation)", and presumably
their problem happens right away, whereas ours takes an hour of looping.
In the mailing list archive, it appears that he has a closer problem. In
all of my research thusfar, I've found only claims that the bug is in xorg
and that it's solved.
I am running the following (taken from some of my documentation):
HARDWARE:
CPU: Pentium 4 2.8 GhZ
BIOS: AMBIOS .08.00.9
Settings: USB disabled
On-board audio disabled
ACPI enabled
RAM: 512MB 333 MhZ DRAM
Harddisk: ST380013AS SATA 80 GB
Audio: M-Audio Delta 1010
Video: NVIDIA GForce FX 5200s (3 cards)
Periphs: Uknown serial exchange card of some kind
3.5" Floppy
ATAPI CDROM Drive
SOFTWARE:
OS: Linux i686 2.4.26-gentoo-r9
Grub Boot Manager
X-Window Manager: xorg-x11-6.8.2-r1 (gentoo ebuild)
Window Mangager: fvwm-2.5.10-r3 (gentoo ebuild)
Video Playback: mplayer-1.0_pre4-r7 (gentoo ebuild)
Audio Drivers/Tools: alsa-driver-1.0.6a (gentoo ebuild)
Alsa-utils-1.0.6 (gentoo ebuild)
Alsa-tools-1.0.6 (gentoo ebuild)
Thanks in advance for anyone that has any ideas!
---------------------
Aaron Trumm
www.nquit.com
-----------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20050330/0b75c7e7/attachment.htm>
More information about the MPlayer-users
mailing list