mplayer with xv hangs system on specific file

Bug #34776 reported by Eric Feliksik
14
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Medium
Unassigned
mplayer (Ubuntu)
Invalid
Medium
Unassigned
mythtv (Ubuntu)
Invalid
Undecided
Unassigned
xorg (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

My config:
- Current Dapper
- mplayer-686 0.99+1.0pre7try2+cvs20060117-0ubuntu5
- xorg driver "savage" (ProSavage8 chip)
- let mplayer output to xv (xvideo)

Play http://atlas.et.tudelft.nl/1200348/pub/donnerrapt.wmv . WARNING: this may crash you system.
Mirror: http://launchpadlibrarian.net/8850484/donnerrapt.wmv

Revision history for this message
Reinhard Tartler (siretart) wrote :

I tried that file on my notebook, which uses the radeon driver. No crash, file run perfectly, no crash, no issue. I assume this bug is in the savage xv driver, so reassigning this bug.

Revision history for this message
nszabolcs (nszabolcs) wrote : video crashes xorg

mplayer -vo xv bug.avi
crashes xorg

after crash i have no input so be aware!
(to recover i had to remote login via ssh and chvt to a terminal with working input to avoid restart, killing x wasn't enought)

Revision history for this message
nszabolcs (nszabolcs) wrote : Re: mplayer with xv crashes system on specific file

i could reproduce the bug with the linked donnerrapt.wmv and the above attached file as well

ubuntu: dapper
mplayer: i386, 2:0.99+1.0pre7try2+cvs20060117-0ubuntu6
xorg driver: nvidia

i cannot find any usefull info in the logfiles (dmesg, xsessionerrors ...)

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

does it happen with other players as well or just mplayer?

Fabio

Changed in xorg:
status: Unconfirmed → Needs Info
Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

it seems a more generic problem than just a specific driver one.

Changed in xserver-xorg-driver-savage:
status: Unconfirmed → Rejected
Revision history for this message
Eric Feliksik (milouny) wrote :

totem: audio ok, video not visible (no gstreamer0.10 plugin for wmv)
gxine: audio ok, video ok with xv output.

So it looks like it only affects mplayer

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

same results here.

mplayer issue.

Revision history for this message
Eric Feliksik (milouny) wrote :

I know this is not the classroom, but how can mplayer crash the system? Isn't it a kernel bug then? Or is mplayer for performance reasons trusted to access certain low level parts, and do we all hope that it doesn't abuse its priviledges (which unfortunately happens here)?

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

just a wild guess is that mplayer *might* be using extensions that is not supposed to or that it executes codes from the pluging that makes the world cry.

Remember that X is running as the same user as mplayer. So if mplayer even by mistake issue a kill X, X will die. There is no way to protect that.

Fabio

Revision history for this message
nszabolcs (nszabolcs) wrote :

this is _NOT_ an mplayer bug

the program which uses 100% cpu is Xorg

Ofcourse the file is playable with other video players (and with mplayer as well with different vo) because the problem is not with the video file, but the way mplayer tries to play it (mplayer uses Xorg in a way that Xorg doesn't like, but it's not an mplayer issue).

mplayer shouldn't be able to hang Xorg.

after upgrading to dapper final the bug is still reproducible

NEW INFO:
when i use Driver "nvidia" then Xorg hangs
when i use Driver "nv" then Xorg does NOT hang

(well with "nvidia" i also use RandR extension and other options, but the driver is the most probable source of the bug)

maybe other nvidia/non-nvidia driver users should confirm

Revision history for this message
Maduser (maduser) wrote :

I can confirm that the with the driver "nvidia" the X hangs and with the "nv" driver everything works fine.

Revision history for this message
Maduser (maduser) wrote :

I think my Mythtv has the same Problem.

Revision history for this message
Edi Weissmann (edi-weissmann) wrote :

I have the same problem, only I have a ProSavage8 KM266/KL266 video card and in /etc/X11/xorg.conf I have "savage" Driver.

Can you please detail a way to recover from this crash? Because the only way I know is restarting the computer (from the power button...).

Revision history for this message
Mario Limonciello (superm1) wrote :

By reading through this post, this problem appears to be related much more to xorg drivers, particularly this savage driver. All media related apps that use Xv could be listed, but that is quite counter-productive. Removing mythtv from the list.

Changed in mythtv:
status: Unconfirmed → Rejected
Revision history for this message
Nafallo Bjälevik (nafallo) wrote :

Is this bug still reproducible on feisty? Or even edgy?

Revision history for this message
Nicolas (dawar) wrote :

Yes, still reproducible on feisty !

nVidia Corporation NV18 [GeForce4 MX 440 AGP 8x] (rev c1)
Kernel Linux ubuntu 2.6.20-16

With nvidia driver (any version), some video crash mplayer and xorg. Need to reboot.
With nv driver, all video works fine.

Revision history for this message
Kees Cook (kees) wrote :

Does a crash file for Xorg or mplayer appear in /var/crash? If so, please attach it to this bug. Thanks!

Revision history for this message
Steven Harms (sharms) wrote :

Cannot reproduce on feisty using mplayer -vo xv

nVidia Corporation NV43 [GeForce 6600/GeForce 6600 GT] (rev a2)

Revision history for this message
Nicolas (dawar) wrote :

I have changed my video card, now I cannot reproduce the bug with my new NV35 [GeForce FX 5900XT].

NV18 [GeForce4 MX 440 AGP 8x] (rev c1) --> crash
NV35 [GeForce FX 5900XT] --> works

Same driver, system and hardware.

No files in /var/crash because it don't crash, it just hang.

Revision history for this message
Arnold Mous (shutup) wrote :

Reproducable in Gutsy with a 01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 420 Go] (rev a3)

mplayer -vo xv sometimes works, but sometimes will just nuke the system. External VGA output turns off and then the machine is temporarily pingable. I can't get it to restart or do anything once I log in. It seems to freeze.

This shouldn't be happening, XV should be safe.

Revision history for this message
Eric Feliksik (milouny) wrote :

because the server hosting the file in the first post will likely go down soon, i upload it to launchpad. See attached file.

description: updated
Revision history for this message
trollord (trollenlord) wrote :

I've had an experience that might shed some light. Basically
- That video file has got a tiny error in it
- Some of the frames gets decoded into such form that it causes buffer underrun (or some other problem with the frame)
- Xv forwards it happily to the display drivers for handling the video overlay
- Part of the display drivers locks/whatever as the incoming data is rubbish

It takes some good X.org developer and with a lot of debug data (drivers that log what is happening + syncs the log before taking the actual actions) to pinpoint the problem. Or something similar. These bugs are really common, the x video overlay stuff is basically plain USSR and have not received the love they would have deserved.

It might be a bug for mplayer/mythtv. It is for sure *always* a bug for xorg if any video can mess up xorg/drivers.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for mplayer (Ubuntu) because there has been no activity for 60 days.]

