Bug 205474 - System tray on the desktop has corrupted icons
Summary: System tray on the desktop has corrupted icons
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasma4
Classification: Unmaintained
Component: widget-systemtray (show other bugs)
Version: unspecified
Platform: Debian testing Unspecified
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 205475 205478 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-28 12:59 UTC by Alan Jenkins
Modified: 2010-08-09 14:16 UTC (History)
4 users (show)

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


Attachments
Screenshot of corrupted systray icons (24.77 KB, image/png)
2009-08-28 12:59 UTC, Alan Jenkins
Details
Messed up Sytsem tray icons (70.37 KB, image/png)
2010-03-25 10:23 UTC, DonMartio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Jenkins 2009-08-28 12:59:00 UTC
Version:            (using KDE 4.3.0)
Installed from:    Debian testing/unstable Packages

If I remove the system tray from the panel, and use the add widgets dialog to add it to the desktop, the icons are corrupted.

This may be because it starts off quite small, and I have to increase it's size to see all the icons.  It doesn't happen if I drag the system tray from the panel to the desktop.
Comment 1 Alan Jenkins 2009-08-28 12:59:35 UTC
Created attachment 36532 [details]
Screenshot of corrupted systray icons
Comment 2 Aaron J. Seigo 2009-08-28 18:53:09 UTC
*** Bug 205475 has been marked as a duplicate of this bug. ***
Comment 3 Aaron J. Seigo 2009-08-28 18:53:22 UTC
*** Bug 205478 has been marked as a duplicate of this bug. ***
Comment 4 Aaron J. Seigo 2009-08-28 18:57:50 UTC
the other reports happen to be the same issue due to different causes.

in our experience, these issues are almost _always_ due to x.org configuration options, x.org drivers and/or Qt versions. this does not rule out a bug in plasma, however, so i'm not closing it immediately.

