Compiz freezes when screen is disconnected

Bug #1327659 reported by kolya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
New
Undecided
Unassigned

Bug Description

I have an laptop with Intel HD4000 graphics running compiz (with mint mate).

When I disconnect external screen the main laptop screen blinks and starts displaying old stuff on left half and old stuff from disconnected screen on right half. And it freezes in this state although mouse is still moving - but I cannot click anything.

Do dmesg messages, but xsession-errors contains this:

failed to create drawable
compiz (core) - Warn: glXCreatePixmap failed
compiz (opengl) - Error: FBO is incomplete: GL::FRAMEBUFFER_INCOMPLETE_ATTACHMENT (0x8cd6)
compiz (opengl) - Error: FBO is incomplete: GL::FRAMEBUFFER_INCOMPLETE_ATTACHMENT (0x8cd6)
compiz (opengl) - Error: FBO is incomplete: GL::FRAMEBUFFER_INCOMPLETE_ATTACHMENT (0x8cd6)
compiz (opengl) - Error: FBO is incomplete: GL::FRAMEBUFFER_INCOMPLETE_ATTACHMENT (0x8cd6)
compiz (opengl) - Error: FBO is incomplete: GL::FRAMEBUFFER_INCOMPLETE_ATTACHMENT (0x8cd6)
compiz (opengl) - Error: FBO is incomplete: GL::FRAMEBUFFER_INCOMPLETE_ATTACHMENT (0x8cd6)
compiz (opengl) - Error: FBO is incomplete: GL::FRAMEBUFFER_INCOMPLETE_ATTACHMENT (0x8cd6)
compiz (opengl) - Error: FBO is incomplete: GL::FRAMEBUFFER_INCOMPLETE_ATTACHMENT (0x8cd6)
compiz (opengl) - Error: FBO is incomplete: GL::FRAMEBUFFER_INCOMPLETE_ATTACHMENT (0x8cd6)
compiz (opengl) - Error: FBO is incomplete: GL::FRAMEBUFFER_INCOMPLETE_ATTACHMENT (0x8cd6)
compiz (opengl) - Error: FBO is incomplete: GL::FRAMEBUFFER_INCOMPLETE_ATTACHMENT (0x8cd6)
compiz (opengl) - Error: FBO is incomplete: GL::FRAMEBUFFER_INCOMPLETE_ATTACHMENT (0x8cd6)

This happens with both Trusty stock x server and oibaf xserver, but this doesn't happen if I disable compiz. Also, problem exists when I connect screen, i.e. any change in screen config triggers this issue.

Please let me know if I can provide any useful information to help fixing this issue.

Thanks!

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: compiz 1:0.9.11+14.04.20140423-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-27.50-generic 3.13.11
Uname: Linux 3.13.0-27-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CurrentDesktop: mate
Date: Sat Jun 7 20:10:47 2014
InstallationDate: Installed on 2014-06-01 (6 days ago)
InstallationMedia: Linux Mint 17 "Qiana" - Release amd64 20140530
PackageArchitecture: all
SourcePackage: compiz
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
kolya (mar-kolya) wrote :
tags: added: compiz-0.9
Revision history for this message
kolya (mar-kolya) wrote :

I did some 'gdbing' and located cause of the issue.

The problem (only?) happens when texture compression is enabled.

So, if texture compression is enabled GLFramebufferObject::allocate allocates texture that is compressed and apparently mesa doesn't like compressed textures for frame buffer.

Oddly enough enabled compression doesn't cause the problem when texture is allocated first time at startup, but only causes problem when it is reallocated when resolution changes. Probably because custom config is loaded at a later stage somehow - but this is not exactly apparent why config is loaded at a later stage. Judging by the log output config should be loaded by the time opengl plugin is loaded.

I guess ideally enabling texture compression should not cause such issues.

Please let me know if I can provide any other information.

Thanks!

Revision history for this message
Denis Franco (pumpkin-link) wrote :

reproduced the bug on intel i3-330M HD Graphics, with both default and proprietary drivers, solved by disabling openGL texture compression via compizconfig

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.