compiz fails with intel_do_flush_locked failed: Invalid argument

Bug #1355196 reported by Scott Moser
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
High
Unassigned
xserver-xorg-video-intel (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Recent upgrade and reboot/re-login left me with a generally unusable compiz/unity.
On login, the desktop icons move back and forth several times, I believe this correlates with ~/.xesssion-errors 'unity main process ended' messages like:
upstart: unity7 main process (7477) terminated with status 1
upstart: unity7 main process ended, respawning
upstart: unity7 main process (7910) terminated with status 1
upstart: unity7 main process ended, respawning
upstart: unity7 main process (7939) terminated with status 1

Further investigation showed that compiz was failing to start. Attempting to start it by hand shows:
  intel_do_flush_locked failed: Invalid argument

Those same messages appear in ~/.cache/upstart/unity7.log.

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: unity 7.3.0+14.10.20140731.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-6.11-generic 3.16.0-rc7
Uname: Linux 3.16.0-6-generic x86_64
ApportVersion: 2.14.5-0ubuntu4
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,compiztoolbox,decor,snap,commands,mousepoll,grid,move,place,imgpng,session,vpswitch,resize,regex,gnomecompat,unitymtgrabhandles,wall,resizeinfo,animation,workarounds,fade,scale,expo,ezoom,unityshell]
CurrentDesktop: Unity
Date: Mon Aug 11 09:53:07 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2011-10-19 (1027 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: unity
UpgradeStatus: Upgraded to utopic on 2013-05-20 (448 days ago)
---
.tmp.unity.support.test.0:

ApportVersion: 2.14.6-0ubuntu1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: smoser 4190 F.... pulseaudio
CompizPlugins: [core,bailer,detection,composite,opengl,compiztoolbox,decor,snap,commands,mousepoll,grid,move,place,imgpng,session,vpswitch,resize,regex,gnomecompat,unitymtgrabhandles,wall,resizeinfo,animation,workarounds,fade,scale,expo,ezoom,unityshell]
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
CurrentDesktop: Unity
DistUpgraded: 2013-05-20 08:14:41,880 DEBUG openCache()
DistroCodename: utopic
DistroRelease: Ubuntu 14.10
DistroVariant: ubuntu
EcryptfsInUse: Yes
ExtraDebuggingInterest: Yes, including running git bisection searches
GraphicsCard:
 Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a42] (rev 07) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device [17aa:20e4]
   Subsystem: Lenovo Device [17aa:20e4]
