DebuggingCompiz

Differences between revisions 1 and 25 (spanning 24 versions)
Revision 1 as of 2007-12-13 16:16:11
Size: 1923
Editor: p54A67235
Comment: first draft
Revision 25 as of 2011-05-24 14:08:48
Size: 3520
Editor: pc-63-213-30-200
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
||<tablestyle="float:right; font-size: 0.9em; width:30%; background:#F1F1ED; background-image: url('https://librarian.launchpad.net/1812570/bugsquad.png'); background-repeat: no-repeat; background-position: 98% 0.5ex; margin: 0 0 1em 1em; padding: 0.5em;">'''Contents'''[[BR]][[TableOfContents]]|| <<Include(Debugging/Header)>>
||<tablestyle="float:right; font-size: 0.9em; width:30%; background:#F1F1ED; background-image: url('https://librarian.launchpad.net/1812570/bugsquad.png'); background-repeat: no-repeat; background-position: 98% 0.5ex; margin: 0 0 1em 1em; padding: 0.5em;"><<TableOfContents>>||
Line 3: Line 4:
= Introduction = = How to diagnose =
Line 5: Line 6:
Bugs relating to Compiz typically fall into 3 categories:
 1. Integration bugs - require a detailed description of the issue, steps to reproduce and screen captures where appropriate.
 1. Crasher bugs - Log files from the crash incident are required to track down these.
 1. Hardware specific bugs - The developers may not have access to the hardware that triggers this bug. Certain log files and command outputs can help
