Version: unspecified (using Devel) OS: Linux Even with debugging output disabled using "kdebugdialog", the Nepomuk Feeder Agent "akonadi_nepomuk_contact_feeder" generates excessive quantities of output during startup, and during operation. Appears to be replicating Nepomuk debug output. Reproducible: Always Steps to Reproduce: Start Akonadi with Nepomuk running, watch ~/.xsession-errors Actual Results: Recieve large amounts of output. Excerpts: [/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] [/opt/trunk-kde/kde/bin/nepomukservicestub] Soprano::ODBC::Connection::Connection() QThread(0x8054648) [/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] [/opt/trunk-kde/kde/bin/nepomukservicestub] QObject::setParent: Cannot set parent, new parent is in a different thread [/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] virtual void Soprano::Server::LocalServer::incomingConnection(quintptr) [/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] Object::connect: No such signal QDBusAbstractInterface::DeviceRemoved(QDBusObjectPath) [/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] Object::connect: No such signal QDBusAbstractInterface::DeviceAdded(QDBusObjectPath) [/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] Object::connect: No such signal QDBusAbstractInterface::DeviceRemoved(QDBusObjectPath) [/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] device of type: "urn:schemas-upnp-org:device:InternetGatewayDevice:1" [/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] "urn:schemas-upnp-org:device:WANConnectionDevice:1" [/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] device of type: "urn:schemas-upnp-org:device:WANConnectionDevice:1" Expected Results: No non-critical output
Hej Ben, this output comes from libraries that are used directly or indirectly by the nepomuk_contact_feeder. You have to disable the debug areas for these libraries.
It is disabled... ben@grace:~> kreadconfig --group akonadi_nepomuk_contact_feeder --key InfoOutput --file kdebugrc 4 Attaching screenshot of kdebugdialog as additional information.
Created attachment 50083 [details] Screenshot of KDebugDialog showing akonadi_nepomuk_contact_feeder with debug output disabled
Hej Ben, you have to disable the debug area of the _libraries_ (e.g. soprano or solid)! > [/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] > [/opt/trunk-kde/kde/bin/nepomukservicestub] > Soprano::ODBC::Connection::Connection() QThread(0x8054648) soprano/nepomuk related > [/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] Object::connect: No > such signal QDBusAbstractInterface::DeviceRemoved(QDBusObjectPath) > [/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] Object::connect: No > such signal QDBusAbstractInterface::DeviceAdded(QDBusObjectPath) > [/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] Object::connect: No > such signal QDBusAbstractInterface::DeviceRemoved(QDBusObjectPath) looks like something solid related >[/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] device of type: >"urn:schemas-upnp-org:device:InternetGatewayDevice:1" >[/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] >"urn:schemas-upnp-org:device:WANConnectionDevice:1" >[/opt/trunk-kde/kde/bin/akonadi_nepomuk_contact_feeder] device of type: >"urn:schemas-upnp-org:device:WANConnectionDevice:1" looks also like solid related
Reassigning to Nepomuk. Likely causes by qDebug() output in Soprano.
This has nothing to do with Nepomuk as far as I can tell. There is only a single message from Nepomuk which is correct and written whenever a new connection to the storage service is created. Resolving as invalid for now. Please provide more useful information (as in: more output) so we can actually decide which component is the problem.
Example of excessive output: virtual void Soprano::Server::LocalServer::incomingConnection(quintptr) void Soprano::Server::ServerCorePrivate::addConnection(Soprano::Server::ServerConnection*) New connection. New count: 1 virtual void Soprano::Server::LocalServer::incomingConnection(quintptr) void Soprano::Server::ServerCorePrivate::addConnection(Soprano::Server::ServerConnection*) New connection. New count: 2 virtual void Soprano::Server::LocalServer::incomingConnection(quintptr) void Soprano::Server::ServerCorePrivate::addConnection(Soprano::Server::ServerConnection*) New connection. New count: 3 virtual void Soprano::Server::LocalServer::incomingConnection(quintptr) void Soprano::Server::ServerCorePrivate::addConnection(Soprano::Server::ServerConnection*) New connection. New count: 4 virtual void Soprano::Server::LocalServer::incomingConnection(quintptr) void Soprano::Server::ServerCorePrivate::addConnection(Soprano::Server::ServerConnection*) New connection. New count: 5 Akonadi::NepomukSearchEngine(0x82168c0) QDBusServiceWatcher(0x8216cb8)
This is not excessive output. This is normal debugging output. If these messages spam your stderr some application creates way too many connections.
The point in this case is that this debugging output cannot be disabled, which is not optimal. However, the application in question should be fixed. It is probably Plasma or Akonadi doing this.
The problem is that these are messages from the Qt-only Soprano which uses qDebug(). The latter can be disabled by compiling Soprano in release mode. I agree with you that this is not an ideal solution and a better logging system is needed. I am open to patches. ;)
Is it also disabled in RelWithDebInfo mode? If so, then it should be fine (and this can be reassigned to the component which is creating all those connections)
*** Bug 274050 has been marked as a duplicate of this bug. ***
qDebugs can be disabled with -DQT_NO_DEBUG_OUTPUT. Example from akonadi/CMakeLists.txt: if (NOT CMAKE_BUILD_TYPE_TOLOWER MATCHES "debug") add_definitions(-DQT_NO_DEBUG_OUTPUT) endif() This is missing in FindQt4.cmake/UseQt4.cmake IMHO. (I added a comment that I fixed that, in akonadi's cmakelists, but I can't find that fix anymore, I think I chickened out... real fix would be in cmake itself...)
Git commit bdc1aec70aab30b075558b98657bac55d4845963 by Vishesh Handa. Committed on 31/07/2012 at 18:57. Pushed by vhanda into branch '2.8'. No qDebug output in non debug modes Soprano should not emit debug output when compiling with Release or RelWithDebInfo. REVIEW: 105807 M +8 -0 CMakeLists.txt http://commits.kde.org/soprano/bdc1aec70aab30b075558b98657bac55d4845963