Compiz hangs every time when undocking or changing display configuration

Bug #979251 reported by Chris Coulson
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Every time I undock my laptop or use the display settings panel to turn off my external screen, I end up with a blank laptop panel with just the mouse cursor visible. Sometimes I also cannot switch to a VT although I can connect to the machine via SSH and do "sudo restart lightdm" to tear down X and restart my session. Most of the time this happens though, I just end up killing the power and restarting, as this is easier than firing up another machine :)

WORKAROUND: I can undock successfully if I log out of my session first (so just the lightdm greeter is displayed), which is an annoying inconvenience.

Attaching gdb to compiz shows that it hangs, but restarting compiz is not enough to recover it. I need to restart X too

#0 0x00007fe0bc988b03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1 0x00007fe0ba894862 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2 0x00007fe0ba895d5f in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3 0x00007fe0ba895f7b in xcb_wait_for_reply () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#4 0x00007fe0bc38f09d in _XReply (dpy=0x1c886b0, rep=0x7fffd08d4d30, extra=0, discard=1) at ../../src/xcb_io.c:601
#5 0x00007fe0bc38aaed in XSync (dpy=0x1c886b0, discard=0) at ../../src/Sync.c:44
#6 0x00007fe0b0e574f7 in DRI2DestroyDrawable (dpy=0x1c886b0, drawable=13465068) at dri2.c:375
#7 0x00007fe0b0e56573 in dri2DestroyDrawable (base=<optimized out>) at dri2_glx.c:330
#8 0x00007fe0b0e50462 in DestroyDRIDrawable (dpy=<optimized out>, drawable=13465069, destroy_xdrawable=0) at glx_pbuffer.c:230
#9 0x00007fe0b109f2cf in TfpTexture::~TfpTexture() () from /usr/lib/compiz/libopengl.so
#10 0x00007fe0b109f339 in TfpTexture::~TfpTexture() () from /usr/lib/compiz/libopengl.so
#11 0x00007fe0b109e875 in GLTexture::List::clear() () from /usr/lib/compiz/libopengl.so
#12 0x00007fe0b109afc4 in GLScreen::updateBackground() () from /usr/lib/compiz/libopengl.so
#13 0x00007fe0bd1db8f3 in CompScreen::handleEvent (this=0x1c7f920, event=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1039
#14 0x00007fe0ae65a050 in DecorScreen::handleEvent(_XEvent*) () from /usr/lib/compiz/libdecor.so
#15 0x00007fe0bd1db8f3 in CompScreen::handleEvent (this=0x1c7f920, event=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1039
#16 0x00007fe0bd1db8f3 in CompScreen::handleEvent (this=0x1c7f920, event=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1039
#17 0x00007fe0bd1db8f3 in CompScreen::handleEvent (this=0x1c7f920, event=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1039
#18 0x00007fe0adbd76c9 in ResizeScreen::handleEvent(_XEvent*) () from /usr/lib/compiz/libresize.so
#19 0x00007fe0bd1db8f3 in CompScreen::handleEvent (this=0x1c7f920, event=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1039
#20 0x00007fe0ad9b0ea5 in PlaceScreen::handleEvent(_XEvent*) () from /usr/lib/compiz/libplace.so
#21 0x00007fe0bd1db8f3 in CompScreen::handleEvent (this=0x1c7f920, event=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1039
#22 0x00007fe0ad78d79c in MoveScreen::handleEvent(_XEvent*) () from /usr/lib/compiz/libmove.so
#23 0x00007fe0bd1db8f3 in CompScreen::handleEvent (this=0x1c7f920, event=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1039
#24 0x00007fe0bd1db8f3 in CompScreen::handleEvent (this=0x1c7f920, event=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1039
#25 0x00007fe0ac0d457f in RegexScreen::handleEvent(_XEvent*) () from /usr/lib/compiz/libregex.so
#26 0x00007fe0bd1db8f3 in CompScreen::handleEvent (this=0x1c7f920, event=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1039
#27 0x00007fe0abcb8f8c in SessionScreen::handleEvent(_XEvent*) () from /usr/lib/compiz/libsession.so
#28 0x00007fe0bd1db8f3 in CompScreen::handleEvent (this=0x1c7f920, event=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1039
#29 0x00007fe0ab380dd2 in FadeScreen::handleEvent(_XEvent*) () from /usr/lib/compiz/libfade.so
#30 0x00007fe0bd1db8f3 in CompScreen::handleEvent (this=0x1c7f920, event=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1039
#31 0x00007fe0ab15daa4 in UnityMTGrabHandlesScreen::handleEvent(_XEvent*) () from /usr/lib/compiz/libunitymtgrabhandles.so
#32 0x00007fe0bd1db8f3 in CompScreen::handleEvent (this=0x1c7f920, event=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1039
#33 0x00007fe0aa1226dd in WorkaroundsScreen::handleEvent(_XEvent*) () from /usr/lib/compiz/libworkarounds.so
#34 0x00007fe0bd1db8f3 in CompScreen::handleEvent (this=0x1c7f920, event=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1039
#35 0x00007fe0a9ef7587 in PrivateScaleScreen::handleEvent(_XEvent*) () from /usr/lib/compiz/libscale.so
#36 0x00007fe0bd1db8f3 in CompScreen::handleEvent (this=0x1c7f920, event=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1039
#37 0x00007fe0a94e8bfb in unity::UnityScreen::handleEvent(_XEvent*) () from /usr/lib/compiz/libunityshell.so
#38 0x00007fe0bd1db8f3 in CompScreen::handleEvent (this=0x1c7f920, event=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1039
#39 0x00007fe0bd1db92b in CompScreenImpl::alwaysHandleEvent (this=0x1c7f920, event=0xcd3d7d0) at /build/buildd/compiz-0.9.7.6/src/event.cpp:1055
#40 0x00007fe0bd1b450b in PrivateScreen::processEvents (this=0x1c7f9d0) at /build/buildd/compiz-0.9.7.6/src/screen.cpp:869
#41 0x00007fe0bd1e7d07 in CompEventSource::callback (this=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/eventsource.cpp:63
#42 0x00007fe0bb6ef8af in Glib::Source::dispatch_vfunc(_GSource*, int (*)(void*), void*) () from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
#43 0x00007fe0bb1f7c9a in g_main_dispatch (context=0x1c87000) at /build/buildd/glib2.0-2.32.0/./glib/gmain.c:2515
#44 g_main_context_dispatch (context=0x1c87000) at /build/buildd/glib2.0-2.32.0/./glib/gmain.c:3052
#45 0x00007fe0bb1f8060 in g_main_context_iterate (dispatch=1, block=<optimized out>, context=0x1c87000, self=<optimized out>) at /build/buildd/glib2.0-2.32.0/./glib/gmain.c:3123
#46 g_main_context_iterate (context=0x1c87000, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.0/./glib/gmain.c:3060
#47 0x00007fe0bb1f8124 in g_main_context_iteration (context=0x1c87000, may_block=0) at /build/buildd/glib2.0-2.32.0/./glib/gmain.c:3184
#48 0x00007fe0b3598cd9 in ?? () from /usr/lib/compizconfig/backends/libgconf.so
#49 0x00007fe0b83ac59e in CcpScreen::timeout() () from /usr/lib/compiz/libccp.so
#50 0x00007fe0bd1efa0b in operator() (this=<optimized out>) at /usr/include/boost/function/function_template.hpp:1013
#51 CompTimer::triggerCallback (this=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/timer/src/timer.cpp:227
#52 0x00007fe0bd1efb0f in CompTimeoutSource::callback (this=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/timer/src/timer.cpp:150
#53 0x00007fe0bd1eefbd in operator() (this=<optimized out>) at /usr/include/sigc++-2.0/sigc++/functors/slot.h:440
#54 dispatch (slot=<optimized out>, this=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/timer/src/timer.cpp:133
#55 CompTimeoutSource::dispatch (this=<optimized out>, slot=<optimized out>) at /build/buildd/compiz-0.9.7.6/src/timer/src/timer.cpp:131
#56 0x00007fe0bb6ef8af in Glib::Source::dispatch_vfunc(_GSource*, int (*)(void*), void*) () from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
#57 0x00007fe0bb1f7c9a in g_main_dispatch (context=0x1c87000) at /build/buildd/glib2.0-2.32.0/./glib/gmain.c:2515
#58 g_main_context_dispatch (context=0x1c87000) at /build/buildd/glib2.0-2.32.0/./glib/gmain.c:3052
#59 0x00007fe0bb1f8060 in g_main_context_iterate (dispatch=1, block=<optimized out>, context=0x1c87000, self=<optimized out>) at /build/buildd/glib2.0-2.32.0/./glib/gmain.c:3123
#60 g_main_context_iterate (context=0x1c87000, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.0/./glib/gmain.c:3060
#61 0x00007fe0bb1f845a in g_main_loop_run (loop=0x1c85bb0) at /build/buildd/glib2.0-2.32.0/./glib/gmain.c:3317
#62 0x00000000004029ae in main (argc=<optimized out>, argv=0x7fffd08d5d68) at /build/buildd/compiz-0.9.7.6/src/main.cpp:242

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: compiz 1:0.9.7.6-0ubuntu1~ppa1 [origin: LP-PPA-unity-team]
ProcVersionSignature: Ubuntu 3.2.0-22.35-generic 3.2.14
Uname: Linux 3.2.0-22-generic x86_64
.tmp.unity.scope.cities: Error: [Errno 21] Is a directory: '/tmp/unity-scope-cities'
.tmp.unity.support.test.0:

ApportVersion: 2.0-0ubuntu4
Architecture: amd64
CompizPlugins: [core,composite,opengl,compiztoolbox,decor,vpswitch,snap,mousepoll,resize,place,move,wall,grid,regex,imgpng,session,gnomecompat,animation,fade,unitymtgrabhandles,workarounds,scale,expo,ezoom,unityshell]
CompositorRunning: compiz
Date: Wed Apr 11 19:57:09 2012
DistUpgraded: 2011-11-16 17:40:15,476 DEBUG enabling apt cron job
DistroCodename: precise
DistroVariant: ubuntu
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110901)
MachineType: Dell Inc. Latitude E6410
PackageArchitecture: all
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
PlymouthDebug: Error: [Errno 13] Permission denied: '/var/log/plymouth-debug.log'
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-22-generic root=UUID=b2e419c9-361b-45c5-8964-3ee8ca387122 ro quiet splash vt.handoff=7
SourcePackage: compiz
UpgradeStatus: Upgraded to precise on 2011-11-16 (147 days ago)
dmi.bios.date: 02/15/2011
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A07
dmi.board.name: 04373Y
dmi.board.vendor: Dell Inc.
dmi.board.version: A03
dmi.chassis.type: 9
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA07:bd02/15/2011:svnDellInc.:pnLatitudeE6410:pvr0001:rvnDellInc.:rn04373Y:rvrA03:cvnDellInc.:ct9:cvr:
dmi.product.name: Latitude E6410
dmi.product.version: 0001
dmi.sys.vendor: Dell Inc.
version.compiz: compiz 1:0.9.7.6-0ubuntu1~ppa1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.32-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 8.0.2-0ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 8.0.2-0ubuntu3
version.xserver-xorg-core: xserver-xorg-core 2:1.11.4-0ubuntu10
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.0-0ubuntu1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20111219.aacbd629-0ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.17.0-1ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20111201+b5534a1-1build2

