DebuggingCompiz

Differences between revisions 23 and 25 (spanning 2 versions)
Revision 23 as of 2009-11-29 19:05:50
Size: 2530
Editor: adsl-68-127-155-110
Comment: used ! to turn of auto wiki link of CompizConfig, added package name since it's not installed by default for Karmic
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 11: Line 11:

For bugs related to Unity please have a look to [[Unity/FilingBugs]]
Line 47: Line 49:
== Getting a Backtrace ==
Line 52: Line 56:
Run compiz manually by disabling visual effects and running it from the command line:
Line 54: Line 57:
compiz.real --replace --indirect-rendering ccp 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
Line 56: Line 68:
You can then run this with a debugger.
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.

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)