Revision history for this message
Sergio Costas (rastersoft-gmail) wrote :

I have the same problem with the NVIDIA privative driver, but with NV driver works fine.

Revision history for this message
Bryce Harrington (bryce) wrote :

We need to get more debug information on this to make further progress. Could someone experiencing this bug please do the following:

1. Get an strace by running a command like `strace -o mplayer-strace.log mplayer -vo xv bug.avi > mplayer-out.log` and attach that file.

2. Attach your Xorg.0.log (or Xorg.0.log.old), esp. if it shows a backtrace after the crash.

Changed in xorg:
status: New → Incomplete
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

No reply from anyone, closing the bug. If you can reproduce this on Hardy, feel free to reopen and provide more data.

Changed in xorg:
status: Incomplete → Invalid
Revision history for this message
damir (damir-srpcic) wrote :

Happens with some videos on Hardy with 'inter' driver. It sometimes crashes when playing the video, sometimes after I close the video.
The files attached are after crash that happened about 5 minutes after I played and closed the bug.avi. With xv output driver.

Note: In 7.10 it worked ok.

Revision history for this message
damir (damir-srpcic) wrote :

Also attaching xorg log file.

Revision history for this message
Cristian (cristian-mezzetti) wrote :

Happens also with videos on Hardy and the 'via' driver using xv acceleration.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.