Bug 301453 - nepomuk regression just after 4.8.3.
Summary: nepomuk regression just after 4.8.3.
Status: RESOLVED FIXED
Alias: None
Product: nepomuk
Classification: Miscellaneous
Component: general (show other bugs)
Version: 4.8
Platform: Arch Linux Linux
: NOR critical
Target Milestone: ---
Assignee: Sebastian Trueg
URL:
Keywords: regression
: 301474 301685 301790 302039 (view as bug list)
Depends on:
Blocks: 277705
  Show dependency treegraph
 
Reported: 2012-06-08 15:42 UTC by Hussam Al-Tayeb
Modified: 2013-02-02 14:54 UTC (History)
22 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 Hussam Al-Tayeb 2012-06-08 15:42:05 UTC
this regessed just after the 29th of april 2012 in KDE/4.8 branch
definitely on the 29th or 30th of april in kdelibs.

downstream bug report. https://bugs.archlinux.org/30190
many applications will crash if nempomuk/strigi is enabled. kmail will crash if a message is selected.

Note: This was not a problem in KDE 4.8.3 but regressed after the release and is still in KDE 4.8.4

Reproducible: Always

Steps to Reproduce:
enable nepomuk/strigi desktop search.
open kmail and select an email.
Actual Results:  
nepomuk feeder process crashes. and kmail goes down too



forum post. https://bbs.archlinux.org/viewtopic.php?id=142935
Comment 1 Wiktor 2012-06-08 22:14:09 UTC
When I create two new folders, and try to move first into second, dolphin crashes.
Comment 3 Christoph Feck 2012-06-09 11:45:57 UTC
Raising severity, as it affects multiple applications and default setting is "nepomuk enabled".
Comment 4 Albert Astals Cid 2012-06-09 13:41:58 UTC
There is definitely something weird going on.

If i add
        Q_ASSERT(!m_factories.hasLocalData());
to the KSycocaFactorySingleton constructor
it asserts when nepomukserver is running but works correctly when nepomukserver is not running. Something is writing way off memory maybe? Couldn't find anything usefuf with valgrind
Comment 5 korgens 2012-06-09 13:53:17 UTC
The error in my system happens when I try to start kmail. It always crashes. Just after that, if I click on nepomuk notification icon it also crashes.

Here is the bare output:

$ kmail
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kmail2(1435)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
kmail2(1435)/kdepimlibs (mailtransport): Could not access Outbox. 
kmail2(1435)/kdeui (kdelibs): Attempt to use QAction "" with KXMLGUIFactory! 
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Nepomuk::ResourceManager(0x207f6e0), parent's thread is QThread(0x1be8260), current thread is QThread(0x21df420)
*** KMail got signal 11 (Exiting)
*** Dead letters dumped.
Comment 6 Alejandro Nova 2012-06-09 13:59:47 UTC
This bug, in fact, is so severe that it would merit a 4.8.4.1 release.

The following apps are affected.
- Gwenview: Instant crash while trying to open a folder.
- Dolphin: If you open the Information panel when Nepomuk is enabled, nothing appears. If you enabled Dolphin tooltips, Dolphin will crash.
- KMail: It will crash instantly when you try to Reply To a mail.
- Even Danbooru Client crashes while trying to save images (this is to certify that this is a Nepomuk bug).

