Bug 187356 - graphical corruption in multiple applications with qt-4.5
Summary: graphical corruption in multiple applications with qt-4.5
Status: RESOLVED UPSTREAM
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: qt (show other bugs)
Version: 4.2
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 187684 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-17 01:46 UTC by Caleb Cushing
Modified: 2009-07-21 23:29 UTC (History)
16 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
graphical corruption screenshot (292.21 KB, image/png)
2009-03-17 01:47 UTC, Caleb Cushing
Details
new screenshot (189.47 KB, image/png)
2009-03-19 01:23 UTC, Caleb Cushing
Details
kmail (36.99 KB, image/png)
2009-03-21 13:27 UTC, Jithin Emmanuel
Details
dolphin (14.66 KB, image/png)
2009-03-21 13:27 UTC, Jithin Emmanuel
Details
Konversation corruption (45.50 KB, image/png)
2009-05-10 09:41 UTC, Mikko C.
Details
Screenshot of kontact with Akregator open (476.94 KB, image/png)
2009-05-13 08:04 UTC, Steffen Schloenvoigt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Cushing 2009-03-17 01:46:33 UTC
Version:            (using KDE 4.2.1)
Compiler:          gcc 4.3.3 
OS:                Linux
Installed from:    Gentoo Packages

images are worth 1000 words...

I experience corruption similar to that in the attached screenshot in many kde-4.2.1 apps. including kopete. I've not noticed it in gtk apps or smplayer (a qt 4 app built against 4.5)
Comment 1 Caleb Cushing 2009-03-17 01:47:03 UTC
Created attachment 32172 [details]
graphical corruption screenshot
Comment 2 Caleb Cushing 2009-03-17 03:01:29 UTC
I should note this was not and issue using qt-4.4
Comment 3 Andreas Pakulat 2009-03-17 11:10:32 UTC
Please find out how your Qt4.5 was built (ask your distribution packagers), if they used the configure switch -graphicssystem raster or -graphicssystem opengl then file a bugreport with your distribution. Thats simply wrong, enabling anything but the native graphicssystem on X11 will cause random applications to break in random ways - from painting errors as you see to crashes.
Comment 4 Marcus Harrison 2009-03-17 19:49:54 UTC
It's gentoo packages... wouldn't it be built from source?
Comment 5 Andreas Pakulat 2009-03-17 20:25:04 UTC
Yes, so what configure options where used when Qt was built?
Comment 6 Caleb Cushing 2009-03-17 21:10:20 UTC
http://bugs.gentoo.org/show_bug.cgi?id=262844 I've opened a downstream bug, to be sure. but I do not believe either were enabled... given useflag options.
Comment 7 Caleb Cushing 2009-03-19 01:23:30 UTC
Created attachment 32246 [details]
new screenshot

I recompiled qt, kdelibs,and okular making sure that both the opengl and raster use flags were disabled. meaning it should be at it's default... although I've still not gotten a confirmation from gentoo...

the problem seems to be less frequent and a bit different from this newly attached screenshot ...
Comment 8 Jaime Torres 2009-03-21 09:06:01 UTC
*** Bug 187684 has been marked as a duplicate of this bug. ***
Comment 9 Jithin Emmanuel 2009-03-21 13:25:02 UTC
I have noticed this problem in dragon player, amarok. dolphin, kmail.
In dragon player under full screen mode. the progress bar turn green but gets redrawn fast.
I am attaching the kmail and dolphin ones.
Comment 10 Jithin Emmanuel 2009-03-21 13:27:19 UTC
Created attachment 32314 [details]
kmail
Comment 11 Jithin Emmanuel 2009-03-21 13:27:56 UTC
Created attachment 32315 [details]
dolphin
Comment 12 Jithin Emmanuel 2009-03-21 13:29:01 UTC
I forgot to mention I am using kubuntu jaunty alpha 6 with kde 4.2.1 packages and qt 4.5
Comment 13 Caleb Cushing 2009-03-27 00:22:03 UTC
no, no special neither opengl, nor rasterization were used in my build of qt.
Comment 14 Jithin Emmanuel 2009-03-28 10:58:29 UTC
Why no one is looking in to this bug. This is the most annoying issue I encounter with kde. What ever kde application I use say quassel or amarok or dolphin or kate they have like huge holes through which we can see desktop.
Comment 15 Michael Pyne 2009-03-28 20:27:34 UTC
Well it's hard to pin down "Qt version changes, now KDE looks different".  What would be useful for troubleshooting is going through some of the following things:

* Does this happen with every style, or just Oxygen (or are there styles where this problem is not noted, etc.)
* Does this happen if KWin's Desktop Effects are disabled? (Configure Window Behavior in the right-click menu from any title bar)
* Does this happen if XOrg's Composite and Damage extensions are disabled?

