X lockup caused by compiz/unity

Bug #755099 reported by Fabien Tassin
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Unity
Expired
Medium
Unassigned
nvidia-graphics-drivers (Ubuntu)
Expired
Undecided
Unassigned
unity (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: unity

I had mplayer running fine, I hit f to make it fullscreen, the whole desktop froze. No fullscreen mplayer, mplayer sound started to loop, no X events possible (mouse and keyboard).

I sshed in from another box, top showed Xorg at 100%.

X logs showed:

[161337.628] (WW) NVIDIA(0): WAIT (0, 6, 0x8000, 0x00007ff4, 0x00007ff4)
[161340.650] (WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0x00008718, 0x00008964)
[161342.204] [mi] EQ overflowing. The server is probably stuck in an infinite loop.
[161342.204]
Backtrace:
[161342.303] 0: /usr/bin/X (xorg_backtrace+0x3b) [0x80eaa9b]
[161342.303] 1: /usr/bin/X (mieqEnqueue+0x1ab) [0x80e9c7b]
[161342.303] 2: /usr/bin/X (xf86PostMotionEventM+0xbf) [0x80c4b2f]
[161342.303] 3: /usr/lib/xorg/modules/input/evdev_drv.so (0xf18000+0x368f) [0xf1b68f]
[161342.303] 4: /usr/lib/xorg/modules/input/evdev_drv.so (0xf18000+0x5099) [0xf1d099]
[161342.303] 5: /usr/lib/xorg/modules/input/evdev_drv.so (0xf18000+0x5d0d) [0xf1dd0d]
[161342.303] 6: /usr/bin/X (0x8048000+0x6b3bf) [0x80b33bf]
[161342.303] 7: /usr/bin/X (0x8048000+0x12dd16) [0x8175d16]
[161342.303] 8: (vdso) (__kernel_sigreturn+0x0) [0xac4400]
[161347.650] (WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0x00008718, 0x00008964)
[161350.660] (WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0x00008718, 0x00003274)
[161357.660] (WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0x00008718, 0x00003274)
[161360.661] (WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0x00008718, 0x00004b80)
[161367.661] (WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0x00008718, 0x00004b80)
[161370.662] (WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0x00008718, 0x00004ed0)

..showing "something" was stuck in a loop doing X calls.

My most likely candidates were mplayer (using vdpau), compiz and chromium (now that it uses the GPU).

I started by killing mplayer: no change. X was still frozen and taking all the CPU.
The display wasn't even refreshed, still showing mplayer while it was gone.

I next killed compiz, it re-spun and went to 100%, letting X at ~ 40%.
Desktop was still unusable. Closing the other apps (chromium, evolution, xterms,..) didn't help.
X even went back to 100%.

I re-killed compiz, and finally, everything went back to normal.

So it seems compiz is to blame.

It already happened to me twice this week. It never happened before so it may be caused by something in the recent uploads
(compiz, unity, ...)

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: unity 3.8.4-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-8.41-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
NonfreeKernelModules: nvidia
.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.30 Fri Feb 25 14:34:41 PST 2011
 GCC version: gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu1)
Architecture: i386
CompizPlugins: [core,bailer,detection,composite,opengl,compiztoolbox,decor,gnomecompat,commands,vpswitch,resize,snap,mousepoll,regex,move,place,imgpng,session,animation,wall,workarounds,expo,ezoom,staticswitcher,fade,scale,unityshell]
CompositorRunning: compiz
Date: Sat Apr 9 00:24:29 2011
DistUpgraded: Fresh install
DistroCodename: natty
DistroVariant: ubuntu
DkmsStatus:
 nvidia-current, 270.30, 2.6.38-6-generic, i686: installed
 nvidia-current, 270.30, 2.6.38-8-generic, i686: installed
 nvidia-current, 270.30, 2.6.38-7-generic, i686: installed