Revision history for this message
Chris Coulson (chrisccoulson) wrote :
Revision history for this message
Robert Hooker (sarvatt) wrote :
Download full text (6.3 KiB)

There is a GPU hang happening here on resume

[55317.141241] PM: resume of drv: dev:ep_85 complete after 558.749 msecs
[55317.142027] firewire_core: rediscovered device fw0
[55318.870178] ------------[ cut here ]------------
[55318.870224] WARNING: at /build/buildd/linux-3.2.0/drivers/gpu/drm/i915/intel_dp.c:996 ironlake_edp_panel_vdd_on+0x197/0x1a0 [i915]()
[55318.870228] Hardware name: Latitude E6410
[55318.870230] eDP VDD already requested on
[55318.870233] Modules linked in: snd_usb_audio usbhid snd_usbmidi_lib hidp hid ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_CHECKSUM iptable_mangle xt_tcpudp iptable_filter ip_tables x_tables bridge stp kvm_intel kvm bnep rfcomm binfmt_misc snd_hda_codec_hdmi snd_hda_codec_idt joydev arc4 ppdev dell_wmi sparse_keymap dell_laptop dcdbas snd_hda_intel snd_hda_codec snd_hwdep snd_pcm cdc_ether cdc_wdm usbnet cdc_acm snd_seq_midi snd_rawmidi pcmcia uvcvideo videodev v4l2_compat_ioctl32 snd_seq_midi_event intel_ips snd_seq psmouse btusb serio_raw bluetooth snd_timer snd_seq_device iwlwifi parport_pc wmi mac_hid snd mac80211 i915 cfg80211 yenta_socket pcmcia_rsrc soundcore pcmcia_core snd_page_alloc drm_kms_helper drm i2c_algo_bit video lp parport firewire_ohci sdhci_pci sdhci firewire_core crc_itu_t e1000e
[55318.870305] Pid: 20673, comm: kworker/2:0 Not tainted 3.2.0-22-generic #35-Ubuntu
[55318.870308] Call Trace:
[55318.870320] [<ffffffff8106712f>] warn_slowpath_common+0x7f/0xc0
[55318.870325] [<ffffffff81067226>] warn_slowpath_fmt+0x46/0x50
[55318.870351] [<ffffffffa016b107>] ironlake_edp_panel_vdd_on+0x197/0x1a0 [i915]
[55318.870374] [<ffffffffa016babf>] intel_dp_detect+0x1af/0x210 [i915]
[55318.870385] [<ffffffffa00dac6d>] output_poll_execute+0xbd/0x1a0 [drm_kms_helper]
[55318.870396] [<ffffffffa00dabb0>] ? drm_helper_mode_fill_fb_struct+0x30/0x30 [drm_kms_helper]
[55318.870402] [<ffffffff81084e1a>] process_one_work+0x11a/0x480
[55318.870408] [<ffffffff81085bc4>] worker_thread+0x164/0x370
[55318.870413] [<ffffffff81085a60>] ? manage_workers.isra.29+0x130/0x130
[55318.870418] [<ffffffff8108a41c>] kthread+0x8c/0xa0
[55318.870425] [<ffffffff81666bf4>] kernel_thread_helper+0x4/0x10
[55318.870430] [<ffffffff8108a390>] ? flush_kthread_worker+0xa0/0xa0
[55318.870435] [<ffffffff81666bf0>] ? gs_change+0x13/0x13
[55318.870438] ---[ end trace e2c89ae023d19f91 ]---
[55318.938360] ------------[ cut here ]------------
[55318.938386] WARNING: at /build/buildd/linux-3.2.0/drivers/gpu/drm/i915/intel_dp.c:1061 ironlake_edp_panel_vdd_off+0xbf/0xd0 [i915]()
[55318.938390] Hardware name: Latitude E6410
[55318.938391] eDP VDD not forced on
[55318.938393] Modules linked in: snd_usb_audio usbhid snd_usbmidi_lib hidp hid ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_CHECKSUM iptable_mangle xt_tcpudp iptable_filter ip_tables x_tables bridge stp kvm_intel kvm bnep rfcomm binfmt_misc snd_hda_codec_hdmi snd_hda_codec_idt joydev arc4 ppdev dell_wmi sparse_keymap dell_laptop dcdbas snd_hda_intel snd_hda_codec ...

