As a workaround until this is resolved, I use a script:
$ cat bin/fixcompiz #! /bin/sh export DISPLAY=:0.0 /usr/bin/xhost local:$USER /usr/bin/nohup /usr/bin/metacity --replace > /dev/null &
So when I get the error, I go to a tty (e.g., ctrl-alt-F1) and run the script from there. The downside is that all of my open apps are now in workspace #1 and I need to move them if I want them back in the workspaces they occupied pre-crash.
As a workaround until this is resolved, I use a script:
$ cat bin/fixcompiz
#! /bin/sh
export DISPLAY=:0.0
/usr/bin/xhost local:$USER
/usr/bin/nohup /usr/bin/metacity --replace > /dev/null &
So when I get the error, I go to a tty (e.g., ctrl-alt-F1) and run the script from there. The downside is that all of my open apps are now in workspace #1 and I need to move them if I want them back in the workspaces they occupied pre-crash.