GraphicsCard:
 nVidia Corporation G94 [GeForce 9600 GT] [10de:0622] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: ASUSTeK Computer Inc. Device [1043:827c]
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100331)
InstallationMedia_: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100331)
InstallationMedia__: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100331)
InstallationMedia___: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100331)
JockeyStatus: xorg:nvidia_current - NVIDIA accelerated graphics driver (Proprietary, Enabled, In use)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/usr/bin/tcsh
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-generic root=UUID=03e1779a-d90a-4b59-8b03-2d1198aeb7cc ro quiet splash vt.handoff=7
ProcVersionSignature_: Ubuntu 2.6.38-8.41-generic 2.6.38.2
ProcVersionSignature__: Ubuntu 2.6.38-8.41-generic 2.6.38.2
ProcVersionSignature___: Ubuntu 2.6.38-8.41-generic 2.6.38.2
Renderer: Unknown
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/04/2006
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F2
dmi.board.name: 945PL-S3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF2:bd08/04/2006:svn:pn:pvr:rvnGigabyteTechnologyCo.,Ltd.:rn945PL-S3:rvrx.x:cvn:ct3:cvr:
version.compiz: compiz 1:0.9.4+bzr20110407-0ubuntu2
version.libdrm2: libdrm2 2.4.23-1ubuntu6
version.libgl1-mesa-dri: libgl1-mesa-dri 7.10.1-0ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.1-0ubuntu3
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu3
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.0-0ubuntu4
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-4ubuntu6
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110107+b795ca6e-0ubuntu6

Revision history for this message
Fabien Tassin (fta) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

could be bug #740126 or similar

Revision history for this message
Alex Launi (alexlauni) wrote :

When this happens again, could you please follow the instructions on https://wiki.ubuntu.com/Unity/FilingBugs#Getting%20a%20stack%20trace and attach unity.log to this bug report?

Changed in unity:
status: New → Incomplete
Changed in unity (Ubuntu):
status: New → Incomplete
Revision history for this message
Marco Cimmino (cimmo) wrote :

Might be dupe of #718858

Revision history for this message
Fabien Tassin (fta) wrote :

Still happening in Oneiric.

the backtrace is not very helpful:

#0 0x05fac1cc in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.270.41.06

I'm obviously using nvidia-current.

So my recipe is:
- nvidia-current
- unity 3D
- chromium with the default accelerated compositing (ie without --disable-accelerated-compositing)
- mplayer with vo=vdpau and a 720p
As soon as i go fullscreen in mplayer, boom. Compiz goes 100% and locks X.

Changed in unity:
status: Incomplete → New
Changed in unity (Ubuntu):
status: Incomplete → New
Revision history for this message
Alex Launi (alexlauni) wrote :

Does this happen when you just go into a standard gnome session with compiz but without Unity?

Changed in unity:
importance: Undecided → Medium
status: New → Incomplete
Changed in unity (Ubuntu):
status: New → Incomplete
Revision history for this message
Fabien Tassin (fta) wrote :

I don't know, i switched from Metacity to Compiz+Unity during the Natty cycle. I never used Compiz alone.
I'm now on Oneiric, and I have to disable the h/w acceleration in Chromium, otherwise, X locks up when i go fullscreen in mplayer.
100% reproducible here, on 2 different boxes, both with the nvidia-current driver.

it's not clear to me which package is the culprit, maybe a race condition somewhere while accessing the GPU.

Revision history for this message
Fabien Tassin (fta) wrote :

also happens with WebGL, which is also h/w accelerated.

Exact same problem, WebGL works fine, mplayer too until it goes fullscreen. Kaboom.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers (Ubuntu):
status: New → Confirmed
Revision history for this message
nfk (nicofonk) wrote :

I have a same issue.

- unity3d on ubuntu 11.10
- run mplayer with vdpau mode and video HD
- unity locks up and hard reboot is necessary

The problem is : incompatibility between composite mode and vdpau API.

Temporary patch is :
I disable nvidia composite mode (sudo nvidia-xconfig --no-composite) my video running with vdpau but unity lost 3d effects.

I report this problem in french on this thread : http://forum.ubuntu-fr.org/viewtopic.php?id=825381

Revision history for this message
Omer Akram (om26er) wrote :

Is that still an issue in Ubuntu 12.04 for anyone?

Revision history for this message
Dima Ryazanov (dima-gmail) wrote :

Something similar happened to me in Ubuntu 12.10. I accidentally pressed Super, getting the dashboard, then pressed it again to close it. After this, keyboard and mouse stopped working. All of the apps continued to run just fine - but I couldn't interact with them.

Xorg.log had this line at the end:
[ 17877.120] [mi] Increasing EQ size to 512 to prevent dropped events.

When I killed compiz, everything started working again.

Andrea Azzarone (azzar1)
Changed in nvidia-graphics-drivers (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for nvidia-graphics-drivers (Ubuntu) because there has been no activity for 60 days.]

Changed in nvidia-graphics-drivers (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Unity because there has been no activity for 60 days.]

Changed in unity:
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in unity (Ubuntu):
status: Incomplete → Expired
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.