InstallationDate: Installed on 2011-10-19 (1034 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MachineType: LENOVO 7417CTO
Package: xserver-xorg-video-intel 2:2.99.914-1~exp1ubuntu1
PackageArchitecture: amd64
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.16.0-6-generic root=UUID=f9832678-e9fb-41c5-8edb-5edd5200ed0a ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.16.0-6.11-generic 3.16.0-rc7
RelatedPackageVersions:
 linux-restricted-modules-3.16.0-6-generic N/A
 linux-backports-modules-3.16.0-6-generic N/A
 linux-firmware 1.132
Tags: utopic utopic ubuntu regression reproducible compiz-0.9
Uname: Linux 3.16.0-6-generic x86_64
UpgradeStatus: Upgraded to utopic on 2013-05-20 (456 days ago)
UserGroups: adm admin cdrom dialout fuse kvm libvirtd lpadmin plugdev sambashare sbuild
_MarkForUpload: True
dmi.bios.date: 10/17/2012
dmi.bios.vendor: LENOVO
dmi.bios.version: 7UET94WW (3.24 )
dmi.board.name: 7417CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr7UET94WW(3.24):bd10/17/2012:svnLENOVO:pn7417CTO:pvrThinkPadT400:rvnLENOVO:rn7417CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 7417CTO
dmi.product.version: ThinkPad T400
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.12+14.10.20140812-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.56-1
version.libgl1-mesa-dri: libgl1-mesa-dri 10.2.5-1ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 10.2.5-1ubuntu2
version.xserver-xorg-core: xserver-xorg-core 2:1.15.1-0ubuntu9
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.9.0-1ubuntu1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.4.0-2ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.914-1~exp1ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.10-1ubuntu2
xserver.bootTime: Fri Aug 15 14:29:34 2014
xserver.configfile: default
xserver.errors:
 intel: Failed to load module "dri3" (module does not exist, 0)
 intel: Failed to load module "present" (module does not exist, 0)
xserver.logfile: /var/log/Xorg.0.log
xserver.outputs:
 product id 16435
 vendor LEN
xserver.version: 2:1.15.1-0ubuntu9

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

For what its worth, this is an older thinkpad (T400). It has older intel graphics chipset. I'm attaching xorg.0.log for more information.

Revision history for this message
Scott Moser (smoser) wrote :

This reproduces in the guest login also.

Changed in unity (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Christopher Townsend (townsend) wrote :

Do you get a crash file when this Unity crash occurs? If so, could you get that to us? Also, could you paste the output of /usr/lib/nux/unity_support_test -p?

We're not really seeing any other reports like this, so not sure what's going on....

Changed in unity (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Scott Moser (smoser) wrote :

$ /usr/lib/nux/unity_support_test -p
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset
OpenGL version string: 2.1 Mesa 10.2.5

Not software rendered: yes
Not blacklisted: yes
GLX fbconfig: yes
GLX texture from pixmap: yes
GL npot or rect textures: yes
GL vertex program: yes
GL fragment program: yes
GL vertex buffer object: yes
GL framebuffer object: yes
GL version is 1.4+: yes

Unity 3D supported: yes

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :
Changed in unity (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Christopher Townsend (townsend) wrote :

Based on the info in the Guest user's ~/.cache/upstart/unity7.log file, it looks to be some issue in the Intel driver in the kernel:

intel_do_flush_locked failed: Invalid argument

When this occurs, Compiz starts over and over again.

Revision history for this message
Christopher Townsend (townsend) wrote :

I don't think this is a Unity bug at this time, but I'll leave it in the Triaged state just in case. Adding xserver-xorg-video-intel since this is where I think the problem is.

Changed in unity (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Scott Moser (smoser) wrote :

Chris seems to have correctly identified the issue.
I tried reverting the xserver-xorg-video-intel to previous versions, but it had no affect.

I rebooted into an older kernel and i can still use compiz/unity.

 3.16.0-6-generic : works
 3.16.0-7-generic : fails
 3.16.0-8-generic: fails

summary: - unity crashes on login, compiz cpu and memory intensive
+ compiz fails with intel_do_flush_locked failed: Invalid argument
no longer affects: unity (Ubuntu)
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1355196

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Scott Moser (smoser)
description: updated
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Scott Moser (smoser) wrote :

Marking this as High. It means that any user with a previously supported graphics card can now not use unity.
It can't be worked around, and is demonstrated as a regression between 3.16.0-6 and 3.16.0-7.

Changed in linux (Ubuntu):
importance: Undecided → High
Revision history for this message
Scott Moser (smoser) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected compiz-0.9 regression reproducible ubuntu
description: updated
Revision history for this message
Scott Moser (smoser) wrote : BootDmesg.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : BootLog.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : CRDA.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : Dependencies.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : DkmsStatus.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : DpkgLog.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : GconfCompiz.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : IwConfig.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : LightdmDisplayLog.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : LightdmGreeterLog.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : LightdmGreeterLogOld.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : LightdmLog.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : Lspci.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : Lsusb.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : MonitorsUser.xml.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : ProcEnviron.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : ProcModules.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : PulseList.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : RfKill.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : UdevDb.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : UdevLog.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : UnitySupportTest.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : WifiSyslog.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : XorgLog.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : XorgLogOld.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : Xrandr.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : xdpyinfo.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : xserver.devices.txt

apport information

Revision history for this message
Tim Gardner (timg-tpi) wrote :

Scott - the major difference between -6 and -7 is the rebase from 3.16-rc7 to 3.16. Please try installing http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16-rc7-utopic/ as well as http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16-utopic/ in order to confirm it is isn't an Ubuntu specific bug. Results should also determine the bisect range.

Revision history for this message
Scott Moser (smoser) wrote :

verified broken in 3.16.0-12-generic.

Revision history for this message
Scott Moser (smoser) wrote :

Tim,
  I've verified broken in both 3.16.0-031600rc7-generic and 3.16.0-031600-generic

Additionally, I noticed that 'dmesg' on both of those showed:

  [ 1.924049] [drm:i915_gem_init] *ERROR* Failed to initialize GPU, declaring it wedged

I do not see that in my functional 3.16.0-6-generic . Granted, that is based on my very non-scientific 1 boot sample.

Revision history for this message
Robert Hooker (sarvatt) wrote :
Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Invalid
Revision history for this message
Robert Hooker (sarvatt) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 3.16.0-13.19

---------------
linux (3.16.0-13.19) utopic; urgency=low

  [ Tim Gardner ]

  * Release Tracking Bug
    - LP: #1365611
  * [Config] CONFIG_HAVE_KVM_IRQFD=y
    - LP: #1362514

  [ Paolo Pisati ]

  * [Config] armhf: SERIAL_SAMSUNG_CONSOLE=y
  * [Config] armhf: USB_[E|O]HCI_EXYNOS=y && SAMSUNG_USBPHY=y

  [ Upstream Kernel Changes ]

  * KVM: Don't keep reference to irq routing table in irqfd struct
    - LP: #1362514
  * KVM: irqchip: Provide and use accessors for irq routing table
    - LP: #1362514
  * KVM: Move all accesses to kvm::irq_routing into irqchip.c
    - LP: #1362514
  * KVM: Move irq notifier implementation into eventfd.c
    - LP: #1362514
  * KVM: prepare for KVM_(S|G)ET_MP_STATE on other architectures
    - LP: #1362514
  * KVM: PPC: Book3S: Controls for in-kernel sPAPR hypercall handling
    - LP: #1362514
  * KVM: Rename and add argument to check_extension
    - LP: #1362514
  * KVM: Allow KVM_CHECK_EXTENSION on the vm fd
    - LP: #1362514
  * KVM: Give IRQFD its own separate enabling Kconfig option
    - LP: #1362514
  * KVM: PPC: Enable IRQFD support for the XICS interrupt controller
    - LP: #1362514
  * KVM: PPC: Book3s PR: Disable AIL mode with OPAL
    - LP: #1362514
  * KVM: PPC: Book3s HV: Fix tlbie compile error
    - LP: #1362514
  * KVM: PPC: Book3S PR: Handle hyp doorbell exits
    - LP: #1362514
  * KVM: PPC: Book3S HV: Fix ABIv2 indirect branch issue
    - LP: #1362514
  * KVM: PPC: Book3S PR: Fix sparse endian checks
    - LP: #1362514
  * PPC: Add asm helpers for BE 32bit load/store
    - LP: #1362514
  * KVM: PPC: Book3S HV: Make HTAB code LE host aware
    - LP: #1362514
  * KVM: PPC: Book3S HV: Access guest VPA in BE
    - LP: #1362514
  * KVM: PPC: Book3S HV: Access host lppaca and shadow slb in BE
    - LP: #1362514
  * KVM: PPC: Book3S HV: Access XICS in BE
    - LP: #1362514
  * KVM: PPC: Book3S HV: Fix ABIv2 on LE
    - LP: #1362514
  * KVM: PPC: Book3S HV: Enable for little endian hosts
    - LP: #1362514
  * staging/lustre: disable virtual block device for 64K pages
  * drm/i915: read HEAD register back in init_ring_common() to enforce
    ordering
    - LP: #1355196
 -- Tim Gardner <email address hidden> Tue, 02 Sep 2014 19:07:50 -0400

Changed in linux (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Scott Moser (smoser) wrote :

Hooray.
 Verified fixed.
booted into 3.16.0-14-generic and all seems well.

Thank you.

for future reference, dmesg shows me now:
$ dmesg | grep "\[drm"
[ 1.455768] [drm] Initialized drm 1.1.0 20060810
[ 1.677013] [drm] Memory usable by graphics device = 2048M
[ 1.677015] [drm] Replacing VGA console driver
[ 1.700102] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.700103] [drm] Driver supports precise vblank timestamp query.
[ 1.884038] [drm] GMBUS [i915 gmbus dpb] timed out, falling back to bit banging on pin 5
[ 1.989868] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0

To post a comment you must log in.