Bug 136469 - knetworkmanager freezes if kwallet doesn't open immediately
Summary: knetworkmanager freezes if kwallet doesn't open immediately
Status: RESOLVED FIXED
Alias: None
Product: knetworkmanager
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Will Stephenson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-29 20:04 UTC by Michael Blakeley
Modified: 2007-06-13 19:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Syslog for KNetworkManager hang (2.54 KB, text/plain)
2006-12-05 17:40 UTC, Rob Hasselbaum
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Blakeley 2006-10-29 20:04:32 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Ubuntu Packages
OS:                Linux

I mostly use knetworkmanager with encrypted wifi networks, on a laptop (HP nc6400, 2-GB, edgy up-to-date per 'wajig daily-upgrade' 15 minutes ago). When I log in, I see a kwallet password prompt, asking if I'd like to allow knetworkmanager (or sometimes dcop) access.

When I type my password immediately, everything is fine. But I use session autoresume in kde, so sometimes various programs are launching and I can't immediately type in my password. When this happens, kwallet still appears to open ok, but knetworkmanager appears to freeze: its icon in the systray disappears, leaving just an empty square. Neither right-clicking nor left-clicking in that space does anything.

This problem has been discussed on the ubuntu forums: http://ubuntuforums.org/showthread.php?t=280571 and has also been reported in suse: https://bugzilla.novell.com/show_bug.cgi?id=206641 - the suse report suggests that it's a deadlock.

Workaround: kill knetworkmanager, then use ALT-F2 to start it again.

$ pgrep -f knetworkmanager | xargs kill

$ apt-show-versions knetworkmanager
knetworkmanager/edgy uptodate 0.1-0ubuntu1
Comment 1 Rob Hasselbaum 2006-12-05 17:40:33 UTC
Created attachment 18802 [details]
Syslog for KNetworkManager hang

Same problem here. Although I have the KWalletManager password set to blank, so
I don't get prompted for it. But I sometimes get the same behavior in which
there's just a blank icon in the tray and the connection does not start up.
This happens about 1 out of every 5 boot-ups.

I have attached part of the syslog for one episode.
Comment 2 Rob Hasselbaum 2006-12-05 17:49:01 UTC
Separate bugs have been filed for Kubuntu (#69118) and SUSE (#206641). Seems to be the same one.
Comment 3 Olivier Trichet 2007-01-28 12:45:17 UTC
I had the same problem. I solved it by adding the following line to .desktop file of knetworkmanager :
X-DCOP-ServiceType=Unique

See the documentation at : http://developer.kde.org/documentation/library/cvs-api/kdelibs-apidocs/kdecore/html/classKApplication.html
and http://developer.kde.org/documentation/library/cvs-api/kdelibs-apidocs/kdecore/html/classKUniqueApplication.html
Comment 4 Olivier Trichet 2007-01-29 20:24:30 UTC
*** This bug has been confirmed by popular vote. ***
Comment 5 Maiko Herajin 2007-02-21 04:41:52 UTC
I can confirm that this bug exists, although I'm afraid I can't add much more. I can confirm that setting the DCOP servicetype to unique does NOT fix the issue, unless I'm just setting it in the wrong file, which I don't believe I am. Still looking for a fix for this.
Comment 6 Will Stephenson 2007-02-21 08:40:52 UTC
Fixed in SVN
Comment 7 Edu 2007-06-03 20:49:45 UTC
For many people (including me) the bug is not fixed. Please take a look the last comments of ubuntu's bug: https://bugs.launchpad.net/bugs/69118
Thank you
Comment 8 Hobbsee 2007-06-13 19:03:15 UTC
I dont have an account for https://bugzilla.novell.com/show_bug.cgi?id=206641#c34
but if Helmut Schaa could post the diff he's used for this bug, i'd appreciate it.  We're still getting this bug in kubuntu, but havent pulled a SVN update recently.  Cherry picking a patch may be the smarter option, depending on what it is.