Bug 174362 - kontact starts _very_ slow
Summary: kontact starts _very_ slow
Status: RESOLVED FIXED
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-05 19:58 UTC by urwald
Modified: 2009-01-02 11:38 UTC (History)
4 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 urwald 2008-11-05 19:58:57 UTC
Version:           1.10.3 (using 4.1.3 (KDE 4.1.3) "release 51.1", KDE:KDE4:Factory:Desktop / openSUSE_11.0)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.25.18-0.2-default

kontact starts _very_ slow - about 3 minutes (my machine has a dual core pentium and 2 GB RAM!).

When I start kontact from konsole, I get the following output:

tim@linux-t4o1:~> kontact
<unknown program name>(3788)/: Communication problem with  "kontact" , it probably crashed.
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken." "

tim@linux-t4o1:~> "/usr/bin/kontact(3789)" Error in thread 140196084209408 : "org.freedesktop.DBus.Error.NoReply - Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
kontact(3789) KWallet::Wallet::openWallet: Pass a valid window to KWallet::Wallet::openWallet().
Comment 1 urwald 2008-11-05 20:00:40 UTC
Sorry, wrong component. Should be "kontact" instead of "kmail" (was just the default from the "report bugs" function).
Comment 2 urwald 2008-11-06 20:42:38 UTC
Kontact version is 1.3 (Help->About Kontact) or 4.1.3-61.5 (RPM version number).
Comment 3 mario tuling 2008-11-12 05:11:44 UTC
can you get a backtrace? you have to install debug packages perhaps to get a meaningfull one.
Comment 4 urwald 2008-11-13 08:26:39 UTC
I've installed the debug package.

A backtrace is something that happens after a crash, right? Well, I'm not shure if there is really a crash - the application finally works, but takes _very_ long time to start. Here is a details overview of what I've done (and the messages I've recieved on the console after installing the debug packages):


1.) start konsole


2.) "kontact"


3.) 1 minute nothing happens


4.) I see: <unknown program name>(3630)/: Communication problem with  "kontact" , it probably crashed.
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken." "

tim@linux-t4o1:~>


5.) 2 minutes and 30 seconds nothing happens


6.) kontact windows appears and the application works fine.


This happens only the first time after booting. The second time I start kontact, on the console I get immediately the message "kontact(3848) KWallet::Wallet::openWallet: Pass a valid window to KWallet::Wallet::openWallet()." and immediatly (after about 3 seconds only) the konctact window appears.
Comment 5 FiNeX 2008-11-13 10:07:24 UTC
Do you start kontact in a full  KDE4 session or, for example, in a KDE3/gnome/... session ?
Comment 6 urwald 2008-11-13 10:31:20 UTC
A full KDE 4.1.3 session (packages from opensuse build service).
Comment 7 Jaime Torres 2008-11-13 10:38:03 UTC
I see something similar (in trunk svn r882080) doing the following:

1. Start an Icewm session (no kde program at all, except akonadi server)
2. start an xterm
3. "kontact"

4. I get (among a lot of other debug traces)

kio_file(3991)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open
ksycoca from  "/var/tmp/kdecache-jtamate/ksycoca4"
kio_file(3990)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open
ksycoca from  "/var/tmp/kdecache-jtamate/ksycoca4"
<unknown program name>(3952)/: Communication problem with  "kontact" , it
probably crashed. 
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Did not receive a
reply. Possible causes include: the remote application did not send a reply,
the message bus security policy blocked the reply, the reply timeout expired,
or the network connection was broken." " 

NOTICE the PID of the unknown program, lower than kontact pid (and inexistent).

At the same time, I get a kwallet window with: "The application 'Kontact' has
requested to open the wallet 'kdewallet'. Please enter the password for this
wallet bellow."

5. after entering the password..

6. Everything goes smoothly and I get a kontact running (after it loads all the
configuration and all the pim programs)

Second try: 

After removing the checkbox in kwalletmanager settings "Prompt when an
application accesses an open wallet" 

new icewm session
xterm
kontact
runs smoothly after all the programs and settings are read.
Comment 8 urwald 2008-11-23 20:00:23 UTC
I've now noticed that there's a similar (or the same?) problem with dolphin.

I just didn't noticed that until now because after booting I usually first Kontact and not Konqueror.

So that's maybe a problem of kdelibs or another library?
Comment 9 urwald 2009-01-02 11:38:28 UTC
Could not reproduce in opoenSUSE 11.1 anymore.