Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219023 - x11-base/xorg-server XAA driver & Xrender combination bug causes rendering corruption in mozilla-firefox-3.x
Summary: x11-base/xorg-server XAA driver & Xrender combination bug causes rendering co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 236289 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-23 13:35 UTC by Caleb Cushing
Modified: 2009-05-06 11:06 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
screenshot showing rendering problem (ff3_omnisio.png,464.27 KB, image/png)
2008-04-23 13:36 UTC, Caleb Cushing
Details
emerge --info (emerge.info,3.45 KB, text/plain)
2008-04-23 13:38 UTC, Caleb Cushing
Details
turn_on_buggy-repead_handling (03-turn_on_buggy-repeat_handling.dpatch,1014 bytes, patch)
2008-04-29 15:09 UTC, Olaf Leidinger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Cushing 2008-04-23 13:35:37 UTC
Yes I know it's beta and hard masked. But it appears to be a problem with the source build as another user doesn't report it with the bin.

Just trying to pin it down. I'm attaching a screen shot to demo issue

http://omnisio.com/startupschool08/mike-arrington

is one of the pages that I noticed it on.

Reproducible: Always
Comment 1 Caleb Cushing 2008-04-23 13:36:24 UTC
Created attachment 150703 [details]
screenshot showing rendering problem
Comment 2 Caleb Cushing 2008-04-23 13:38:11 UTC
Created attachment 150705 [details]
emerge --info
Comment 3 Olaf Leidinger 2008-04-29 14:51:51 UTC
I've got the same problem, it seems to be a bug in the XAA-Code of the radeon and flgrx driver. You might set your render method to exa.

The people from ubuntu have this problem too, but they worked around it by a patch against cairo. Please have a look here:

https://bugs.launchpad.net/ubuntu/+source/firefox-3.0/+bug/186186
Comment 4 Olaf Leidinger 2008-04-29 15:09:32 UTC
Created attachment 151345 [details, diff]
turn_on_buggy-repead_handling

This is the work-around used in ubuntu, seems to apply fine to cairo-1.6.4
Comment 5 Olaf Leidinger 2008-04-29 15:16:53 UTC
Okay, this patch seems to resolve the issue for me, tested with the cairo-1.6.4 ebuild, just add the following line to the src_unpack function:

epatch ${FILESDIR}/03-turn_on_buggy-repeat_handling.dpatch

As the patch to the ebuild is trivial and the patch (when it goes to portage) will probably be rennamed I won't add a new ebuild...
Comment 6 Caleb Cushing 2008-05-02 02:40:26 UTC
has it been added or do I need to patch manually? I re-installed ff3 and rebuilt cairo. I still see the problem on various sites.
Comment 7 Olaf Leidinger 2008-05-02 07:03:20 UTC
You need to manually add this patch to the cairo ebuild in portage - it's not in, yet.
Comment 8 Caleb Cushing 2008-05-09 10:23:22 UTC
although technically this isn't resolved until the patch is in cairo, X or at least in portage (I'd be satisfied with any of them). I've tested it and at first glance it appears to have fixed my problem.
Comment 9 Caleb Cushing 2008-06-07 06:41:15 UTC
can this patch get pushed before firefox-3 final comes out. I've been testing it through rc2 now no problems.
Comment 10 Raúl Porcel (RETIRED) gentoo-dev 2008-06-19 08:47:58 UTC
*** Bug 228251 has been marked as a duplicate of this bug. ***
Comment 11 Caleb Cushing 2008-06-19 09:18:24 UTC
@ Raúl Porcel you should check out bug #221141 it's the black img bug which is separate from this and has an easy work around.
Comment 12 Caleb Cushing 2008-06-19 09:23:50 UTC
updating title to be more accurate
Comment 13 Caleb Cushing 2008-06-19 09:38:11 UTC
shouldn't the x11 herd be cc-ed on this since the patch applies to cairo?
Comment 14 Raúl Porcel (RETIRED) gentoo-dev 2008-06-19 11:26:23 UTC
Sorry, wrong bug :P cairo is maintained by cardoe
Comment 15 Doug Goldstein (RETIRED) gentoo-dev 2008-06-19 14:20:31 UTC
This is an X server bug with XAA using some pre-EXA accleration hacks that were determined to be flawed. As a result, cairo had to hack around it. This patch is merely an extension of that hack and does not fix the underlying issue. It merely forces on an unaccelerated software rendering approach to always be on. Hardly an ideal solution. This patch is akin to saying the truck is out of gas so let's carry the boxes by hand instead of refilling gas tank of the truck. If you want to use XAA over EXA (or your driver is a XAA only driver), it's important you configure your X.org server properly.

