The super new compiz debugging tool

With the number of bugs being filed on compiz recently and the fact that doing the triaging for all of them is a *little* bit overwhelming, David Barth, the DX Team Lead and Didier Roche who is our packaging master spoke the other day about ways to handle the flood of bugs in compiz 0.9 for unity, I decided to write a little tool for compiz which spews as much internal state information as possible – everything about OpenGL, the paint state, the exact state of every X window, the exact X11 state, etc etc to try and find bugs or things that don’t look right without having to have access to your particular machine. That tool will land tomorrow morning (US Time, since I’m in Dallas with the rest of the DX and Platform team).

The tool activates in two ways: Firstly, it handles any signals that would cause compiz to die and spews all information in that case. It then uses some neat tricks the kernel team taught me to re-flag the signal again without our handler installed so that apport can catch it and grab the output we just spewed out. Secondly, if you hit some weird issue (like incorrect menu stacking, or something similar) you can just hit Control-Super-Shift-? and compiz will also begin spewing as much information as possible and feed that to apport so you can just file a bug directly.

At the moment the tool is somewhat limited in that it only spews the current internal state of compiz at the time it is triggered, and only works for core and the composite and opengl plugins. However in future, it will have a mode to begin collecting and spewing information (expensive!) and end a log report submitting that as a “timeline” of how the bug happened. It will also be expanded to more of the plugins which we are using in the unity experience.

So thanks for reporting bugs and with this tool, hopefully keep-em-coming:

Stuff fixed which you might care about

  • Links are now working in GTK+ (eg GEdits weblink in the about box)
  • Flash and gnome-panel applets are no longer crashing all the time (will be uploaded next week)
  • Fixed a number of focus issues
  • Fixed startup order issues
  • Forward ported a number of bugfixes from 0.8
  • Fix windows going everywhere on restart
  • Fix windows slowly drifting down all the time every compiz restart
  • Fix using gnome-do on an empty desktop leaving no focus
  • Fixed decoration artifacts when shading windows
  • More clever constraining windows to workspaces on resize
  • Fixed screens/allscreens mess in gconf
  • Fix gconf schemas not being generated for nested group options
  • We don’t unload plugins passed to the command line

Plus tons more that I can’t even count. So progress is coming along nicely. Hopefully at the sprint I will have a fix for the most annoying one at present, which is bug #695638 (https://bugs.launchpad.net/ubuntu/+source/unity/+bug/695638) on launchpad. In tomorrows upload there will be some improved borders and shadows too as well as a complete overhaul of the settings defaults by the design team, so keep and eye out for them too.

14 thoughts on “The super new compiz debugging tool

  1. Ctrl-Super-Shift-? can’t work on many keyboard layouts.
    In my case it definitely doesn’t work, since caps lock is mapped as Mod3, which is needed to enter “?”. But Shift-Mod3 results in “σ” (Greek letter lowercase sigma). So I would actually enter Ctrl-Super-Sigma, or Ctrl-Super-Shift-Mod3-s (or S or ? or σ), depending on how you see it.
    The general rule is, to never use Shift keys in keyboard shortcuts, and to never use keys with them that may require the Shift key to be entered themselves. (Actually this is true for all Shift-like keys, like Mod3, Mod4, etc, but not necessarily for Ctrl/Meta/Alt/Win.)

    1. sorry was in a rush. I mean, can I download from git and install, or should I just bite the bullet and transition to natty early?

  2. Tengo instalado Ubuntu 10.04, se puede instalar los plugins como: Group/Tab, Window Previews, Wobbly, Blur y addhelper, gracias
    Porque ha tenido confictos cuando quise instalar Nautilus, el navegador de archivos, porque quise buscar el previsualizacion de ventanas en el navegador de archivos, pero entiendo que se encuentra en el ubuntu 10.10, que lo he experimentado y trae bastantes conflictos con nautilus elementary y compiz, y con los temas esmeralda, y creo también que una tarjeta gráfica influye bastante, bueno hace 1 año que estoy con ubuntu empecé con 9.10 y solamente voy a windows porque lo tengo particionado en dos sistemas, para bajar música del ares.Bueno espero sus consejos gracias.

  3. Hey there! Quick question that’s totally off topic. Do you know how to make your site mobile friendly? My site looks weird when viewing from my iphone. I’m trying to find a template or plugin that might be able to
    correct this issue. If you have any recommendations, please share.

    With thanks!

  4. So, recycling of plastic is good strategy to guard our environment
    from pollution and to save non-renewable sources.
    Because this furniture is cheap, it does not represent class.
    It is like buying brand new plastic furniture all over again at a fraction of the cost.

  5. An impressive share! I’ve just forwarded this
    onto a coworker who was doing a little research on this.

    And he actually ordered me dinner simply because
    I stumbled upon it for him… lol. So let me reword
    this…. Thanks for the meal!! But yeah, thanx for spending time to discuss this issue here on your website.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s