Compiz crashes when hitting Alt-Tab - Mesa 7.9 implementation error: bad format in _mesa_format_to_type_and_comps

Bug #682327 reported by Jimmy Xu
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mesa
Fix Released
Medium
compiz (Ubuntu)
Fix Released
Undecided
Unassigned
mesa (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: compiz

Command-line output:

jimmy@home:~$ compiz --replace
Backend : gconf
Integration : true
Profile : default
Adding plugins
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 mousepoll options...done
Initializing snap options...done
Initializing ezoom options...done
Initializing animation options...done
Initializing move options...done
Initializing gnomecompat options...done
Initializing imgsvg options...done
Initializing imgjpeg options...done
Initializing neg options...done
Initializing wall options...done
Initializing place options...done
Initializing obs options...done
Initializing resize options...done
Initializing switcher options...done
Initializing fade options...done
Initializing resizeinfo options...done
Initializing session options...done
Initializing scale options...done
Setting Update "command_window_screenshot"
Setting Update "run_command_window_screenshot_key"
Setting Update "command_terminal"
Setting Update "run_command_terminal_key"
Setting Update "fullscreen_visual_bell"
### Hit Alt-Tab ###
Mesa 7.9 implementation error: bad format in _mesa_format_to_type_and_comps
Please report at bugzilla.freedesktop.org
compiz: main/mipmap.c:43: bytes_per_pixel: Assertion `b >= 0' failed.
Aborted

Has tried both "Application Switcher" and "Static Application Switcher", nearly the same output after hitting Alt-Tab. Also deleted ~/.config/compiz/ and ~/.gconf/apps/compiz/, with no good.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: compiz 1:0.9.2.1+glibmainloop2-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.37-6.17-generic 2.6.37-rc3
Uname: Linux 2.6.37-6-generic x86_64
Architecture: amd64
CheckboxSubmission: e83647132cfcb6c12c872863e23826f1
CheckboxSystem: edda5d4f616ca792bf437989cb597002
CompizPlugins: No value set for `/apps/compiz/general/allscreens/options/active_plugins'
Date: Sun Nov 28 10:53:05 2010
GconfCompiz:
 /apps/compiz/general:
   /apps/compiz/general/screen0:
    /apps/compiz/general/screen0/options:
     hsize = 1
     vsize = 2
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
MachineType: System manufacturer P5K SE
PackageArchitecture: all
PciDisplay: 01:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV670PRO [Radeon HD 3850] [1002:9505] (prog-if 00 [VGA controller])
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.37-6-generic root=UUID=cd682236-de5c-4115-9b38-af5e4e8d0358 ro text
RelatedPackageVersions:
 xserver-xorg 1:7.5+6ubuntu3b1
 libgl1-mesa-glx 7.9+repack-1ubuntu2
 libdrm2 2.4.22-2ubuntu1
 xserver-xorg-video-intel N/A
 xserver-xorg-video-ati 1:6.13.2-1ubuntu2
SourcePackage: compiz
XorgConf: Error: [Errno 2] No such file or directory: '/etc/X11/xorg.conf'
XsessionErrors: Error: [Errno 13] Permission denied: '/home/jimmy/.xsession-errors'
dmi.bios.date: 01/02/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0901
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P5K SE
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0901:bd01/02/2008:svnSystemmanufacturer:pnP5KSE:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5KSE:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: P5K SE
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer
system: distro = Ubuntu, architecture = x86_64, kernel = 2.6.37-6-generic

Revision history for this message
Jimmy Xu (jimmyxu) wrote :
Revision history for this message
Sam Spilsbury (smspillaz) wrote : Re: [Compiz] [Bug 682327] Re: Compiz crashes when hitting Alt-Tab

Your driver is bad. Please reassign this to radeon

On Sun, Nov 28, 2010 at 6:58 PM, Jimmy Xu <email address hidden> wrote:
>
>
> --
> Compiz crashes when hitting Alt-Tab
> https://bugs.launchpad.net/bugs/682327
> You received this bug notification because you are a member of compiz
> packagers, which is subscribed to compiz in ubuntu.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~compiz
> Post to     : <email address hidden>
> Unsubscribe : https://launchpad.net/~compiz
> More help   : https://help.launchpad.net/ListHelp
>

--
Sam Spilsbury

affects: compiz (Ubuntu) → xserver-xorg-video-ati (Ubuntu)
Bryce Harrington (bryce)
summary: - Compiz crashes when hitting Alt-Tab
+ Compiz crashes when hitting Alt-Tab - Mesa 7.9 implementation error: bad
+ format in _mesa_format_to_type_and_comps
Revision history for this message
Bryce Harrington (bryce) wrote :

Actually, the bug is crashing compiz rather than X.

It sounds like when doing alt-tab, to draw the dialog compiz is passing in a GL format that mesa doesn't support. _mesa_format_to_type_and_comps in ./src/mesa/main/formats.c is basically just a big huge switch statement for every possible texel format, which is used to generate mipmaps. In this case, it is getting to the end of the switch statement, where it hits the default, which is to issue the format error:

      _mesa_problem(NULL, "bad format in _mesa_format_to_type_and_comps");

So, we need to know what format compiz is passing in.

Revision history for this message
Bryce Harrington (bryce) wrote :

The error message is in mesa, so for now I'm guessing it's not a bug in the DDX driver.

affects: xserver-xorg-video-ati (Ubuntu) → mesa (Ubuntu)
Revision history for this message
Bryce Harrington (bryce) wrote :

Try this mesa patch, which will make mesa tell you what gl format number it received. Might be a useful clue.

Revision history for this message
Chris Halse Rogers (raof) wrote :

I'm looking into a similar problem with r600, although for me mesa simply causes compiz to segfault.

For the bug I'm looking at, there are two work-arounds:
1) Disable mipmapping in the switcher preferences, or
2) Enable r600g by adding the ForceGallium option to xorg.conf

