Bug 269442 - kontact spams .xsession-errors if nepomuk is not available
Summary: kontact spams .xsession-errors if nepomuk is not available
Status: RESOLVED UNMAINTAINED
Alias: None
Product: nepomuk
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Trueg
URL:
Keywords:
: 243127 282756 283049 283213 (view as bug list)
Depends on:
Blocks: 325889
  Show dependency treegraph
 
Reported: 2011-03-26 09:38 UTC by S. Burmeister
Modified: 2015-01-23 16:21 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S. Burmeister 2011-03-26 09:38:05 UTC
Version:           GIT (master) (using KDE 4.6.1) 
OS:                Linux

Nepomuk is not started due to some bug in KDE 4.6.1. In kdepim 4.6's kmail I moved ~600 mails to the trash and clicked on the trash folder.

One can watch the mails appear one by one, each takes ~ 1 second which is rather slow.

Checking xsession-errors I found that kontacts spams it with error messages which does not make sense since it should simply notice that nepomuk is not available and stop trying to use it but only check for each item if it is available again and only then try again to perform some query.

"/usr/bin/kontact(25443)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/kontact(25443)" Soprano: "QLocalSocket::connectToServer: Connection refused"
"/usr/bin/kontact(25443)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/kontact(25443)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kontact(25443)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/kontact(25443)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kontact(25443)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kontact(25443)" Soprano: "Invalid iterator."
"/usr/bin/kontact(25443)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/kontact(25443)" Soprano: "QLocalSocket::connectToServer: Connection refused"
"/usr/bin/kontact(25443)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/kontact(25443)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kontact(25443)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/kontact(25443)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kontact(25443)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kontact(25443)" Soprano: "Invalid iterator."


Reproducible: Always
Comment 1 Christophe Marin 2011-04-06 16:13:06 UTC
reassign to nepomuk. It's Soprano that spams the log file.
Comment 2 Sebastian Trueg 2011-09-26 09:27:02 UTC
*** Bug 243127 has been marked as a duplicate of this bug. ***
Comment 3 Sebastian Trueg 2011-09-26 10:40:20 UTC
*** Bug 282756 has been marked as a duplicate of this bug. ***
Comment 4 Milian Wolff 2011-09-26 23:54:35 UTC
Can easily reproduce on my machine. I end up with ~15GB of .xsession-errors in an hour or so:

milian@thor:~/.kde/env$ du -hs ~/.xsession-errors
15G     /home/milian/.xsession-errors
milian@thor:~/.kde/env$ head -n 10000 ~/.xsession-errors | sort | uniq -c | sort -nr | head
   5580 "/home/development/projects/compiled/kde4/bin/akonadi_nepomuk_email_feeder(1668)" Soprano: "Unsupported operation (2)": "Invalid model"
   3220 "/home/development/projects/compiled/kde4/bin/akonadi_nepomuk_email_feeder(1668)" Soprano: "org.freedesktop.DBus.Error.UnknownObject - No such object path '/org/soprano/Server'"
     43 "/home/development/projects/compiled/kde4/bin/akonadi_nepomuk_email_feeder(1668)" Soprano: "Invalid iterator."
     32 X Error: BadDrawable (invalid Pixmap or Window parameter) 9
     27 *: nothing appropriate.
     24 "/home/development/projects/compiled/kde4/bin/kmail(1851)" Soprano: "Unsupported operation (2)": "Invalid model"
     23 Database "akonadi" opened using driver "QMYSQL"
     18 X Error: BadWindow (invalid Window parameter) 3
     18 "/home/development/projects/compiled/kde4/bin/kmail(1851)" Soprano: "org.freedesktop.DBus.Error.UnknownObject - No such object path '/org/soprano/Server'"
     16 X Error: BadValue (integer parameter out of range for operation) 2

Sebastian, you said: "2. Soprano is Qt-only, thus does not use kDebug/kdebugdialog. Not sure how to solve that yet."

Simple, make it optionally (similar to Quassel or other apps) use KDE if available. Then use kDebug.
Comment 5 Milian Wolff 2011-09-26 23:55:34 UTC
PS: tell me if you want to have more information. I compile soprano + kdepim from git master.
Comment 6 Sebastian Trueg 2011-09-27 06:22:42 UTC
(In reply to comment #4)
> Sebastian, you said: "2. Soprano is Qt-only, thus does not use
> kDebug/kdebugdialog. Not sure how to solve that yet."
> 
> Simple, make it optionally (similar to Quassel or other apps) use KDE if
> available. Then use kDebug.

hehe, if it were that simple. But it is not. Soprano is a dependency for kdelibs obviously which means it cannot depend on kdelibs itself.
The only solution would be a custom logging thing which might make sense anyway.
Comment 7 Sebastian Trueg 2011-09-27 06:24:20 UTC
(In reply to comment #5)
> PS: tell me if you want to have more information. I compile soprano + kdepim
> from git master.

Just to be sure: you are compiling only soprano and kdepim from git master but not kde-runtime?

Also the log messages look as if Nepomuk was not running at all. Can you please verify.
Comment 8 Sebastian Trueg 2011-10-04 12:46:23 UTC
*** Bug 283213 has been marked as a duplicate of this bug. ***
Comment 9 Sebastian Trueg 2011-10-04 13:02:52 UTC
*** Bug 283049 has been marked as a duplicate of this bug. ***
Comment 10 Roger Pixley 2011-10-04 23:55:27 UTC
Just like to make a note that Nepomuk was working when this happened. I had to turn Nepomuk off to stop the spamming. Nepomukservice and nepomukstub were taking up 99% and 98% of my CPU respectively. 

Since I turned them off rebooted and turned them back on Akonadi consistently reports that Nepomuk has no service files though Nepomuk is running. I am not getting a rapidly growing .xsession-errors file as a result though.
Comment 11 Vishesh Handa 2015-01-23 16:21:39 UTC
Thank you for taking the time to file a bug report.

The Nepomuk project is no longer included in the KDE Software Compilation. With Plasma 5, we have replaced most of the underlying technology with Baloo and other components. Hopefully this will have addressed your concern.

We encourage you to try out Plasma 5 (+Baloo) and let us know if your problem persists.