Bug 293536 - .xsession-errors spammed with Soprano error messages (if Nepomuk is disabled)
Summary: .xsession-errors spammed with Soprano error messages (if Nepomuk is disabled)
Status: RESOLVED FIXED
Alias: None
Product: kactivitymanagerd
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Ivan Čukić
URL:
Keywords:
: 293806 293898 294519 294834 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-07 15:17 UTC by Toralf Förster
Modified: 2012-03-29 15:30 UTC (History)
19 users (show)

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


Attachments
Nepomuk is disabled before KDE start/logon and is "Enabled" with Systemsettings (86.59 KB, application/octet-stream)
2012-02-11 15:38 UTC, sorath
Details
Nepomuk is Enabled before Reboot and "kactivitymanagerd" sometimes crashes during Nepomuk starting (58.89 KB, application/octet-stream)
2012-02-11 15:39 UTC, sorath
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster 2012-02-07 15:17:43 UTC
Version:           0.0.1 (using KDE 4.8.0) 
OS:                Linux

Well, this is not bug #289932, it is different I fear.

I do not have any nepomuk nor any other desktop search/queries/backups activated at my Gentoo Linux :

tfoerste@n22 ~ $ qdbus org.kde.nepomuk.services.nepomukqueryservice 
Service 'org.kde.nepomuk.services.nepomukqueryservice' does not exist.

Nevertheless I get thousands of lines like this :

"/usr/bin/kactivitymanagerd(13956)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kactivitymanagerd(13956)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kactivitymanagerd(13956)" Soprano: "Invalid iterator."
"/usr/bin/kactivitymanagerd(13956)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Soprano::Client::LocalSocketClient(0x8f5d274), parent's thread is QThread(0x8dfe3f8), current thread is RankingsUpdateThread(0x8fae140)
"/usr/bin/kactivitymanagerd(13956)" Soprano: "QLocalSocket::connectToServer: Invalid name"
"/usr/bin/kactivitymanagerd(13956)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/kactivitymanagerd(13956)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kactivitymanagerd(13956)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/kactivitymanagerd(13956)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kactivitymanagerd(13956)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kactivitymanagerd(13956)" Soprano: "Invalid iterator."



Furthermore I completely deactivated debug messages - doesn't helped.

Reproducible: Didn't try

Steps to Reproduce:
login into kde

Actual Results:  
:-(

Expected Results:  
:-)
Comment 1 sorath 2012-02-11 11:45:16 UTC
I have the same issue with kde-4.8.0 .xsession-errors during login with enabled  or disabled nepomuk. 
It seems for this reason plasma-desktop start slow and login takes about 30 seconds (amd phenom II X4 3.2 Ghz, HDD WDC WD4000AAKS-0) as errors write at the same time.

P.S. 
Moving /var/tmp/kdecache-<user> to tmpfs doesn't make startup faster and something is handling of HDD on logon.
Comment 2 sorath 2012-02-11 15:36:10 UTC
I has made some test:

testcase A (Nepomuk disabled before KDE start)
1. KDE starts (after reboot) with disable nepomuk the errors messages this bug reports bigin to spam .xsesion-errrors file 
2. I opened systemsettings and Enable Nepomuk Semantic Desktop (without File Indexing and without Email Indexer), Press "Enable" button
3. After Akonadi and Nepomuk starting "kactivitymanagerd" stops spam to logfile (or just  sometimes crashed like in "testcase B", but not necessarily)
See attached file "xsession-errors_nepomuk_starting.log"


testcase B (Nepomuk enabled before KDE start)
1. "kactivitymanagerd" write to .xsesion-errrors file about error during KDE startup but crashes later when Nepomuk on loading.
See full attached file "xsession-errors_nepomuk_on_kde_start.log"
Comment 3 sorath 2012-02-11 15:38:04 UTC
Created attachment 68702 [details]
Nepomuk is disabled before KDE start/logon and is "Enabled" with Systemsettings
Comment 4 sorath 2012-02-11 15:39:26 UTC
Created attachment 68703 [details]
Nepomuk is Enabled before Reboot and "kactivitymanagerd" sometimes crashes during Nepomuk starting
Comment 5 Toralf Förster 2012-02-11 16:48:14 UTC
confirmed - activating Nepomuk and disabling file and email indexing helped.