If a KDE dev was running across this behavior there would be more feedback to the bug, so presumably it is not a common occurrence.  So lacking that it is important to make the bug as easy to reproduce and isolate as possible.  Screenshots are good to confirm the issue but all we know at this point is that there is an issue, which may even be a Qt and not a KDE bug for all we know.
Comment 16 Caleb Cushing 2009-03-29 00:36:04 UTC
issues do exist when compositing in kwin are disabled (compositing crashes more frequently these days). I can check my xorg.log at some point to see the status of compositing and damage as I don't actually configure an xorg.conf on my system.
Comment 17 Jithin Emmanuel 2009-03-29 06:53:37 UTC
I believe the problem is with oxygen. These are my observations.
1. With oxygen style , with or without kwin desktop effects. I have the graphical corruptions.
2. With plastique style, with or without kwin desktop effects , I do not have this problem.
Comment 18 Giovanni Masucci 2009-04-03 13:31:27 UTC
Sorry to say but this bug should be reopened: it also affects intel video cards, the bug has been forwarded to intel who answered that the problem is in the application, not in X or in the drivers. This is somehow related to the update to qt 4.5, since there were no problems before (and no problems with gtk apps too)...
see a discussion about it here:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/338669
from my experience, it seems to happen mostly with oxygen style. Since I use qtcurve, it only happens in skype,  from time ti time...don't know why...
Comment 19 Caleb Cushing 2009-04-03 16:10:57 UTC
I see the problem affecting the window manager at times too... I get a weird bluish overlay hiding part of konversation when taskbar stuff pops up, it goes away and leaves it hidden... it's possible it's a bug related to intel, I have an i915. this info should help narrow it down, it's also possible it's a qt bug, but as a non developer it's hard for me to say, if you can discern that, it'd be nice for a dev to explain the issue (or perceived) to the qt devs and link back here.
Comment 20 Michael Pyne 2009-04-03 23:02:00 UTC
Giovanni, this bug is still open, but I'll mark it as NEW rather than UNCONFIRMED based on the number of users confirming it.
Comment 21 Aaron J. Seigo 2009-04-03 23:25:39 UTC
a) this is precisely why we cautioned against shipping Qt 4.5 with KDE 4.2. once again, distros didn't listen, and once again, we get to deal with the bug reports and our users get to deal with bugs they shouldn't have to.

b) this is probably some odd bug in Qt 4.5, though it may well be triggered by oxygen. it could also be a fun interaction between Qt 4.5 and the graphics driver ... but i haven't seen this problem and don't know how to duplicate it. but then, i'm using svn trunk/ (what will be KDE 4.3), know that everything is built against Qt 4.5, etc. and yes, i also have an an intel chipset in this laptop.

i haven't heard about this problem from others who are running trunk, either, and we are _all_ using Qt 4.5 there, so that's even more suspicious.

so ... when the first betas of KDE 4.3 come out, the reporters should install it and test against that. if the problems magically go away then we can chalk this up once again to distros ignoring upstream's recommendations.

if it still exists in the betas, then we will need to find a hardware/driver/application/use case combination that we can reproduce this on and then get it fixed before KDE 4.3.0 is released.
Comment 22 Caleb Cushing 2009-04-03 23:41:12 UTC
in the case of our distro, qt-4.5 is available but not stable, 4.4 is... so one could suggest it's the users fault for using it. if it was a binary/non-rolling I'd say we shouldn't have packaged it at all... I would like to say... that kde and distro's need to start working together, for binary distro's this would be the second time they've screwed up when kde said don't do it.
Comment 23 Aaron J. Seigo 2009-04-03 23:42:37 UTC
i just found a way to reproduce it, i think! if i put Dragon Player into full screen mode the toolbar is painted at first with graphical corruption similar to the screenshots.

now to figure out why it would happen in that case ... hmmm.
Comment 24 Marcus Harrison 2009-04-04 10:44:20 UTC
The issue with Dragon player seems different to the issues stated above: even though Dragon player's progress bar has corruption regardless of which computer I'm using or which graphics card I'm using, I can't re-produce the corruption in the Oxygen theme... with Intel or nVidia graphics cards.
Comment 25 Caleb Cushing 2009-04-04 15:51:18 UTC
I'll be honest... I'm not sure what the corruption I see in some cases would have to do with oxygen, such as that rendering in okular, or sometimes when the window manager leaves glyphs on an open window after something over top of it hides.
Comment 26 Jithin Emmanuel 2009-04-16 08:32:36 UTC
Is there any work around for this bug other than using qt 4.4.
Comment 27 Papadakos Panagiotis 2009-04-20 22:51:44 UTC
I have the same problem, using the latest xf-video-ati driver from GIT with EXA.
Changing the style from Oxygen to QtCurve seems to work for me. Probably we have
to report this bug to the trolls?
Comment 28 Steffen Schloenvoigt 2009-04-21 15:44:32 UTC
I experience the same issue on openSuse 11.1 with KDE4 UNSTABLE packages and both the Qt and the Qt45 (which are a little bit newer) repositories enabled.

I'm using the radeon driver for my Radeon Mobility X1400 on a T60.
The problem seems to occur only after some time or after an suspend to ram -> resume cycle. When fresh booted, the issue isn't this frequent.

