Bug 170283 - Icons in systray plasmoid don't show anymore with recent Xorg
Summary: Icons in systray plasmoid don't show anymore with recent Xorg
Status: RESOLVED WORKSFORME
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-systemtray (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 170845 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-03 00:31 UTC by Thomas Bächler
Modified: 2009-04-09 19:16 UTC (History)
15 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bächler 2008-09-03 00:31:31 UTC
Version:            (using KDE 4.1.1)
Compiler:          gcc 4.3 
OS:                Linux
Installed from:    Unspecified Linux

I've been using KDE 4.1.1 with qt 4.4.1 for some time without problems in the systray plasmoid.

Then I updated the xorg-server from 1.4.2 to 1.4.99.906 (1.5 prerelease), mesa from 7.0.2 to 7.1 and the xorg intel driver from 2.3.2 to 2.4.2. This fixes lots of bad memory leaks in the xorg/mesa/inteldriver combination.

However, since that update, the systray plasmoid shows no icons anymore. Instead it shows only parts from somewhere else on the screen. This is a screenshot: http://dev.archlinux.org/~thomas/weird.jpeg

Removing and readding the systray plasmoid does NOT help (unlike 168007), neither does disabling compositing.

This is archlinux x86_64 with the latest packages for xorg, kde and qt.
Comment 1 Thomas Bächler 2008-09-10 13:35:49 UTC
This problem was caused by the intel driver. The following in xorg.conf
 Option "MigrationHeuristic" "Greedy"
was necessary with older versions to give composite decent speed. But in the newer X/intel versions, it seems to cause this bug. Removing this option fixed it (and compositing is still fast).
Comment 2 Jason Stubbs 2008-09-11 11:05:03 UTC
*** Bug 170845 has been marked as a duplicate of this bug. ***
Comment 3 Elias Probst 2008-09-11 18:33:18 UTC
I have the same problem here since doing the update of X/Mesa (same versions as the reporter, but on Gentoo x86).
But since I'm not using the Intel driver (radeon on a ATI Mobile x1600) it seems to be not related to the driver option.

Does anyone know a solution for this? Is it a Qt/KDE/Plasma bug?
I don't have compositing enabled.

I'm running KDE/Plasma from trunk (r859852).
Comment 4 Jason Stubbs 2008-09-12 03:16:02 UTC
Are you using Option "MigrationHeuristic" "Greedy" and does it work without that option? It's not necessarily an Intel-only issue.
Comment 5 Elias Probst 2008-09-12 10:06:18 UTC
Didn't use
Option "MigrationHeuristic" "greedy"
yet, so it shouldn't have affected me.
I tried using it with the 'smart' option, but this didn't change anything.

In the end: still no working systray and I'm not sure, whether this is a X/Mesa or a KDE issue.
Comment 6 Elias Probst 2008-09-15 22:49:09 UTC
As suggested by fredrikh on #plasma I've updated X now to 1.5 but the issue still remains.
Comment 7 Bernd Steinhauser 2008-10-02 21:22:40 UTC
(In reply to comment #4)
> Are you using Option "MigrationHeuristic" "Greedy" and does it work without
> that option? It's not necessarily an Intel-only issue.
> 

I've got a radeon card, too (X200M) and removing that option fixed it for me, on X.org server 1.5.1.
Comment 8 Elias Probst 2008-10-05 16:11:20 UTC
I have upgraded now to:
media-libs/mesa-7.2
x11-libs/pixman-0.12.0
x11-base/xorg-server-1.5.1
and it is still the same.
    Option "MigrationHeuristic" "somevalue"
was removed from xorg.conf

Comment 9 auxsvr 2008-10-09 19:49:36 UTC
Removing MigrationHeuristic makes systray icons appear again here, using KDE 4.1.2, radeon, Xorg 1.5.1.
Comment 10 Maarten Wisse 2008-10-16 21:04:05 UTC
You saved my day! Or week, or whatever. Yes, removing the Migrationheuristic thing works here too, with Mesa 7.2, xorg-server 1.5.2 on Gentoo, intel driver 2.4.2-r1. Honestly, I worked with distorted systray-icons for a week or so. You cannot imagine how annoying that is!
Comment 11 Elias Probst 2008-10-17 08:52:19 UTC
Ok, after a global system update (KDE4 from trunk, xorg, mesa, ...) it works now too when removing MigrationHeuristic.

I think this bug is 'fixed'.
Comment 12 Bernd Steinhauser 2008-11-04 01:50:56 UTC
I noticed that removing MigrationHeuristic=greedy introduces another weird behavior here:

With Option      "MigrationHeuristic" "greedy", the systray icons aren't shown or shown wrong, just like described in this bug, everything else works fine.

Without Option      "MigrationHeuristic" "greedy", the desktop has redrawing issues, but the systray icons work.

So, I'm not sure if the bug is here (meaning that the systray stuff should work with the greedy setting) or if the bug is somewhere else where it should work without.
Maybe both are bugs, but I'm not sure if this is really fixed.
Using a radeon X200M with xorg-server 1.5.2. Radeon driver is trunk.
Comment 13 alfas 2008-11-10 00:10:38 UTC
Strange that this bug is marked as fixed I am having the same problem. If it is fixed, when fix is going to be released?
Comment 14 Harald Hvaal 2008-11-11 06:50:25 UTC
Agreed, it does not make sense that the bug is marked fixed just because someone found out how to work around the bug (a workaround that slows down kwin performance considerably).
Comment 15 Jason Stubbs 2008-11-11 07:22:04 UTC
If it works without composite but doesn't work with composite then there's not really much point in investigating this bug until bug 158094 is fixed.

If it doesn't work even when composite isn't enabled, it's an upstream (probably xorg if multiple drivers fail) issue.
Comment 16 Jason Stubbs 2008-11-11 07:41:42 UTC
Oh, and I assume this bug is still a problem when using trunk?
Comment 17 Bernd Steinhauser 2008-11-11 13:36:25 UTC
(In reply to comment #16)
> Oh, and I assume this bug is still a problem when using trunk?
> 

At least with 4.1.72, it is.
Comment 18 Rahul Jain 2008-11-18 20:44:11 UTC
(In reply to comment #1)
> This problem was caused by the intel driver. The following in xorg.conf
>  Option "MigrationHeuristic" "Greedy"
> was necessary with older versions to give composite decent speed. But in the
> newer X/intel versions, it seems to cause this bug. Removing this option fixed
> it (and compositing is still fast).
> 

This solved my problem - and I had this issue for nearly 4 months now - was looking at the wrong bug report (158094) all the time.

Thanks!
Comment 19 Eduardo Durany Fernández 2008-12-10 00:25:24 UTC
Why is this bug marked as "RESOLVED"?

Option "MigrationHeuristic" "Greedy" is a must have in my system if i want to enjoy textured video with kwin effects.

Please reopen this bug report.

Video driver: radeon
KDE: 4.2 beta 1
Comment 20 Paulo Cesar 2008-12-12 13:30:43 UTC
This bug isn't resolved, we still have systray corruption with Option "MigrationHeuristic" "Greedy"
Comment 21 Aaron J. Seigo 2008-12-12 20:21:59 UTC
@Eduardo Durany Fernández: "Option "MigrationHeuristic" "Greedy" is a must have in my system if i want to enjoy textured video with kwin effects. "

so complain to your graphics driver maker. re-opening this report won't fix the drivers.

@Paulo Cesar: "This bug isn't resolved, we still have systray corruption with Option "MigrationHeuristic" "Greedy""

corruption can happen for 3 reasons that we've discovered:

* a bug in plasma
* a bug in the driver (which this report is)
* a bug in the toolkit libraries (either the build of it, as seen briefly in one OpenSUSE Qt build, or in the actual toolkit)

we've got the toolkits up to snuff now (though some of those patches won't see release until sometime in 2009), but there are still problems in x.org drivers.

and there's nothing we (plasma, kde) can do about that other than let them know about their problems. but a driver bug is not our bug, and not a reason to keep a report open here.
Comment 22 Paulo Cesar 2008-12-12 20:41:36 UTC
sorry, i didn't saw it was a driver bug.. 
Comment 23 Eduardo Durany Fernández 2008-12-12 22:32:08 UTC
Bug's comments did not clarify whether it is a driver or a plasma bug (until now hehe).
When i saw this behavior in the systray, i looked at the web and found this bug in kde bugzilla, so i assumed it was a bug in plasma. Now that you have clarified this i will open a new bug report in freedesktop.
Comment 24 Elias Probst 2008-12-16 13:03:07 UTC
Please post a link to the freedesktop.org bug here for reference.
Comment 25 Eduardo Durany Fernández 2008-12-16 19:39:46 UTC
http://bugs.freedesktop.org/show_bug.cgi?id=19059

But it's already closed. "MigrationHeuristic greedy" is a dead end.
Comment 26 Roman 2009-03-22 19:32:16 UTC
Also see this bug: http://bugs.freedesktop.org/show_bug.cgi?id=16773

why intel driver suppoter dont want to fix bug with migrationheuristic=greedy? for me it's the only possiblity to have reasonable perfomance. but with this option my systray is dead! :(
Comment 27 Roman 2009-04-09 19:16:42 UTC
Dear developers,

can you please answer why nobody is trying to fix this bug? It's irritating me very much :( they are saying it's old.. but I don't want to buy new video card!

I dont know anything about video drivers, but I'm willing to spend some time to fix this issue.. if there is somebody who can give me some hints.

Hope somebody will answer.