Compiz crashed on activating external monitor via nvidia-settings

Bug #869293 reported by Steve Magoun on 2011-10-06
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
Medium
Unassigned

Bug Description

Compiz crashed when I activated an external monitor using nvidia-settings. Apport did not notice the crash and there was nothing related in /var/crash. Neither dmesg nor syslog have any indication of a segfault. However there are some nasty-looking messages in syslog and .xsession-errors.

syslog:
Oct 6 11:23:24 steve-laptop gnome-session[1717]: WARNING: Application 'compiz.desktop' killed by signal
Oct 6 11:23:24 steve-laptop gnome-session[1717]: WARNING: App 'compiz.desktop' respawning too quickly
Oct 6 11:23:24 steve-laptop gnome-session[1717]: CRITICAL: We failed, but the fail whale is dead. Sorry....

.xsession-errors:
compiz (core) - Warn: failed to receive ConfigureNotify event from request at 303489 (now: 661694)

compiz (core) - Warn: unhandled ConfigureNotify on 0x12000a4!
compiz (core) - Warn: this should never happen. you shouldprobably file a bug about this.
compiz (core) - Warn: failed to receive ConfigureNotify event from request at 287368 (now: 588002)

The crash happened at about 11:23AM (see related timestamps in the logs).

To reproduce:
1) Boot 11.10
2) Work for a couple hours (optional?)
3) Plug in an external monitor
4) In nvidia-settings, select the second monitor and configure it for 'Twinview'

Actual results:
Compiz crashes and then comes back to life; there is lots of flickering/flashing and artifacts onscreen for about 10sec, then compiz comes back to life and the external monitor is enabled correct.y

Expected results:
The external monitor is turned on and enabled without any flashing, crashing, or artifacts.

nvidia driver version is 280.13-0ubuntu5; graphics card is a GeForce 8600M GT in a Macbook Pro 3,1.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: compiz 1:0.9.6+bzr20110929-0ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-12.19-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
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_64 Kernel Module 280.13 Wed Jul 27 16:53:56 PDT 2011
 GCC version: gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
.tmp.unity.support.test.0:

ApportVersion: 1.23-0ubuntu2
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,compiztoolbox,imgjpeg,decor,snap,imgpng,place,dbus,session,mousepoll,regex,commands,vpswitch,wall,neg,move,gnomecompat,resize,imgsvg,resizeinfo,text,animation,workarounds,expo,ezoom,staticswitcher,fade,scale,unityshell,scaleaddon]
CompositorRunning: compiz
Date: Thu Oct 6 11:34:58 2011
DistUpgraded: Log time: 2011-09-02 09:45:42.465764
DistroCodename: oneiric
DistroVariant: ubuntu
DkmsStatus:
 nvidia-current, 280.13, 3.0.0-12-generic, x86_64: installed
 virtualbox, 4.1.2, 3.0.0-10-generic, x86_64: installed
 virtualbox, 4.1.2, 3.0.0-11-generic, x86_64: installed
 virtualbox, 4.1.2, 3.0.0-12-generic, x86_64: installed
GraphicsCard:
 nVidia Corporation G84 [GeForce 8600M GT] [10de:0407] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Apple Computer Inc. Device [106b:00a0]
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Beta amd64 (20100901.1)
JockeyStatus:
 xorg:nvidia_173 - NVIDIA accelerated graphics driver (Proprietary, Disabled, Not in use)
 xorg:nvidia_173_updates - NVIDIA accelerated graphics driver (post-release updates) (Proprietary, Disabled, Not in use)
 xorg:nvidia_current - NVIDIA accelerated graphics driver (Proprietary, Enabled, In use)
 xorg:nvidia_current_updates - NVIDIA accelerated graphics driver (post-release updates) (Proprietary, Disabled, Not in use)
MachineType: Apple Inc. MacBookPro3,1
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-12-generic root=UUID=4b3d81ed-fb5d-4946-97c0-ec537e1bfa3f ro quiet splash vt.handoff=7
SourcePackage: compiz
UpgradeStatus: Upgraded to oneiric on 2011-09-02 (34 days ago)
XorgConf:
 Section "Device"
  Identifier "Default Device"
  Option "NoLogo" "True"
 EndSection
dmi.bios.date: 03/05/08
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBP31.88Z.0070.B07.0803051658
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: Mac-F4238BC8
dmi.board.vendor: Apple Inc.
dmi.board.version: PVT
dmi.chassis.asset.tag: Asset Tag#
dmi.chassis.type: 2
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F4238BC8
dmi.modalias: dmi:bvnAppleInc.:bvrMBP31.88Z.0070.B07.0803051658:bd03/05/08:svnAppleInc.:pnMacBookPro3,1:pvr1.0:rvnAppleInc.:rnMac-F4238BC8:rvrPVT:cvnAppleInc.:ct2:cvrMac-F4238BC8:
dmi.product.name: MacBookPro3,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.
version.compiz: compiz 1:0.9.6+bzr20110929-0ubuntu3
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.26-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 7.11-0ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.11-0ubuntu3
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg: xserver-xorg 1:7.6+7ubuntu7
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.6.0-1ubuntu13
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20110811.g93fc084-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.15.901-1ubuntu2
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110411+8378443-1

Steve Magoun (smagoun) wrote :
Alex Launi (alexlauni) wrote :

Could you please follow the instructions on https://wiki.ubuntu.com/Unity/FilingBugs#Getting_a_stack_trace and attach unity.log to this bug report?

