Bug 24948

Summary: regression from xorg-server 1.6.5 : screen corruption when scrolling and in toolbars&texts
Product: xorg Reporter: Thomas Capricelli <orzel>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: 7.4 (2008.09)   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
log file of the X.Org X Server 1.7.1 with bad rendering
none
log file of the X.Org X Server 1.6.5 with good rendering
none
my xorg.conf. I did not change it between tests.
none
example 1
none
example 2
none
after redraw none

Description Thomas Capricelli 2009-11-05 15:08:18 UTC
Created attachment 30996 [details]
log file of the X.Org X Server 1.7.1 with bad rendering

I often have corruption when scrolling (more especially in firefox or konqueror) : part of the area is 'shifted', as if the whole page had scrolled as expected BUT a small rectangle. I could not find a reliable way to reproduce, but it happened often. Switching to another desktop and coming back fixes the problem. (re-render i guess?)

Another problem I had, is that some rectangular parts of the screen where all fubared (mostly black, often with rainbow colors randomly, mostly junk i think). It was on top of either a text (inside a webpage) or the whole button in a toolbar. I had the problem especially with kde's "Akregator", but i guess this is nothing noteworthy. Usually moving the mouse over would solve it. I think kde has animated things that triggers a redraw anyway.

At first i thought it was the driver (i use x11-drivers/xf86-video-ati-6.12.4 for a HD 4200 card embedded in an AMD chipset), so i've tried the latest svn (as of november 4th, 2009, gentoo has packages for this), but this did not solve the problem.

This is how i actually 'fixed' the problem : i've installed x11-base/xorg-server-1.6.5 instead of the x11-base/xorg-server-1.7.1 i was using. Now i dont have any more problem. I dont know if i need to put all version of all x11 related packages.

I was mostly using xorg-x11 7.5 i think. In order to move 'back' I had to go back for some few other packages, else it would not compile. Here are the packages i installed, in order:

 >>> x11-libs/libXinerama-1.0.3
 >>> x11-proto/xineramaproto-1.1.2
 >>> x11-proto/xextproto-7.0.5
 >>> x11-libs/libXext-1.0.5
 >>> x11-proto/fixesproto-4.0
 >>> x11-proto/recordproto-1.13.2
 >>> x11-libs/libXtst-1.0.3
 >>> x11-base/xorg-server-1.6.5
 >>> x11-drivers/xf86-input-evdev-2.3.0
 >>> x11-drivers/xf86-video-ati-6.12.4

The version i had previously were : 
 >>> x11-libs/libXinerama-1.1
 >>> x11-proto/xineramaproto-1.2
 >>> x11-proto/xextproto-7.1.1
 >>> x11-libs/libXext-1.1.1
 >>> x11-proto/fixesproto-4.1.1
 >>> x11-proto/recordproto-1.14
 >>> x11-libs/libXtst-1.1.0
 >>> x11-base/xorg-server-1.7.1
 >>> x11-drivers/xf86-input-evdev-2.3.0
 >>> x11-drivers/xf86-video-ati-6.12.4

(those last two i reinstalled even if those are the same versions because it's said to always do so when recompiling xorg-server).

I'm using a very recent kernel (2.6.32-rc6-hgfd14409ef74c, which is the latest 'git' version from start of november, i use the mercurial mirror), with the kernel radeon DRM loaded as module, but without KMS nor radeon framebuffer support, that is :
% grep RADEON .config
CONFIG_DRM_RADEON=m
# CONFIG_FB_RADEON is not set
# CONFIG_DRM_RADEON_KMS is not set

I'm using gentoo, and i can be found as 'orzel' on freenode if needed.
Comment 1 Thomas Capricelli 2009-11-05 15:09:10 UTC
Created attachment 30997 [details]
log file of the X.Org X Server 1.6.5 with good rendering
Comment 2 Thomas Capricelli 2009-11-05 15:10:27 UTC
Created attachment 30998 [details]
my xorg.conf. I did not change it between tests.
Comment 3 Thomas Capricelli 2009-11-12 01:03:59 UTC
Created attachment 31127 [details]
example 1

This is an example of what akregator looks like. As said, moving the mouse over redraw the toolbar and fixes the problem.
Comment 4 Thomas Capricelli 2009-11-12 01:04:48 UTC
Created attachment 31128 [details]
example 2

this is an example of display problem when using the scroll wheel under konqueror or firefox. I can't reproduce this using the pageup/down.
Comment 5 Thomas Capricelli 2009-11-12 01:05:45 UTC
Created attachment 31129 [details]
after redraw

this is what it should look like. i triggered a redraw to have this, from the previous image (by switching to desktop2 and back to desktop 1).
Comment 6 Thomas Capricelli 2009-11-12 01:06:49 UTC
I'm using gentoo. i was fearing that the bug was caused by some miscompilation. So i recompiled everything (all dependencies : 384 packages including xorg), in the right order. And the bug is still there. Just for information.
Comment 7 Thomas Capricelli 2009-11-18 17:16:30 UTC
guys, dont' laught at me, but i noticed only now that i had a bunch of such messages in the kernel:

[drm:radeon_cp_indirect] *ERROR* sending pending buffer 14
[drm:radeon_cp_indirect] *ERROR* sending pending buffer 20
[drm:radeon_cp_indirect] *ERROR* sending pending buffer 26
[drm:radeon_cp_indirect] *ERROR* sending pending buffer 1
[drm:radeon_cp_indirect] *ERROR* sending pending buffer 23
[drm:radeon_cp_indirect] *ERROR* sending pending buffer 4
[drm:radeon_cp_indirect] *ERROR* sending pending buffer 26


I guess it's related.. ?
Comment 8 Thomas Capricelli 2009-11-21 22:13:03 UTC
see also
https://bugzilla.redhat.com/show_bug.cgi?id=539571
https://bugzilla.redhat.com/show_bug.cgi?id=540050

Someone reported the same on opensuse mailing list, and suggests that it might be related to bug #24300
https://bugs.freedesktop.org/show_bug.cgi?id=24300

Probably also
https://bugs.freedesktop.org/show_bug.cgi?id=24771

On this bug, someone reports the bug could be fixed using git version of xf86-video-ati as of november 17th. 
My last try using git was the 12th and the bug was not fixed.
Comment 9 Adam Jackson 2018-06-12 18:43:25 UTC
Mass closure: This bug has been untouched for more than six years, and is not obviously still valid. Please file a new report if you continue to experience issues with a current server.

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.