This affects ONLY KDE 4.8.4. This doesn't affect KDE 4.8.3. Also, KDE 4.8.80 doesn't seem to be affected either.
Comment 7 Franz Trischberger 2012-06-10 07:08:47 UTC
This dolphin bug was reported yesterday:
https://bugs.kde.org/show_bug.cgi?id=301499
It's marked as a Duplicate, the original bug is quite old, and it was caused by an old soprano-version.
As the backtraces look quite similar, I thought that soprano could be the cause here, too. I am running latest stable (2.7.6), and get those crashes, too. So I upgraded to 2.7.56 (alpha? beta? don't know...) - and all crashes are gone! Everything just works!
Comment 8 Andrea Scarpino 2012-06-10 08:09:35 UTC
Confirmed. Upgrading to soprano 2.7.56 on KDE 4.8.4 fixed the crash!
Comment 9 Alejandro Nova 2012-06-10 13:43:38 UTC
There are no crashes here! But please, leave this open; we shouldn't depend on Soprano trunk if we are in the stable branch; if we do that, releases and branching don't make any sense.
Comment 10 Albert Astals Cid 2012-06-10 13:55:09 UTC
Yes, asking for a soprano increase from 4.8.3 to 4.8.4 is unacceptable.
Comment 11 Colin J Thomson 2012-06-10 21:24:49 UTC
I can confirm soprano-2.7.57 on 4.8.4 fixes the crash problems mentioned in this report on my Fedora17 box.
Comment 12 S. Umar 2012-06-10 21:36:54 UTC
There seems to be a discrepancy between the patch applied to nepomuk in
the git and the kdelibs 4.8.4 source.

I see the extra line below

if ( forced || (!m_socketConnectFailed && !localSocketClient.isConnected()) ) {
     delete localSocketModel;
     localSocketModel = 0;
     localSocketClient.disconnect();  <======== THIS LINE IS EXTRA
     QString socketName = KGlobal::dirs()->locateLocal( "socket", "nepomuk-socket" );

If I remove that the crashes stop as well. The git patch that changed the
first line above does not have that line in the patch!
Comment 13 eli 2012-06-11 04:31:11 UTC
(In reply to comment #11)
> I can confirm soprano-2.7.57 on 4.8.4 fixes the crash problems mentioned in
> this report on my Fedora17 box.

Me too.
Comment 14 Franz Trischberger 2012-06-11 06:07:17 UTC
(In reply to comment #12)
> There seems to be a discrepancy between the patch applied to nepomuk in
> the git and the kdelibs 4.8.4 source.
> 
> I see the extra line below
>      localSocketClient.disconnect();  <======== THIS LINE IS EXTRA
> If I remove that the crashes stop as well. The git patch that changed the
> first line above does not have that line in the patch!

That's just a workaround. Soprano::LocalSocketClient::disconnect() did not change between soprano-2.7.6 and latest betas. IMHO disconnect() is needed, because otherwise you will get an error in the case force is true. LocalSocketClient::connect() checks if there is a connection, yet, and if it won't reconnect but set an error (for both stable and beta soprano).

The problems we are facing here are - as so often in the past - Qt Sockets. Trueg complained about it in the past and after 2.7.6 finally fixed it with the new Soprano::Socket-class. I extracted a pach from the diff between stable and beta, that simply replaces Qt Sockets with Soprano::Socket and installed 2.7.6 with it. It runs stable since about a day.
Comment 15 Andrea Scarpino 2012-06-13 20:16:02 UTC
Up.

Can you fix this (or confirm that reverting a43824a200ed76cef48a90bd3aee8547698b7c91 is ok) so people can use Nepomuk again?
Comment 16 Vishesh Handa 2012-06-13 22:04:02 UTC
Reverted the following commits in KDE/4.8.x branch -

commit 3708be2d09700b21f934c2129218e1c7ea44efdf
Author: Sebastian Trueg <trueg@kde.org>
Date:   Mon Apr 30 16:34:21 2012 +0200

    Disconnect before re-connecting. Soprano does not do that for us.

commit a43824a200ed76cef48a90bd3aee8547698b7c91
Author: Sebastian Trueg <trueg@kde.org>
Date:   Mon Apr 30 14:51:10 2012 +0200

    Always rec-connect if forced (ie. when Nepomuk server restarts)

This should fix the issue.
Comment 17 Vishesh Handa 2012-06-17 18:01:11 UTC
*** Bug 302039 has been marked as a duplicate of this bug. ***
Comment 18 Aurelien Gateau 2012-06-28 16:05:01 UTC
*** Bug 301790 has been marked as a duplicate of this bug. ***
Comment 19 Aurelien Gateau 2012-06-28 16:05:41 UTC
*** Bug 301474 has been marked as a duplicate of this bug. ***
Comment 20 Aurelien Gateau 2012-06-28 16:07:44 UTC
*** Bug 301685 has been marked as a duplicate of this bug. ***