Changed in compiz (Ubuntu):
status: New → Incomplete
importance: Undecided → Medium
Steve Magoun (smagoun) wrote :

Using the instructions in the FilingBugs page, I'm unable to get unity to start. When I run 'unity --advanced-debug' from tty1, it crashes in the nvidia driver before I have a chance to switch back to tty7. See attached unity.log for the backtrace. Is this a separate issue that warrants a new bug, or am I misunderstanding the instructions in the FilingBugs page?

Changed in compiz (Ubuntu):
status: Incomplete → Confirmed
Steve Magoun (smagoun) wrote :
Steve Magoun (smagoun) wrote :

Filed bug 870269 about the unable-to-run-from-tty issue

Steve Magoun (smagoun) wrote :

From a tty I attached GDB to a running compiz process, set a breakpoint on _exit, then tried to reproduce the problem plugging in an external monitor. Attached is the gdb session w/ crash; hopefully this is what we're looking for.

Pieter (diepes) wrote :
Download full text (7.1 KiB)

Not 100% sure if it is the same problem, compiz seem to crash, i loose window decorations.
Fix with compiz --replace in terminal.
$ uname -a
Linux pieters-laptop 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
$ lspci | grep ATI
01:00.0 VGA compatible controller: ATI Technologies Inc Broadway XT [Mobility Radeon HD 5800 Series]
01:00.1 Audio device: ATI Technologies Inc Juniper HDMI Audio [Radeon HD 5700 Series]
Laptop EliteBook 8740w

Below is terminal output from compiz --replace until 2nd crash.

:~$ compiz --replace
Checking if settings need to be migrated ...no
Checking if internal files need to be migrated ...no
Backend : gconf
Integration : true
Profile : unity
Adding plugins
Skipping upgrade com.canonical.unity.unity.01.upgrade
Skipping upgrade com.canonical.unity.unity.02.upgrade
Initializing core options...done
Initializing bailer options...done
Initializing detection options...done
Initializing composite options...done
Initializing opengl options...done
Initializing decor options...done
Initializing vpswitch options...done
Initializing mousepoll options...done
Initializing animation options...done
Initializing move options...done
Initializing fade options...done
Initializing imgjpeg options...done
Initializing workarounds options...done
Initializing place options...done
Initializing gnomecompat options...done
Initializing session options...done
Initializing grid options...done
Initializing snap options...done
Initializing resize options...done
Initializing screenshot options...done
Initializing cube options...done
Initializing scale options...done
compiz (expo) - Warn: failed to bind image to texture
Initializing expo options...done
Initializing ezoom options...done
Initializing rotate options...done
Initializing unitymtgrabhandles options...done

(compiz:7240): GdkPixbuf-CRITICAL **: gdk_pixbuf_new: assertion `width > 0' failed

(compiz:7240): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(compiz:7240): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(compiz:7240): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(compiz:7240): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(compiz:7240): GdkPixbuf-CRITICAL **: gdk_pixbuf_fill: assertion `GDK_IS_PIXBUF (pixbuf)' failed
WARN 2011-10-24 21:52:05 unity.bghash BGHash.cpp:390 Passed in a bad pixbuf, defaulting colour

Screen geometry changed:
   0x0x1400x1050

Initializing unityshell options...done
DEBUG 2011-10-24 21:52:06 glib <unknown>:0 Setting to primary screen rect: x=0 y=0 w=1400 h=1050
Setting Update "command"
Setting Update "main_menu_key"
Setting Update "run_key"
Setting Update "skydome"
Setting Update "skydome_image"
Setting Update "skydome_animated"
Setting Update "active_opacity"
Setting Update "inactive_opacity"
Setting Update "speed"
Setting Update "rotate_flip_left_edge"
Setting Update "launcher_hide_mode"
Setting Update "panel_opacity"
WARN 2011-10-24 21:52:11 glib <unknown>:0 Failed to fetch view type at /org/ayatana/bamf/window82169944: Method "ViewType"...

Read more...

Steve Magoun (smagoun) wrote :

I can still reproduce this with the latest in oneiric-proposed as of November 1:

unity 4.24.0-0ubuntu2b1
compiz 1:0.9.6+bzr20110929-0ubuntu5
nvidia-current 280.13-0ubuntu6
linux 3.0.0-13-generic

Col Hathi (colhathi) wrote :

This is in now way a scientific statement but i noticed when there is a conflict between the wallpaper plugin and the system settings with regard to the wallpaper being used, the errors:

(compiz:7240): GdkPixbuf-CRITICAL **: gdk_pixbuf_fill: assertion `GDK_IS_PIXBUF (pixbuf)' failed
WARN 2011-10-24 21:52:05 unity.bghash BGHash.cpp:390 Passed in a bad pixbuf, defaulting colour

show up in .xsession-errors

If the same wallpaper is nominated in system settings and in the compiz wallpaper plugin, then those errors dissappear. At least that is the case for me using ATI graphics and fglrx

Steve Magoun (smagoun) wrote :

Reproduced this again this morning immediately after login. Current packages on my system are:

unity 4.24.0-0ubuntu2.1
compiz 1:0.9.6+bzr20110929-0ubuntu6
nvidia-current 280.13-0ubuntu6
nvidia-current-updates 285.05.09-0ubuntu0.1
linux-image-3.0.0-15-generic 3.0.0-15.24

To post a comment you must log in.