Bug 116722

Summary: Workspace switcher and Window List applets hang / panel problems with ssh-add
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Bodo Bauer <bodo.bauer>
Component: GNOMEAssignee: Gary Ekker <gekker>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: aj, ensonic, mhsvoice
Version: RC 2   
Target Milestone: ---   
Hardware: x86-64   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Bodo Bauer 2005-09-13 09:27:40 UTC
Setup:

- Fresh SL10.0 RC2 installation (selection Gnome Desktop)
- One local user (autologin)
- No (active) NIC

- For the user I cipied .xinitrc.template to .xinitrc and changed the 
  call of the windowmanager to 'exec ssh-agent $WINDOWMANAGER'

When I login the Workspace switcher and Window List applets in the bottom panel
are present, but are not working (ie clicks are ingnored, if I set the panel to
'autohide', they don't refresh when the panel rolls up)

When I log out and log in again, I get the message:

'I've detected a panel already running and will now exit'

And no panel at all is on the desktop. The only way to exit the deesktop now is
to kill X by pressing Ctrl-Alt-Bs. But now X doesn't come up at all again.

So I kill all processes that left over by the user, run init3 ; init 5 to get X
back and log in again. Suprisingly enough, now the applets work as expected.

The problem comes back again when I run ssh-add (Alt-F2 -> ssh-add) and enter my
passphrase. From there on the two applets stop working. If I run ssh-add from a
terminal window, they continue to work fine.
Comment 1 Chris Lahey 2005-09-13 14:14:13 UTC
gnome-session is already running an ssh-agent.  Try removing your changes to
xinitrc and using that ssh-agent?  I suspect changing that .xinitrc is changing
how the gnome-session starts up and that's messing things up.
Comment 2 Bodo Bauer 2005-09-13 14:38:55 UTC
Interesting :) I tried removing the explicit call of ssh-agent from my .xinitrc
(ie using an exact copy of .xinitrc.template). This resulted in no ssh-agent
running. Then I removed my .xinitrc all along and now there is an ssh-agent
present. The problem however is exaclty as I had it before.

This makes the bug even more severe, as now I relly didn't change anything, but
use the vanilla setup.
Comment 3 Bodo Bauer 2005-09-13 15:05:44 UTC
It's even worse. As soon as ssh-add comes up (before I enter a password, the
system load goes up to 100%. Looking at top reveals that wnck-applet is eating
up all the CPU cycles.

Comment 4 JP Rosevear 2005-09-20 12:25:58 UTC
Moving to Chris to keep following up.
Comment 5 Mark Voelker 2006-01-26 05:29:07 UTC
I'm seeing the same CPU/wnck-applet issues that Bodo is seeing in my fresh install of SuSE 10.0 OSS.  As soon as I log in, I see CPU spiked to near 100% with the culprit being wnck-applet.  If I kill wnck-applet, I get four popop error messages saying that Workspace Switcher, Window List, Show Desktop, and Window Selector have quit unexpectedly.  If I click the "reload" button in each window, things are all back to normal (no CPU pegging).  This happens without fail every time I log in.  I have no ~/.xinitrc file.

mtvoelke@magnus:~> cat /etc/SuSE-release
SUSE LINUX 10.0 (i586) OSS
VERSION = 10.0
mtvoelke@magnus:~>
Comment 6 JP Rosevear 2006-02-16 04:38:28 UTC
Mark, do you have your own .xinitrc as well?  Do you also have no network?
Comment 7 Mark Voelker 2006-02-17 03:54:23 UTC
I do not have a .xinitrc file.  Typically when I boot up I do have networking up (including getting a DHCP lease complete with IP, netmask, DNS servers, and default route).  Networking is usually wireless, although I see the same problem when using a wired network.
Comment 8 Dan Winship 2006-02-24 20:40:25 UTC
*** Bug 105516 has been marked as a duplicate of this bug. ***
Comment 9 Dan Winship 2006-02-24 21:14:00 UTC
Upstream bug is http://bugzilla.gnome.org/show_bug.cgi?id=332493

I'm going to wait a day or two to see if the libwnck maintainers comment
on the patch before committing it to autobuild.
Comment 10 Dan Winship 2006-02-28 19:33:22 UTC
Fixed in SUSE 10.1
Comment 11 Mark Voelker 2006-03-01 14:44:30 UTC
(In reply to comment #10)
> Fixed in SUSE 10.1
> 

Thanks Dan!  For SuSE 10.0 OSS I installed libwnck-2.12.0-3.src.rpm, applied the following patch, rebuilt, and reinstalled.  This fixed the CPU-consumption problem for me in 10.0.

--- window.c    2005-07-19 04:18:04.000000000 -0600
+++ /usr/src/packages/SOURCES/libwnck-2.12.0/libwnck/window.c   2006-03-01 07:22:08.000000000 -0700
@@ -2126,7 +2126,7 @@

   if (_wnck_get_window (window->priv->xwindow,
                         _wnck_atom_get ("WM_TRANSIENT_FOR"),
-                        &parent))
+                        &parent) && parent != window->priv->xwindow)
     {
Comment 12 Stefan Sauer 2006-03-01 14:55:07 UTC
where have you found the source.rpm? Can't this go into online_update for 10.0?
Comment 13 Dan Winship 2006-03-01 17:29:34 UTC
yes...
Comment 14 Dan Winship 2006-03-01 17:30:25 UTC
AJ, we need a SWAMPID to get this into SUSE 10.0
Comment 15 Andreas Jaeger 2006-03-01 19:45:42 UTC
Approved,   	 Maintenance-Tracker-3709
Comment 16 Dan Winship 2006-03-01 19:50:50 UTC
Gary, JP said to reassign this to you. (I'll forward you the SWAMPID mail.)
Comment 17 Mark Voelker 2006-03-02 15:23:51 UTC
(In reply to comment #12)
> where have you found the source.rpm? Can't this go into online_update for 10.0?
> 

http://mirrors.kernel.org/opensuse/distribution/SL-10.0-OSS/inst-source/suse/src/libwnck-2.12.0-3.src.rpm
Comment 18 Ruediger Oertel 2006-03-02 17:29:00 UTC
ok, please submit a patchinfo file to done/PATCHINFO
Comment 19 Gary Ekker 2006-03-02 17:34:23 UTC
This fix is submitted for 10.0 maintenance update as well.

You found the submission without the patchinfo in the few seconds it took me to submit it :-).
Comment 20 Gary Ekker 2006-03-02 17:35:03 UTC
Marking as fixed.
Comment 21 Anja Stock 2006-03-06 12:12:22 UTC
released