Read more...

affects: compiz (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Brad Figg (brad-figg) wrote : Test with newer development kernel (3.2.0-23.36)

Thank you for taking the time to file a bug report on this issue.

However, given the number of bugs that the Kernel Team receives during any development cycle it is impossible for us to review them all. Therefore, we occasionally resort to using automated bots to request further testing. This is such a request.

We have noted that there is a newer version of the development kernel than the one you last tested when this issue was found. Please test again with the newer kernel and indicate in the bug if this issue still exists or not.

You can update to the latest development kernel by simply running the following commands in a terminal window:

    sudo apt-get update
    sudo apt-get dist-upgrade

If the bug still exists, change the bug status from Incomplete to Confirmed. If the bug no longer exists, change the bug status from Incomplete to Fix Released.

If you want this bot to quit automatically requesting kernel tests, add a tag named: bot-stop-nagging.

 Thank you for your help, we really do appreciate it.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: kernel-request-3.2.0-23.36
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.4kernel[1] (Not a kernel in the daily directory). Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag(Only that one tag, please leave the other tags). This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.4-rc2-precise/

Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: needs-upstream-testing
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

This still happens with the most recent kernel in precise

Changed in linux (Ubuntu):
importance: Medium → Undecided
status: Incomplete → Confirmed
tags: added: kernel-bug-exists-upstream
tags: removed: needs-upstream-testing
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

@Chris, does the issue also happen with the mainline v3.4-rc2 kernel?

Changed in linux (Ubuntu):
importance: Undecided → Medium
penalvch (penalvch)
tags: added: bot-stop-nagging
removed: kernel-request-3.2.0-23.36
penalvch (penalvch)
description: updated
Revision history for this message
penalvch (penalvch) wrote :

Chris Coulson, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.11-rc5

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

tags: added: bios-outdated-a15 needs-upstream-testing
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in linux (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.