First check if the problem is in a Compiz dependency by upgrading your system to the latest version. Bugs in the video stack (kernel, X and mesa) may appear as Compiz problems.
Line 10: Line 8:
= Debugging procedure = Try different visual effects settings from the appearance preferences (System -> Preferences -> Appearance -> Visual Effects). If the problem still occurs with effects set to "None" then the problem is no in Compiz but one of the systems mentioned above.
Line 12: Line 10:
Make sure to always include ~/.xsession-errors and /var/log/Xorg.0.log If you have changed the default settings in "!CompizConfig Settings Manager" (package name compizconfig-settings-manager) then try resetting these to the defaults by launching it from from System -> Preferences and clicking on the "Preferences" button and then on the "Reset to defaults" button.
Line 14: Line 12:
= Known bugs = For bugs related to Unity please have a look to [[Unity/FilingBugs]]
Line 16: Line 14:
Description of known issues, how to recognise them and stock responses/actions. = How to file =
Line 18: Line 16:
'''Open'''
||<rowbgcolor="#eeeeee"> '''Bug#''' || '''Description''' || '''Action''' ||
|| [https://bugs.beta.launchpad.net/ubuntu/+source/synaptic/+bug/8896 #8896] || This bug can be identified by ... || Mark as duplicate of 8896 with the comment "Thank you for reporting. This issue has already been reported as bug #8896. Marking as Duplicate." ||
If you have confirmed the bug appears to be in compiz file it using the following command:
{{{
ubuntu-bug compiz
}}}
This ensures that all appropriate information about your system is automatically attached to the bug report.
Line 22: Line 22:
'''Closed'''
||<rowbgcolor="#eeeeee"> '''Bug#''' || '''Description''' || '''Action''' ||
|| [https://bugs.beta.launchpad.net/ubuntu/+source/synaptic/+bug/8896 #8896] || This bug can be identified by ... || Mark as duplicate of 8896 with the comment "Thank you for reporting. This issue has already been reported as bug #8896. Marking as Duplicate." ||
Please attach screenshots showing the problem in detail.
Line 26: Line 24:
= Non-bugs = Describe what occurred and what you expected should have occurred.
Line 28: Line 26:
How to recognise common issues arising from hardware failures, common feature requests and other invalid bugs for this category. Advice how triage them and stock responses. Indicate if the problem is repeatable and what steps cause it.
Line 30: Line 28:
= Also see = Indicate if there is a workaround to the problem.
Line 32: Line 30:
 * DebuggingProcedures Example:

{{{
FancySwitcher does not show all windows.

To reproduce:
1. Log in
2. Open three GEdit windows
3. Press meta-tab

What occurs:
Only 2 windows are shown in switcher (see attached screenshot with annotations)

What was expected:
All three GEdit windows would be shown in the switcher as occurs when using the standard switcher (alt-tab).
}}}

= Advanced Debugging =

== Getting a Backtrace ==

Install the debugging symbol packages (see DebuggingProgramCrash for how to add the debug repository):
{{{
sudo apt-get install compiz-core-dbgsym, compiz-plugins-dbgsym compiz-fusion-plugins-main-dbgsym, compiz-fusion-plugins-extra-dbgsym compizconfig-backend-gconf-dbgsym libcompizconfig0-dbgsym compiz-gnome-dbgsym
}}}

{{{
run gdb as:
$ gdb --args compiz --replace
...
(gdb) set logging on compiz-crash.txt
(gdb) run
...
(once it crashes)
...
(gdb) thread apply all bt full
(gdb) set logging off
}}}

Then you can attach that resulting log file (compiz-crash.txt) to the bug report.

== Stale crashers ==

If apport did not automatically report the issue, you can check that a crasher trace has been collected by looking into the {{{/var/crash}}} directory. You should see a filename containing 'compiz'.

{{{ls -altr /var/crash}}} to list them in chronological order.

To manually file a bug report using a crash file:
 * stay in your current X session
 * add a window manager from a TTY if needed, ie CTRL-ALT-F1, login, {{{DISPLAY=:0 metacity --replace}}}
 * then, from your X session, do: {{{apport-bug -c /var/crash/<compiz crash file>}}} and follow the procedure in the web page that should open shortly after you invoke this command. Note that focus issues may prevent the page to appear on the top, but look for a new browser window opened in your workspace.
Line 35: Line 83:
CategoryBugSquad CategoryBugSquad CategoryDebugging

Debugging Central

This page is part of the debugging series — pages with debugging details for a variety of Ubuntu packages.

How to diagnose

First check if the problem is in a Compiz dependency by upgrading your system to the latest version. Bugs in the video stack (kernel, X and mesa) may appear as Compiz problems.

Try different visual effects settings from the appearance preferences (System -> Preferences -> Appearance -> Visual Effects). If the problem still occurs with effects set to "None" then the problem is no in Compiz but one of the systems mentioned above.

If you have changed the default settings in "CompizConfig Settings Manager" (package name compizconfig-settings-manager) then try resetting these to the defaults by launching it from from System -> Preferences and clicking on the "Preferences" button and then on the "Reset to defaults" button.

For bugs related to Unity please have a look to Unity/FilingBugs

How to file

If you have confirmed the bug appears to be in compiz file it using the following command:

ubuntu-bug compiz

This ensures that all appropriate information about your system is automatically attached to the bug report.

Please attach screenshots showing the problem in detail.

Describe what occurred and what you expected should have occurred.

Indicate if the problem is repeatable and what steps cause it.

Indicate if there is a workaround to the problem.

Example:

FancySwitcher does not show all windows.

To reproduce:
1. Log in
2. Open three GEdit windows
3. Press meta-tab

What occurs:
Only 2 windows are shown in switcher (see attached screenshot with annotations)

What was expected:
All three GEdit windows would be shown in the switcher as occurs when using the standard switcher (alt-tab).

Advanced Debugging

Getting a Backtrace

Install the debugging symbol packages (see DebuggingProgramCrash for how to add the debug repository):

sudo apt-get install compiz-core-dbgsym, compiz-plugins-dbgsym compiz-fusion-plugins-main-dbgsym, compiz-fusion-plugins-extra-dbgsym compizconfig-backend-gconf-dbgsym libcompizconfig0-dbgsym compiz-gnome-dbgsym

run gdb as: 
$ gdb --args compiz --replace
...
(gdb) set logging on compiz-crash.txt
(gdb) run
...
(once it crashes)
...
(gdb) thread apply all bt full
(gdb) set logging off

Then you can attach that resulting log file (compiz-crash.txt) to the bug report.

Stale crashers

If apport did not automatically report the issue, you can check that a crasher trace has been collected by looking into the /var/crash directory. You should see a filename containing 'compiz'.

ls -altr /var/crash to list them in chronological order.

To manually file a bug report using a crash file:

  • stay in your current X session
  • add a window manager from a TTY if needed, ie CTRL-ALT-F1, login, DISPLAY=:0 metacity --replace

  • then, from your X session, do: apport-bug -c /var/crash/<compiz crash file> and follow the procedure in the web page that should open shortly after you invoke this command. Note that focus issues may prevent the page to appear on the top, but look for a new browser window opened in your workspace.


CategoryBugSquad CategoryDebugging

DebuggingCompiz (last edited 2015-09-21 10:08:45 by 3v1n0)