← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 748632] [NEW] Opening or resizing videos with vdpau enabled causes xorg freeze (nvidia-current)

 

Public bug reported:

Binary package hint: xorg

There are frequent system freezes in Ubuntu 10.10, mostly happening with vdpau, with both stable and beta drivers.
  The xorg version is 1:7.5+6ubuntu3.  I do not actually know if this is a problem in the graphics driver or in xorg, but the bug does not exist with the (almost) same drivers in 9.10 with the same hardware.  I am using a Geforce 9400M card.

The following series of events will typically produce errors in the
kernel log in 5-10 minutes:


1. Log into Ubuntu 10.10. In my case, this is in KDE 4.5.5.

2. Shut down all possible programs and open a console running "tail -f /var/log/kern.log" so you can see the error as it happens. Disable compositing to make things simpler.
3. Open a video in mplayer or smplayer with vdpau set as the video output.  It is not necessary to use a high definition video. I used an xvid to test. Make it full screen and pause it.
4. Open another video instance. Use the keyboard to rapidly switch between full screen and normal resolution. Sometimes, you might need to close the movie and re-open it, but typically within 5 minutes, xorg will lock up.  Video, mouse, keyboard, and sound will be frozen.  Sometimes there will be brief moments in which the keyboard or mouse will react before freezing again.


When xorg freezes, it is sometimes for only a minute but sometimes it locks up so hard that even Alt-SysReq REISUB cannot recover the system and you have no use but to cycle the power. You will rarely be able to change to a virtual console and kill mplayer. So when the lockup happens, use the keyboard and attempt to shut down the movie as soon as you can, because the longer you wait, the greater the chance of being unable to recover without a power cycle.


When xorg recovers, your console showing the kernel log will show that
one or more NVRM errors has just appeared:


NVRM: Xid (0000:02:00): 13, 000a 00000000 0000502d 0000060c 0000036c
00000040

NVRM: Xid (0000:02:00): 8, Channel 00000002

NVRM: os_schedule: Attempted to yield the CPU while in atomic or
interrupt context

NVRM: Xid (0000:02:00): 8, Channel 00000001

NVRM: Xid (0000:02:00): 13, 0007 00000000 0000502d 0000060c 0000036c
00000040

NVRM: Xid (0002:00): 13, 0005 00000000 0000502d 0000060c 000002a0
00000040

NVRM: Xid (0002:00): 13, 0001 00000000 00000000 00000000 00000000
00000001

NVRM: Xid (0002:00): 26, Ch 0000007f M 00000100 D 08ecd9e0 intr 00c00000


Along with the lockup, you may see graphics corruption.  There will often be frozen green areas in the foreground or background videos.  From this point on, the NVRM errors become easier to produce, and often opening the video you closed will lock up the system again.

In normal use of vdpau, one will only see this bug once every day or
two, forcing a power cycle or reboot.  It can be caused by opening
videos, switching to full screen, moving or resizing playing videos.  I
also saw it occur once when I changed KDE window decorations, which is
probably not related to mplayer.

Most of the bugs are related to special nvidia capabilities.  I am not
able to reproduce the crash if both videos are using xv video output.
At least one of the two videos in the test must be using vdpau.  The bug
may well be in the graphics drivers, but as I mentioned before, those
same drivers work flawlessly in karmic.  I cannot rule out xorg as the
culprit.

At least one of the events I saw was not related to movie playing so I
suspect that this would produce seemingly random crashes for users that
do not watch a lot of movies.  At the moment, I am attempting to get by
turning off GPU acceleration of video (vdpau) and window management
(desktop effects).  This is not acceptable as a long term solution, but
my current hope is that they will allow me to have over a day of uptime.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: xorg 1:7.5+6ubuntu3
ProcVersionSignature: Ubuntu 2.6.35-28.49-generic-pae 2.6.35.11
Uname: Linux 2.6.35-28-generic-pae i686
NonfreeKernelModules: nvidia wl
.proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86 Kernel Module  270.29  Wed Feb 23 16:16:53 PST 2011
 GCC version:  gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)
Architecture: i386
Date: Sat Apr  2 16:19:37 2011
DkmsStatus:
 bcmwl, 5.60.48.36+bdcom, 2.6.35-28-generic-pae, i686: installed 
 nvidia-current, 270.29, 2.6.35-28-generic-pae, i686: installed 
 vboxhost, 4.0.4, 2.6.35-28-generic-pae, i686: installed
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
MachineType: Apple Inc. Macmini3,1
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-28-generic-pae root=UUID=345cc220-2160-4611-8c3a-6bd3c000a2e1 ro
ProcEnviron:
 LANGUAGE=en_US
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: xorg
dmi.bios.date: 07/17/09
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MM31.88Z.00AD.B00.0907171535
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-F22C86C8
dmi.board.vendor: Apple Inc.
dmi.chassis.asset.tag: Asset Tag#
dmi.chassis.type: 16
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F22C86C8
dmi.modalias: dmi:bvnAppleInc.:bvrMM31.88Z.00AD.B00.0907171535:bd07/17/09:svnAppleInc.:pnMacmini3,1:pvr1.0:rvnAppleInc.:rnMac-F22C86C8:rvr:cvnAppleInc.:ct16:cvrMac-F22C86C8:
dmi.product.name: Macmini3,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.
glxinfo: Error: [Errno 2] No such file or directory
system:
 distro:             Ubuntu
 codename:           maverick
 architecture:       i686
 kernel:             2.6.35-28-generic-pae

** Affects: xorg (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 maverick

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg in Ubuntu.
https://bugs.launchpad.net/bugs/748632

Title:
  Opening or resizing videos with vdpau enabled causes xorg freeze
  (nvidia-current)



Follow ups

References