blur plugin messes up window shadows

Bug #791074 reported by Bogdan Butnaru on 2011-06-01
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
Low
Sam Spilsbury

Bug Description

Binary package hint: compiz

Hello! On Natty, if both “Window decorations” and “Blur” plugins are enabled, and the settings for blur include “Alpha blur”, the windows where alpha blur applies have messed up shadows. (I use “normal” as the window filter for alpha blur; examples of transparent areas are the gnome terminal in some profiles, and unfocused window title bars, and some popups.)

First of all, the shadowed areas are also blured, which I believe to be wrong behavior. (Only translucent part of “logical” windows should be blured, not effects like shadow.)

Second, the shadow becomes “messy”: it’s a dynamic bug, the exact effects vary when moving windows around, including darkening or lightening of the shadow, and various lines and areas of varying opacity. I’m including a screenshot with an example.

(CCSM shows “/usr/bin/compiz-decorator” as the “Command” in the window decorations plugin, by the way.)

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: compiz 1:0.9.4+bzr20110415-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-9.43-generic 2.6.38.4
Uname: Linux 2.6.38-9-generic x86_64
NonfreeKernelModules: nvidia
.proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 270.41.06 Mon Apr 18 14:53:56 PDT 2011
 GCC version: gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,decor,titleinfo,mousepoll,blur,move,obs,thumbnail,compiztoolbox,snap,regex,place,imgpng,vpswitch,grid,extrawm,gnomecompat,resize,animation,wall,session,expo,workarounds,ezoom,animationaddon,staticswitcher,fade,scale,scaleaddon]
CompositorRunning: compiz
Date: Wed Jun 1 09:00:23 2011
DistUpgraded: Log time: 2010-08-16 14:31:52.248788
DistroCodename: natty
DistroVariant: ubuntu
DkmsStatus:
 nvidia-current, 270.41.06, 2.6.38-9-generic, x86_64: installed
 nvidia-current, 270.41.06, 2.6.38-8-generic, x86_64: installed
 vboxhost, 4.0.0, 2.6.37-12-generic, x86_64: installed
EcryptfsInUse: Yes
GraphicsCard:
 nVidia Corporation G94 [GeForce 9600 GT] [10de:0622] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Giga-byte Technology Device [1458:3488]
JockeyStatus:
 xorg:nvidia_173 - NVIDIA accelerated graphics driver (Proprietary, Disabled, Not in use)
 xorg:nvidia_current - NVIDIA accelerated graphics driver (Proprietary, Enabled, Not in use)
MachineType: System manufacturer P5Q-PRO
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-9-generic root=UUID=f345b250-3225-489c-a2a5-5c7a2b21a0fd ro
ProcVersionSignature_: Ubuntu 2.6.38-9.43-generic 2.6.38.4
Renderer: Unknown
SourcePackage: compiz
UpgradeStatus: Upgraded to natty on 2010-08-16 (288 days ago)
dmi.bios.date: 11/04/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1501
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P5Q-PRO
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.:bvr1501:bd11/04/2008:svnSystemmanufacturer:pnP5Q-PRO:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5Q-PRO:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: P5Q-PRO
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer
version.compiz: compiz 1:0.9.4+bzr20110415-0ubuntu2
version.ia32-libs: ia32-libs 20090808ubuntu13
version.libdrm2: libdrm2 2.4.23-1ubuntu6
version.libgl1-mesa-dri: libgl1-mesa-dri 7.10.2-0ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental 7.10.2-0ubuntu2
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.2-0ubuntu2
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu3.1
version.xserver-xorg-video-ati: xserver-xorg-video-ati N/A
version.xserver-xorg-video-intel: xserver-xorg-video-intel N/A
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110107+b795ca6e-0ubuntu7

Bogdan Butnaru (bogdanb) wrote :
description: updated
Download full text (5.2 KiB)

Yeah, we're binding the framebuffer wrong. I had a look into this bug
I'm not sure what's causing it. Maybe if we get time I can get one of
our GL experts to take a look.