I experience the problem especially when using kontact/akregator and opening/closing yakuake. After yakuake is closed, the corruption remains in some of the parts that were hidden by it before.
Comment 29 Gabriel 2009-05-01 05:26:46 UTC
b) this is probably some odd bug in Qt 4.5, though it may well be triggered by
oxygen.

I think this is the case. My KDE provider KDEmod http://chakra-project.org/ compiled 4.2 against qt 4.5 and I can get rid of this bug simply by switching to the qt-curve theme. If this doesn't appear in trunk it may have been a bug in Oxygen? Maybe it was already fixed by the trolls? It's definitely a weird case. Anyway I will fix a bug with KDEmod so that they listen to KDE devs!
Comment 30 ned 2009-05-04 15:25:10 UTC
I'm not using oxygen for anything, I don't get this bug except in text canvases - ie. in kate's editing pane.

full description and screenshots here: https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/371114

subscribing
Comment 31 Steffen Schloenvoigt 2009-05-08 08:45:28 UTC
Hmm, switched to QtCurve yesterday and the corruption hasn't occured since. What I suspect is, that it is a problem when painting gradients or how plasma does it since it mostly affects parts of widgets where there are gradients used (like the upper third of a window).
Comment 32 Steffen Schloenvoigt 2009-05-08 08:47:22 UTC
Sorry, meant of course how oxygen does paint gradients, not plasma.
Comment 33 Caleb Cushing 2009-05-09 22:29:26 UTC
I haven't noticed this in 4.2.3 w/ qt 4.5.1 yet... doesn't mean it's not there...
Comment 34 Aaron J. Seigo 2009-05-10 02:27:53 UTC
anyone else seeing this still with qt 4.5.1?
Comment 35 Mikko C. 2009-05-10 09:41:36 UTC
Created attachment 33507 [details]
Konversation corruption

Not sure if it's the same kind of corruption but I often get this in Konversation.
Using Qt 4.5.1 and KDE 4.3 from svn.
Comment 36 ned 2009-05-11 02:57:03 UTC
I'm still seeing it in 4.2.3 w/ qt 4.5.1.
Comment 37 Steffen Schloenvoigt 2009-05-12 22:25:02 UTC
Still seeing it with KDE 4.2.85 / Qt 4.5.1 when Oxygen is used as widget theme.
Doesn't happen e.g. with Qt Curve. 
Experiencing it mainly in kontact.
It doesn't matter if effects are on or not.
Comment 38 Steffen Schloenvoigt 2009-05-13 08:04:42 UTC
Created attachment 33604 [details]
Screenshot of kontact with Akregator open

As already said, it happens only with Oxygen and only in the upper third / quarter of the app where Oxygen is painting a gradient.
Comment 39 Jithin Emmanuel 2009-05-13 08:08:59 UTC
There is only users commenting here I see this ot I dont see this issue. Can an y KDE devs comment on what's actually happening?
Comment 40 Rex Dieter 2009-05-13 15:12:23 UTC
qt-4.5.x tickles a few X/video driver bugs it seems, comment #38 is one, by the looks of it.
Comment 41 Fredy Yanardi 2009-05-20 16:58:43 UTC
I also have the same problem, with Qt 4.5.1, my video card is Intel 945.

This happens to both KDE 4.2.2 and KDE 4.3 trunk (4.2.85), but only with oxygen style.

For cleanlooks style, sometimes the artifacts seen but much less compared to oxygen style. As a workaround now I use polyester style.
Comment 42 Fredy Yanardi 2009-07-18 04:42:32 UTC
The artifacts were gone after I upgraded xserver-xorg-core from version 1.6.1 to 1.6.2. So seems that this is an upstream bug and has been resolved upstream as well.
Comment 43 Michael Pyne 2009-07-21 04:10:28 UTC
Can anyone else confirm this who previously experienced this bug after upgrading xserver-xorg-core to 1.6.2?  (Also known as xorg-server on at least Gentoo)
Comment 44 Mikko C. 2009-07-21 08:44:52 UTC
(In reply to comment #43)
> Can anyone else confirm this who previously experienced this bug after
> upgrading xserver-xorg-core to 1.6.2?  (Also known as xorg-server on at least
> Gentoo)

Yep, I haven't seen this corruption for a while now (I've been using 1.6.2 RCs too).
Comment 45 Steffen Schloenvoigt 2009-07-21 10:33:16 UTC
Yeah, one of the last upgrades to xorg-x11-server (from openSUSE XOrg repo) seems to have fixed the issue. Can't see these corruptions anymore. Thank you very much!
Comment 46 Jure Repinc 2009-07-21 15:57:08 UTC
Same here, on both, Mandriva and Gentoo, Xorg Server 1.6.2 fixed the problem
Comment 47 Papadakos Panagiotis 2009-07-21 16:21:05 UTC
I still see the corruption with 1.6.2-rc1. So it must have been fixed in rc2.
I will test it and report back.
Comment 48 Papadakos Panagiotis 2009-07-21 17:29:04 UTC
Well up to now no corruption with 1.6.2!
Comment 49 Michael Pyne 2009-07-21 23:29:57 UTC
Sounds like we have a fix then, install xorg server 1.6.2 and things seem fixed.