XaaNoOffscreenPixmaps "true"
Comment 16 Caleb Cushing 2008-06-19 14:31:12 UTC
is this bug then a dupe or directly related to bug #221141 ? I've been under the impression that they are different problems. But the fix you are suggesting is the same.
Comment 17 Doug Goldstein (RETIRED) gentoo-dev 2008-06-19 15:04:52 UTC
Correct. xorg-server upstream has stated a few times that they know XAA is hosed with a few configurations. The reason this crops up in cairo apps is that cairo makes heavy use of the RENDER extension, which is where XAA screws up the most. The situation has become so problematic that upstream has decided for xorg-server 1.5, XAA OffScreen Pixmaps are going to be disabled by default as Donnie noted in bug 221141#c6.

You can see all the issues with XAA and Off Screen Pixmaps here: http://tinyurl.com/5qrr7g
Comment 18 Doug Goldstein (RETIRED) gentoo-dev 2008-06-19 15:07:46 UTC
Additionally, some discussion about why cairo isn't going to work around every single user configuration, driver, and driver acceleration combination is available here: http://thread.gmane.org/gmane.comp.freedesktop.xorg/26437

You can also see that Ubuntu maintainers have had the same rational here: https://bugs.launchpad.net/ubuntu/+source/firefox-3.0/+bug/186186

Fedora did the same thing however I can't remember the Gentoo bug number that I referred to it and I can't find it on Fedora's site right now.
Comment 19 Kamil Kamiński 2008-06-22 18:27:10 UTC
(In reply to comment #15)

> 
> XaaNoOffscreenPixmaps "true"
> 

Right, tell it to my "sis" fdriver ;( :
(WW) SIS(0): Option "XAANoOffscreenBitmaps" is not used
Comment 20 Doug Goldstein (RETIRED) gentoo-dev 2008-06-23 14:35:22 UTC
Take it upstream. Or get new hardware. If your graphics card driver can't do the right thing that it claims it supports, your driver needs to be fixed.
Comment 21 Dmitry Karasik 2008-06-23 15:18:49 UTC
You didn't specify the configuration option correctly, these are not the same:

XAANoOffscreenBitmaps
XaaNoOffscreenPixmaps
Comment 22 Petr Zima 2008-07-02 07:26:47 UTC
I confirm this bug on my system (Radeon 9200SE, xorg-server-1.4.2, xf86-video-ati-6.9.0). Option "XaaNoOffscreenPixmaps" or switching to EXA (which has other flaws) solves the problem.
Comment 23 Stefan de Konink 2008-07-25 19:49:30 UTC
(In reply to comment #22)
> I confirm this bug on my system (Radeon 9200SE, xorg-server-1.4.2,
> xf86-video-ati-6.9.0). Option "XaaNoOffscreenPixmaps" or switching to EXA
> (which has other flaws) solves the problem.


VGA compatible controller: ATI Technologies Inc M11 NV [FireGL Mobility T2e] (rev 80)

With the latest Xorg has the same issues. And can be solved also with the XaaNoOffscreenPixmaps.
Comment 24 Raúl Porcel (RETIRED) gentoo-dev 2008-09-01 08:46:45 UTC
*** Bug 236289 has been marked as a duplicate of this bug. ***
Comment 25 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2008-09-01 09:29:53 UTC
This issue can be worked around also with changing environment, according to https://bugzilla.mozilla.org/show_bug.cgi?id=404557 :

export MOZ_DISABLE_IMAGE_OPTIMIZE=1

When Fx starts with this env, the issue does not occur (I tested it, and there
are another confirmation reports in mentioned mozilla bug).
Comment 26 Rémi Cardona (RETIRED) gentoo-dev 2009-05-06 11:06:33 UTC
Xorg-server 1.5.3-r5 now being stable, the server no longer uses offscreen pixmaps by default. Given all the trouble caused by XAA, I strongly suggest the mozilla herd didn't try to work around this particular bug.

Closing fixed

Thanks