do you happen to be running plasma with KDE_SKIP_ARGB_VISUALS=1?
do you have desktop effects on? if so, does this issue improve if they are turned off?
Comment 5 Alan Jenkins 2009-08-28 19:20:07 UTC
(In reply to comment #4)
> the other reports happen to be the same issue due to different causes.
> 
> in our experience, these issues are almost _always_ due to x.org configuration
> options, x.org drivers and/or Qt versions. this does not rule out a bug in
> plasma, however, so i'm not closing it immediately.

Ok.  This is a fresh (7 day old) install of debian unstable, on Intel 965 graphics.  

I've not editted xorg.conf, and it looks like it doesn't even exist.

Qt looks to be version 4.5.2-2.


> do you happen to be running plasma with KDE_SKIP_ARGB_VISUALS=1?

No.

> do you have desktop effects on?

Yes

> if so, does this issue improve if they are
> turned off?

No.
Comment 6 Dario Andres 2009-08-28 21:17:43 UTC
Can you check the combinations of bug 192919 comment 18 ?
Thanks
Comment 7 Alan Jenkins 2009-08-30 11:52:52 UTC
Disabling compositing fixes the issues with corrupted icons and undrawn icons.
However it does not fix Bug 205478, where dragging the system tray onto the panel leaves an artefact on the desktop.

As mentioned before, simply disabling desktop effects has no impact.

Bug 205478 appears to be caused by icons overflowing the widget.  When I drag the system tray from the panel to the desktop, it is a bit too small and the Kmix icon lies outside it's bounds.  If I make the system tray big enough before dragging it back to the panel, the artefact does not appear.
Comment 8 DonMartio 2010-03-25 10:22:29 UTC
I have a similar annoying behaviour here.

Icons are rendered on each other.
Steps to reproduce here:

1. Add the Systemtray (when the icons are messed up).
2. In Konqueror click right mous button.

When the context menu is displayed the icons are messed up.

Disabling composite doesn't change the behaviour.
Comment 9 DonMartio 2010-03-25 10:23:21 UTC
Created attachment 42248 [details]
Messed up Sytsem tray icons
Comment 10 DonMartio 2010-03-26 09:14:45 UTC
Ok, this is weird. If i do the steps above the (click the right mouse button) the Systemtray is repainted and the icons are randomly messed up.

If i remove the system tray after this and add it again, the error is gone. No repaints when a context menu is created.

Any suggestions out there?
Comment 11 Aaron J. Seigo 2010-05-14 04:14:09 UTC
i think we've put as much effort as we will be into the xembed icon system at this point; we've moved on to the new dbus system and consider the xembed system legacy. it's supported as well as we can get it to be at this point.
Comment 12 DonMartio 2010-05-14 13:30:49 UTC
Well, it's the kded4 that crashes.

When i reproduce the error with strace attached i get a lot of these:

close(1022)                             = -1 EBADF (Bad file descriptor)
close(1023)                             = -1 EBADF (Bad file descriptor)

...

write(2, "KCrash: Application 'kded4' cras"..., 40) = 40
rt_sigaction(SIGSEGV, {SIG_DFL, [SEGV], SA_RESTART}, {SIG_DFL, [SEGV], SA_RESTART}, 8) = 0
rt_sigaction(SIGBUS, {SIG_DFL, [BUS], SA_RESTART}, {SIG_DFL, [BUS], SA_RESTART}, 8) = 0
rt_sigaction(SIGFPE, {SIG_DFL, [FPE], SA_RESTART}, {SIG_DFL, [FPE], SA_RESTART}, 8) = 0
rt_sigaction(SIGILL, {SIG_DFL, [ILL], SA_RESTART}, {SIG_DFL, [ILL], SA_RESTART}, 8) = 0
rt_sigaction(SIGABRT, {SIG_DFL, [ABRT], SA_RESTART}, {SIG_DFL, [ABRT], SA_RESTART}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [ILL ABRT BUS FPE SEGV], NULL, 8) = 0
tgkill(12198, 12198, SIGSEGV)           = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 12198 detached

I'll compile kdelibs with debug symbols enabled. may i can see what happens there.
Comment 13 DonMartio 2010-08-09 14:16:24 UTC
The messed up system tray was still there until now.
I became a good friend of gdb lately and this morning
i attached it to the kded. Left click on some folder in konqueror
and i got this:

Program received signal SIGSEGV, Segmentation fault.
0xb3801bbd in apr_pool_cleanup_register () from /usr/lib/libapr-1.so.0
(gdb) bt
#0  0xb3801bbd in apr_pool_cleanup_register () from /usr/lib/libapr-1.so.0
#1  0xb3937100 in svn_fs_initialize () from /usr/lib/libsvn_fs-1.so.0
#2  0xb36d9d5b in svn_ra_local__init () from /usr/lib/libsvn_ra_local-1.so.0
#3  0xb392fbe6 in svn_ra_open3 () from /usr/lib/libsvn_ra-1.so.0
#4  0xb397d583 in svn_client__open_ra_session_internal () from
/usr/lib/libsvn_client-1.so.0
#5  0xb397dc86 in svn_client__ra_session_from_path () from
/usr/lib/libsvn_client-1.so.0
#6  0xb396a3e3 in svn_client_list2 () from /usr/lib/libsvn_client-1.so.0
#7  0xb3ae700c in ?? () from /usr/lib/libsvnqt.so.6
#8  0xb3aec53e in ?? () from /usr/lib/libsvnqt.so.6
#9  0xb3b4c821 in ?? () from /usr/lib/kde4/kded_kdesvnd.so
#10 0xb3b4d64a in ?? () from /usr/lib/kde4/kded_kdesvnd.so
#11 0xb3b4da9e in ?? () from /usr/lib/kde4/kded_kdesvnd.so
#12 0xb3b53750 in ?? () from /usr/lib/kde4/kded_kdesvnd.so
#13 0xb3b53bbc in ?? () from /usr/lib/kde4/kded_kdesvnd.so
#14 0xb6edfb7b in ?? () from /usr/lib/qt4/libQtDBus.so.4
#15 0xb6ee0d34 in ?? () from /usr/lib/qt4/libQtDBus.so.4
#16 0xb6ee1765 in ?? () from /usr/lib/qt4/libQtDBus.so.4
#17 0xb6ee19f4 in ?? () from /usr/lib/qt4/libQtDBus.so.4
#18 0xb6dbf756 in QObject::event(QEvent*) () from /usr/lib/qt4/libQtCore.so.4
#19 0xb61dd088 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
from /usr/lib/qt4/libQtGui.so.4
#20 0xb61e407b in QApplication::notify(QObject*, QEvent*) () from
/usr/lib/qt4/libQtGui.so.4
#21 0xb738bd5d in KApplication::notify(QObject*, QEvent*) () from
/usr/lib/libkdeui.so.5
#22 0xb6dafe28 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from
/usr/lib/qt4/libQtCore.so.4
#23 0xb6db351b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int,
QThreadData*) () from /usr/lib/qt4/libQtCore.so.4
#24 0xb6db3681 in QCoreApplication::sendPostedEvents(QObject*, int) () from
/usr/lib/qt4/libQtCore.so.4
#25 0xb6dd92c6 in ?? () from /usr/lib/qt4/libQtCore.so.4
#26 0xb5a38792 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#27 0xb5a3c042 in ?? () from /usr/lib/libglib-2.0.so.0
#28 0x096b1e90 in ?? ()
#29 0x00000000 in ?? ()

as you can see the crash initator was some svn stuff. I unmerged kdesvn and
now the error is gone. 
I don't realy need kdesvn since i use konsole most of the time. But
this may be a bug to be fixed.