But I don't want Nepomuk enabled at al :-(
Comment 6 sorath 2012-02-11 17:06:26 UTC
But even with "kactivitymanagerd" error mesasage take plase before nepomuk services starting (especialy during logon - It may need to check it one more time, but if it has place - it may cause the slow kde login) - and "kactivitymanagerd" crashes almost all the time with nepomuk enabled.

I use "semantic-desktop" compiling option (in Gentoo) just for KMail (currently for 4.4.11.1 due to many bugs of Akonadi services that corrupted KMail2)

Some users install KDE without "semantic-desktop" compiling option - so permanent loging of "kactivitymanagerd" errors is a bug in itself.
Comment 7 Christoph Feck 2012-02-13 19:24:11 UTC
To me it is still not clear who's "fault" it is. Should this bug be assigned to Soprano? KMail? Plasma activities?
Comment 8 sorath 2012-02-13 20:03:07 UTC
Kmail doesn't concern this bug (it was just referenced as application that need "semantic-desctop" feature).

Most likely it's a bug of "kactivitymanagerd" (maybe it tries to use Soprano for some purpose) component of "kactivities" packet that spam to .xsession-error file until nepomuk is started and crashes sometimes during nepomuk's startup (see attached log files for details).
Comment 9 Christoph Feck 2012-02-13 20:08:16 UTC
*** Bug 293806 has been marked as a duplicate of this bug. ***
Comment 10 Christoph Feck 2012-02-13 20:09:55 UTC
Confirmed by duplicates.
Comment 11 Christoph Feck 2012-02-13 20:10:18 UTC
*** Bug 293898 has been marked as a duplicate of this bug. ***
Comment 12 Christoph Feck 2012-02-13 20:20:30 UTC
Argh, how I love typos of important search keywords ... sorry for the spam.
Comment 13 Christoph Feck 2012-02-21 00:48:10 UTC
*** Bug 294519 has been marked as a duplicate of this bug. ***
Comment 14 Christoph Feck 2012-02-26 18:49:09 UTC
*** Bug 294834 has been marked as a duplicate of this bug. ***
Comment 15 Will Stephenson 2012-03-27 08:03:55 UTC
Yeah, kactivitymanagerd should stop trying to use Nepomuk if it is explicitly disabled.
Comment 16 Stuart K. Smith 2012-03-29 13:35:26 UTC
I believe the bug is with Soprano or Nepomuk. I had the same errors as reported above, killed kactivitymanager and now am getting spammed with the exact same messages only now from kfilemetareader. 

Before killing kactivitymanager
The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Soprano::Client::LocalSocketClient(0xa3e5e8), parent's thread is QThread(0x8bb330), current thread is RankingsUpdateThread(0xaa76b0)
"/usr/bin/kactivitymanagerd(2146)" Soprano: "QLocalSocket::connectToServer: Invalid name"
"/usr/bin/kactivitymanagerd(2146)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/kactivitymanagerd(2146)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kactivitymanagerd(2146)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/kactivitymanagerd(2146)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kactivitymanagerd(2146)" Soprano: "Invalid iterator."

After killing kactivitymanager
The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/kfilemetadatareader(23749)" Soprano: "QLocalSocket::connectToServer: Invalid name"
"/usr/bin/kfilemetadatareader(23749)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/kfilemetadatareader(23749)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kfilemetadatareader(23749)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/kfilemetadatareader(23749)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kfilemetadatareader(23749)" Soprano: "Invalid iterator."
Comment 17 Ivan Čukić 2012-03-29 15:25:00 UTC
This can be considered a problem of both nepomuk and users of it. It should be fixed in one place or another. Currently, fixed in KAMD :)
Comment 18 Toralf Förster 2012-03-29 15:30:31 UTC
(In reply to comment #17)
> This can be considered a problem of both nepomuk and users of it. It should
> be fixed in one place or another. Currently, fixed in KAMD :)
Any chance for a 4.8.1 useer to back port this by giving a link to the diff/patch ?