Bug 138924 - KWallet::openWallet() blocks forever during startup
Summary: KWallet::openWallet() blocks forever during startup
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kwallet (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-17 20:25 UTC by Christoph Bartoschek
Modified: 2009-04-21 00:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The program mentioned in the text (2.44 KB, text/x-c++src)
2006-12-17 20:26 UTC, Christoph Bartoschek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Bartoschek 2006-12-17 20:25:21 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    SuSE RPMs

I am using my program from http://www.pontohonk.de/kde/ssh.html (I'll also attach it) to add keys during startup to ssh-agent. This works most of the time but sometimes it hangs in the call to KWallet::Wallet::openWallet(localwallet); The messages in .xsession-errors are:

startkde: Starting up...
kbuildsycoca running...
akode: Guessed format: xiph
Starting askpass
Got name of local wallet!
KNotify::playTimeout
KNotify::playTimeout
KNotify::playTimeout
kded: WARNING: Application 'DCOPServer' using kwallet without parent window!
KNotify::playTimeout
KNotify::playTimeout
QLayout "unnamed" added to QVBox "unnamed", which already has a layout
KNotify::playTimeout
QLayout: Adding KToolBar/mainToolBar (child of QVBox/unnamed) to layout for PlaylistWindow/PlaylistWindow
KNotify::playTimeout
KNotify::playTimeout
DCOPServer::DCOPReplyDelayed for unknown connection.
Corrupt data!

Corrupt data!

DCOPServer failure: object '' has no function '(null)'
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  20
  Minor opcode:  0
  Resource id:  0x1000027
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  19
  Minor opcode:  0
  Resource id:  0x1000027
STARTUP


I do not know which lines are related to the problem and which not. There seems to be an error in DCOP communication. Strace on the programm shows that it is waiting for data:

ponto@barney:~> strace -p 3512
Process 3512 attached - interrupt to quit
read(10,
Comment 1 Christoph Bartoschek 2006-12-17 20:26:04 UTC
Created attachment 18962 [details]
The program mentioned in the text
Comment 2 Michael Leupold 2008-10-29 00:21:42 UTC
Do you still see this problem with a recent version of kwalletd (either 3.5.9+ or 4.x)?
Comment 3 Christoph Bartoschek 2008-10-29 08:59:54 UTC
Yes I do with KDE 3.5.9+
Comment 4 Michael Leupold 2008-10-29 09:17:09 UTC
Damn. I hoped this had just gone away :) Unfortunately KWallet is no longer under development for the KDE3 platform. As I started developing for KDE with KDE4 I don't know much about DCOP. As you stated it does however seem like there's an error in the DCOP service.
Comment 5 Christoph Bartoschek 2009-04-21 00:04:19 UTC
I a test with kde 4 i could not reproduce this.
Comment 6 Michael Leupold 2009-04-21 00:05:58 UTC
Thanks a lot. Now it's finally time to close this bug :-)