Bug 13871 - intermittent rendering artifacts: thin vertical lines on right edge of shapes
Summary: intermittent rendering artifacts: thin vertical lines on right edge of shapes
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-30 15:19 UTC by Karl Ostmo
Modified: 2008-08-25 11:17 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Python program to demonstrate artifacts (3.06 KB, text/x-python)
2007-12-30 15:21 UTC, Karl Ostmo
no flags Details
Image that demonstates the artifact (14.06 KB, image/png)
2007-12-30 15:24 UTC, Karl Ostmo
no flags Details
xorg.conf before modifying anything (2.59 KB, text/plain)
2008-01-06 11:02 UTC, Karl Ostmo
no flags Details
Xorg.0.log before modifying anythin (55.19 KB, text/plain)
2008-01-06 11:03 UTC, Karl Ostmo
no flags Details

Description Karl Ostmo 2007-12-30 15:19:34 UTC
The artifacts are single-pixel-wide vertical lines on the right edge of the shape bounding box.  They appear in the same color as the source color of the shape.

I have included a test case written with PyCairo to demonstrate this effect.  To see the artifacts, resize the window.  While you are dragging the window corner around, the artifacts will appear intermittently.  The artifact is not present when the image is saved as a PNG at the same pixel dimensions.  The artifact often disappears after another window is moved on top of the cairo surface and dragged off again, which forces a redraw of that part of the surface.
Comment 1 Karl Ostmo 2007-12-30 15:21:22 UTC
Created attachment 13428 [details]
Python program to demonstrate artifacts

You can type "pydoc cairo_artifact_testcase" for some more info.
Comment 2 Karl Ostmo 2007-12-30 15:24:15 UTC
Created attachment 13429 [details]
Image that demonstates the artifact

Look at the right edge of the circle.  There is a thin vertical line of red pixels.
Comment 3 Carl Worth 2008-01-03 17:28:44 UTC
I've seen this kind of thing before, and I believe it is a bug in the X server, not cairo. What X server and driver are you running and what versions? Is it an ATI card by chance?

-Carl
Comment 4 Karl Ostmo 2008-01-03 18:23:36 UTC
My card is an ATI Radeon Mobility 7500.  I'm running Ubuntu Gutsy, so I think the driver being used is the free "ATI" driver.  Not sure how to determine the version of the xserver.  Come to think of it, though, I have seen similar vertical line artifacts on the "r" character for quite some time on Ubuntu in non-Cairo environments, so you may be right in that it is not a Cairo bug.
Comment 5 Tormod Volden 2008-01-06 09:14:50 UTC
(Why was the bug closed instead of reassigned?)
Comment 6 Alex Deucher 2008-01-06 10:35:27 UTC
Please attach xorg log and config.  Do you still get drawing problems with the vesa driver or with "NoAccel?"  How about XAA vs. EXA?
Comment 7 Karl Ostmo 2008-01-06 11:02:15 UTC
Created attachment 13549 [details]
xorg.conf before modifying anything
Comment 8 Karl Ostmo 2008-01-06 11:03:06 UTC
Created attachment 13550 [details]
Xorg.0.log before modifying anythin
Comment 9 Karl Ostmo 2008-01-06 11:47:43 UTC
(In reply to comment #6)
> Please attach xorg log and config.  Do you still get drawing problems with the
> vesa driver or with "NoAccel?"  How about XAA vs. EXA?
> 

I changed the driver from ATI to Vesa, then restarted the computer.  I am unable to reproduce the bug when using the Vesa driver.
Comment 10 Alex Deucher 2008-01-06 22:35:15 UTC
Can you try EXA vs XAA?
Option "AccelMethod" "XAA" # the default
or
Option "AccelMethod" "EXA"

Next, can you try and find out what operation is causing the problem?  For XAA try the following options:

Option "XaaNoOffscreenPixmaps"
Option "XaaNoSolidFillRect"
Option "XaaNoScreenToScreenCopy"
etc. (see xorg.conf man page).

EXA has similar options (see exa man page).
Comment 11 Karl Ostmo 2008-01-31 17:24:20 UTC
(In reply to comment #10)

{Option "AccelMethod" "EXA"} made the artifacts disappear, however rendering was noticeably slower (and "Desktop Effects" could not be enabled; when attempting to do so the xserver kicked me out to the login screen).

I tried the 3 options you gave one at a time under XAA.  Setting either {Option "XaaNoOffscreenPixmaps"} or {Option "XaaNoScreenToScreenCopy"} alone eliminated the artifacts, while still preserving accelerated rendering (including "Desktop Effects").  {Option "XaaNoSolidFillRect"} did not help anything.

Comment 12 Michel Dänzer 2008-02-01 03:00:23 UTC
If Option "RenderAccel" "off" works around it as well, it could be the infamous bug 1424. Can you try xf86-video-ati 6.7.197 or Git?
Comment 13 Tormod Volden 2008-02-01 05:21:06 UTC
Karl, you can get updated-from-git test packages for Ubuntu Gutsy at https://wiki.ubuntu.com/XorgOnTheEdge
Comment 14 Bryce Harrington 2008-08-25 11:17:46 UTC
We are no longer seeing this issue (ref LP #180654); I believe it can be closed as resolved.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.