They're just work-arounds, but it'd be nice to know if they work around your bug, too.

Revision history for this message
Bryce Harrington (bryce) wrote :

Chris thinks this is a mesa/r600 issue, and that switching to r600g (the gallium driver) will resolve it.

Alternately, you could try turning off mipmapping in the switcher options as a workaround.

Changed in mesa (Ubuntu):
status: New → Incomplete
Revision history for this message
Sam Spilsbury (smspillaz) wrote : Re: [Compiz] [Bug 682327] Re: Compiz crashes when hitting Alt-Tab - Mesa 7.9 implementation error: bad format in _mesa_format_to_type_and_comps

On Wed, Dec 1, 2010 at 7:57 AM, Chris Halse Rogers <email address hidden> wrote:
> I'm looking into a similar problem with r600, although for me mesa
> simply causes compiz to segfault.
>
> For the bug I'm looking at, there are two work-arounds:
> 1) Disable mipmapping in the switcher preferences, or
> 2) Enable r600g by adding the ForceGallium option to xorg.conf
>
> They're just work-arounds, but it'd be nice to know if they work around
> your bug, too.

Another option is to add a quirk for that driver in the detection
plugin and neuter the function which generates mipmaps, although this
is evil and should be a last resort if we cannot fix the driver.

>
> --
> Compiz crashes when hitting Alt-Tab - Mesa 7.9 implementation error: bad format in _mesa_format_to_type_and_comps
> https://bugs.launchpad.net/bugs/682327
> You received this bug notification because you are a member of compiz
> packagers, which is subscribed to compiz in ubuntu.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~compiz
> Post to     : <email address hidden>
> Unsubscribe : https://launchpad.net/~compiz
> More help   : https://help.launchpad.net/ListHelp
>

--
Sam Spilsbury

tags: added: iso-testing
Bryce Harrington (bryce)
Changed in mesa (Ubuntu):
status: Incomplete → New
status: New → Incomplete
tags: added: compiz-0.9
Changed in mesa:
status: Unknown → Fix Released
Changed in mesa:
importance: Unknown → Medium
Revision history for this message
Omer Akram (om26er) wrote :

is this still an issue in Latest natty?

Changed in compiz (Ubuntu):
status: New → Incomplete
Changed in mesa (Ubuntu):
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Bryce Harrington (bryce) wrote :

We've switched to the r600g driver, so presumably this issue is no longer relevant for natty.

Changed in mesa (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Victor Vargas (kamus) wrote :

I will mark this task as closed due to the last comment this behaviour is solved with the new driver.

Changed in compiz (Ubuntu):
status: Incomplete → Fix Released
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.