On Wed, Jun 1, 2011 at 3:14 PM, Bogdan Butnaru
<email address hidden> wrote:
> Public bug reported:
>
> Binary package hint: compiz
>
> Hello! On Natty, if both “Window decorations” and “Blur” plugins are
> enabled, and the settings for blur include “Alpha blur”, the windows
> where alpha blur applies have messed up shadows. (I use “normal” as the
> window filter for alpha blur; examples of transparent areas are the
> gnome terminal in some profiles, and unfocused window title bars, and
> some popups.)
>
> First  of all, the shadowed areas are also blured, which I believe to be
> wrong behavior. (Only translucent part of “logical” windows should be
> blured, not effects like shadow.)
>
> Second, the shadow becomes “messy”: it’s a dynamic bug, the exact
> effects vary when moving windows around, including darkening or
> lightening of the shadow, and various lines and areas of varying
> opacity. I’m including a screenshot with an example.
>
> (CCSM shows “/usr/bin/compiz-decorator” as the “Command” in the window
> decorations plugin, by the way.)
>
> ProblemType: Bug
> DistroRelease: Ubuntu 11.04
> Package: compiz 1:0.9.4+bzr20110415-0ubuntu2
> ProcVersionSignature: Ubuntu 2.6.38-9.43-generic 2.6.38.4
> Uname: Linux 2.6.38-9-generic x86_64
> NonfreeKernelModules: nvidia
> .proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'
> .proc.driver.nvidia.registry: Binary: ""
> .proc.driver.nvidia.version:
>  NVRM version: NVIDIA UNIX x86_64 Kernel Module  270.41.06  Mon Apr 18 14:53:56 PDT 2011
>  GCC version:  gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
> Architecture: amd64
> CompizPlugins: [core,bailer,detection,composite,opengl,decor,titleinfo,mousepoll,blur,move,obs,thumbnail,compiztoolbox,snap,regex,place,imgpng,vpswitch,grid,extrawm,gnomecompat,resize,animation,wall,session,expo,workarounds,ezoom,animationaddon,staticswitcher,fade,scale,scaleaddon]
> CompositorRunning: compiz
> Date: Wed Jun  1 09:00:23 2011
> DistUpgraded: Log time: 2010-08-16 14:31:52.248788
> DistroCodename: natty
> DistroVariant: ubuntu
> DkmsStatus:
>  nvidia-current, 270.41.06, 2.6.38-9-generic, x86_64: installed
>  nvidia-current, 270.41.06, 2.6.38-8-generic, x86_64: installed
>  vboxhost, 4.0.0, 2.6.37-12-generic, x86_64: installed
> EcryptfsInUse: Yes
> GraphicsCard:
>  nVidia Corporation G94 [GeForce 9600 GT] [10de:0622] (rev a1) (prog-if 00 [VGA controller])
>    Subsystem: Giga-byte Technology Device [1458:3488]
> JockeyStatus:
>  xorg:nvidia_173 - NVIDIA accelerated graphics driver (Proprietary, Disabled, Not in use)
>  xorg:nvidia_current - NVIDIA accelerated graphics driver (Proprietary, Enabled, Not in use)
> MachineType: System manufacturer P5Q-PRO
> PackageArchitecture: all
> ProcEnviron:
>  LANGUAGE=en_US:en
>  PATH=(custom, user)
>  LANG=en_US.UTF-8
>  SHELL=/bin/bash
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-9-generic root=UUID=f345b250-3225-489c-a2a5-5c7a2b21a0fd ro
> ProcVersionSignature_: Ubuntu 2.6.38-9.43-generic 2.6.38.4
> R...

Read more...

Changed in compiz (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → Sam "SmSpillaz" Spilsbury (smspillaz)
ugtar (uokrent) wrote :

I have two possible workarounds...
1. In the compiz workarounds plugin, enable "Force full screen redraws (buffer swap) on repaint". This solution will massively increase cpu/gpu usage and drain your battery if you have one so I wouldn't recommend it.
2. Mostly I was just using alpha blur for my terminal windows, so right now I'm getting around this by only using alpha blur on specific window classes (like gnome-terminal), rather than setting alpha blur windows to 'normal' or 'any', and that seems to get around the problem ok as well.

ugtar (uokrent) wrote :

I tried removing the unity plugin, and now the blur plugin works nicely like it always did, as well as window decoration shadows. It seems like there is some issue when both the unity plugin and the blur plugin are loaded in compizconfig.

I'm not running a frankenstein configuration that closely matches unity except blur is working correctly. I run unity2d, and then I run compiz --replace (as a startup script). I have the unity compiz plugin disabled.

ugtar (uokrent) wrote :

First sentence of the second paragraph should read "I'm *now* running...".

I can't seem to figure out how to edit my comments

Chow Loong Jin (hyperair) wrote :

It seems to affect the notify-osd windows, as well as the translucent gnome-terminal window I have around as well. It looks like the workarounds mentioned were already activated for me.

ugtar (uokrent) wrote :

I just filed this bug against 12.04. Seems related but is much more serious. When I enable blur, all my windows basically just vanish (sometimes mousing over them will cause parts to reappear). The common thing is that this only happens when I have the Unity plugin also enabled.

https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/991028

Hi, Natty has reached End-of-Life. Can this bug be reproduced in later versions of ubuntu?

Changed in compiz (Ubuntu):
status: Confirmed → Incomplete
ugtar (uokrent) wrote :

This bug is no longer relevant because after 12.04 there is no more blur plugin =(

To post a comment you must log in.