new libcairo2-1.9.10 fails to render correctly

Bug #596192 reported by Harry
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cairo (Ubuntu)
Invalid
Low
Unassigned
emerald (Ubuntu)
Invalid
Low
Unassigned

Bug Description

I have a fully updated Lucid-AMD-64 installation with an upgraded compiz (0.8.6-0ubuntu1).
I also use emerald (0.7.2-0ubuntu4) decorator for compiz.
Furthermore, I have upgraded my system with all the lucid packages of the PPA xorg-edgers fresh X crack,
including the new kernel (2.6.35-6.8), xserver (1.8.1.902+git20100621) and nvidia-current (256.35-0ubuntu0).
Motherboard: Gigabyte GA-MA790XT-UP4
Graphics card: NVidia GTX285

After upgrading the new libcairo2 (1.9.10-0ubuntu0sarvatt~lucid) I noticed some serious rendering issues.
All effects fails to render correctly, where there should appear highlighting or fading color blends:

1. The scroll bars in application windows become white, with no color blends.
The same happens to text buttons (see the attached screenshots).

2. In emerald the frame engine (vrunner 0.2) blends in the titlebar (especially middle blend) fails to render.
The whole title becomes white. Actually a whitish blend does not render at all.
This is evident in emerald, metacity compositing does not use blending in titlebars.

3. In emerald the frame/shadows of gnome panel or of application windows sometimes do not render at all.
They disappear.

4. I have also noticed, using synaptic for instance, pressing the reload button, the loading bar fails to show blending colors.
The upper area of the bar is completely white.

The lucid libcairo2 (1.8.10-2ubuntu1) and maverick libcairo2 (1.8.10-4ubuntu1) do work OK.
So downgrading to one of those works.

The bug described above also affects Maverick.

Revision history for this message
Harry (harry33) wrote : Re: [xorg-edgers] new libcairo2 1.9.9 fails to render correctly

All what is said above applies also to the newer build of libcairo2 (1.9.9~git20100620.b8051ee9-0ubuntu0sarvatt2~lucid).
No color blends at all.

summary: - [xorg-edgers] new libcairo2 1.9.8-rc fails to render correctly
+ [xorg-edgers] new libcairo2 1.9.9 fails to render correctly
Harry (harry33)
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your bug report, you are not using an official ubuntu version though, not sure how bugs for that ppa are tracked usually I will try to get Sarvatt to comment

Changed in cairo (Ubuntu):
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :

could you also add a screenshot showing the issue?

Revision history for this message
Harry (harry33) wrote :

Hi Sebastian,

Yes, correct, I have upgraded my system a bit.
On the other hand, the x-org-edgers PPA is meant to be used as a whole, not by using single packages.
Today I upgraded the xserver (1.8.1.902+git20100621) too.

And yes, I am attaching the screenshots here:
1) libcairo-1.8.10.png (rendering OK)
2) libcairo-1.9.9.png (issues with blending).

Revision history for this message
Harry (harry33) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

could be useful to report the bug upstream on bugs.freedesktop.org

Revision history for this message
Harry (harry33) wrote :

Hi Sebastian,

Of coarse reporting upstreams would help, if this is an upstream issue (with libcairo2).
I am not so sure about that though.

On the other hand I do not believe this is an emerald issue anyway, perhaps rather a compiz issue.
If I disable emerald, I can still see issues with color blending (progress bars, scroll bars, button applets etc).

Could someone give info on current emerald packages in ubuntu.
We are using version 0.7.2 in lucid and maverick now.
The newest version around is 0.8.4 though, released 14th October 2009:
http://directory.fsf.org/project/emerald/

Revision history for this message
Sebastien Bacher (seb128) wrote :

I don't notice a such issue on compiz there, emerald is probably not updated because nobody has showned interest to work on it

Changed in emerald (Ubuntu):
importance: Undecided → Low
Revision history for this message
Harry (harry33) wrote :

Hi Sebastian,

I have now narrowed this bug a bit.
It seems to be clear that it is not a bug in compiz nor a bug in emerald.

I removed the emerald and compiz packages completely from my system.
Before that I turned to metacity compositing (metacity --replace).
Then I rebooted the system.
After that I upgraded the libcairo2-1.8.10 to libcairo2-1.9.9~git20100620.b8051ee9-0ubuntu0sarvatt2~lucid.
And I can confirm the bug is still there.

You can see the issues from the screenshots I have attached above:
- issue in the title bar comes only up when emerald is used (because metacity does not blend title bar colors).
- issues in scrollbar remain even emerald and compiz removed.
- issues in buttons (section, status, origin, custom filters, search results) remain even emerald and compiz removed.

Just compare screenshots (from desktop with synaptic open) libcairo2-1.8.10.png and libcairo2-1.9.9.png.
It really is a bug concerning color blends and the older package libcairo2-1.9.8 and the newer libcairo-1.9.9,
but not the stable package libcairo2-1.8.10.

Changed in emerald (Ubuntu):
status: New → Invalid
Harry (harry33)
description: updated
Revision history for this message
Harry (harry33) wrote :

There is another bug report around with same symptoms, possibly a duplicate:
bug #597987

Revision history for this message
Robert Hooker (sarvatt) wrote :

I opened the emerald task because one of the cairo developers said that emerald was using the cairo api incorrectly and would be a problem with the next release.

Harry (harry33)
Changed in emerald (Ubuntu):
status: Invalid → New
Revision history for this message
Harry (harry33) wrote :

So it may very well be that many of the rendering issues with the new development version of cairo are in fact issues in several other "stable" applications using cairo application programming interface (API).
Anyone, feel free to report this upstreams.

Harry (harry33)
summary: - [xorg-edgers] new libcairo2 1.9.9 fails to render correctly
+ [xorg-edgers] new libcairo2-1.9.10 fails to render correctly
description: updated
summary: - [xorg-edgers] new libcairo2-1.9.10 fails to render correctly
+ new libcairo2-1.9.10 fails to render correctly
Revision history for this message
Sebastien Bacher (seb128) wrote :

upstream comments on IRC about the issue

"that looks just like emerald playing games with writing to surfaces behind cairo's back.
you can probably simply ignore the issue by commenting out line 322 in src/cairo-image-surface.c but then the bugs become much more subtle.
any time that they modify the pixels obtained through cairo_image_surface_get_data() or by keeping the pointer used for cairo_image_surface_create_for_data(), then they must call cairo_surface_flush() before modification and cairo_surface_mark_diry() afterwards"

Revision history for this message
Sebastien Bacher (seb128) wrote :

closing the cairo task since bug #601220 is about the same issue using official ubuntu versions

Changed in cairo (Ubuntu):
status: New → Invalid
Revision history for this message
Phillip Susi (psusi) wrote :

This package has been removed from Ubuntu. Closing all related bugs.

Changed in emerald (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.