<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>301453</bug_id>
          
          <creation_ts>2012-06-08 15:42:05 +0000</creation_ts>
          <short_desc>nepomuk regression just after 4.8.3.</short_desc>
          <delta_ts>2013-02-02 14:54:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>nepomuk</product>
          <component>general</component>
          <version>4.8</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>regression</keywords>
          <priority>NOR</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>277705</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Hussam Al-Tayeb">ht990332</reporter>
          <assigned_to name="Sebastian Trueg">trueg</assigned_to>
          <cc>aacid</cc>
    
    <cc>alejandronova</cc>
    
    <cc>alien</cc>
    
    <cc>cfeck</cc>
    
    <cc>desintegr</cc>
    
    <cc>dilfridge</cc>
    
    <cc>eli</cc>
    
    <cc>eric.lemoussu</cc>
    
    <cc>franz.trischberger</cc>
    
    <cc>ht990332</cc>
    
    <cc>hubn3rd</cc>
    
    <cc>korgens</cc>
    
    <cc>manfred.kitzbichler</cc>
    
    <cc>me</cc>
    
    <cc>modax.reg</cc>
    
    <cc>moro.engelhardt</cc>
    
    <cc>rdieter</cc>
    
    <cc>red4fireluv04</cc>
    
    <cc>scarpino</cc>
    
    <cc>than</cc>
    
    <cc>wikt.sztw+kdebugs</cc>
    
    <cc>zerg</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>40</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1263588</commentid>
    <comment_count>0</comment_count>
    <who name="Hussam Al-Tayeb">ht990332</who>
    <bug_when>2012-06-08 15:42:05 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1263708</commentid>
    <comment_count>1</comment_count>
    <who name="Wiktor">wikt.sztw+kdebugs</who>
    <bug_when>2012-06-08 22:14:09 +0000</bug_when>
    <thetext>When I create two new folders, and try to move first into second, dolphin crashes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1263779</commentid>
    <comment_count>2</comment_count>
    <who name="Hussam Al-Tayeb">ht990332</who>
    <bug_when>2012-06-09 08:14:42 +0000</bug_when>
    <thetext>reverting http://quickgit.kde.org/index.php?p=kdelibs.git&amp;a=commit&amp;h=a43824a200ed76cef48a90bd3aee8547698b7c91 fixes it for me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1263836</commentid>
    <comment_count>3</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2012-06-09 11:45:57 +0000</bug_when>
    <thetext>Raising severity, as it affects multiple applications and default setting is &quot;nepomuk enabled&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1263884</commentid>
    <comment_count>4</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2012-06-09 13:41:58 +0000</bug_when>
    <thetext>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&apos;t find anything usefuf with valgrind</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1263890</commentid>
    <comment_count>5</comment_count>
    <who name="">korgens</who>
    <bug_when>2012-06-09 13:53:17 +0000</bug_when>
    <thetext>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 &quot;&quot; with KXMLGUIFactory! 
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Nepomuk::ResourceManager(0x207f6e0), parent&apos;s thread is QThread(0x1be8260), current thread is QThread(0x21df420)
*** KMail got signal 11 (Exiting)
*** Dead letters dumped.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1263892</commentid>
    <comment_count>6</comment_count>
    <who name="Alejandro Nova">alejandronova</who>
    <bug_when>2012-06-09 13:59:47 +0000</bug_when>
    <thetext>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&apos;t affect KDE 4.8.3. Also, KDE 4.8.80 doesn&apos;t seem to be affected either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1264085</commentid>
    <comment_count>7</comment_count>
    <who name="Franz Trischberger">franz.trischberger</who>
    <bug_when>2012-06-10 07:08:47 +0000</bug_when>
    <thetext>This dolphin bug was reported yesterday:
https://bugs.kde.org/show_bug.cgi?id=301499
It&apos;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&apos;t know...) - and all crashes are gone! Everything just works!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1264104</commentid>
    <comment_count>8</comment_count>
    <who name="Andrea Scarpino">scarpino</who>
    <bug_when>2012-06-10 08:09:35 +0000</bug_when>
    <thetext>Confirmed. Upgrading to soprano 2.7.56 on KDE 4.8.4 fixed the crash!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1264215</commentid>
    <comment_count>9</comment_count>
    <who name="Alejandro Nova">alejandronova</who>
    <bug_when>2012-06-10 13:43:38 +0000</bug_when>
    <thetext>There are no crashes here! But please, leave this open; we shouldn&apos;t depend on Soprano trunk if we are in the stable branch; if we do that, releases and branching don&apos;t make any sense.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1264222</commentid>
    <comment_count>10</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2012-06-10 13:55:09 +0000</bug_when>
    <thetext>Yes, asking for a soprano increase from 4.8.3 to 4.8.4 is unacceptable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1264359</commentid>
    <comment_count>11</comment_count>
    <who name="Colin J Thomson">colin.thomson</who>
    <bug_when>2012-06-10 21:24:49 +0000</bug_when>
    <thetext>I can confirm soprano-2.7.57 on 4.8.4 fixes the crash problems mentioned in this report on my Fedora17 box.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1264372</commentid>
    <comment_count>12</comment_count>
    <who name="S. Umar">sait.a.umar</who>
    <bug_when>2012-06-10 21:36:54 +0000</bug_when>
    <thetext>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 &amp;&amp; !localSocketClient.isConnected()) ) {
     delete localSocketModel;
     localSocketModel = 0;
     localSocketClient.disconnect();  &lt;======== THIS LINE IS EXTRA
     QString socketName = KGlobal::dirs()-&gt;locateLocal( &quot;socket&quot;, &quot;nepomuk-socket&quot; );

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!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1264437</commentid>
    <comment_count>13</comment_count>
    <who name="">eli</who>
    <bug_when>2012-06-11 04:31:11 +0000</bug_when>
    <thetext>(In reply to comment #11)
&gt; I can confirm soprano-2.7.57 on 4.8.4 fixes the crash problems mentioned in
&gt; this report on my Fedora17 box.

Me too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1264445</commentid>
    <comment_count>14</comment_count>
    <who name="Franz Trischberger">franz.trischberger</who>
    <bug_when>2012-06-11 06:07:17 +0000</bug_when>
    <thetext>(In reply to comment #12)
&gt; There seems to be a discrepancy between the patch applied to nepomuk in
&gt; the git and the kdelibs 4.8.4 source.
&gt; 
&gt; I see the extra line below
&gt;      localSocketClient.disconnect();  &lt;======== THIS LINE IS EXTRA
&gt; If I remove that the crashes stop as well. The git patch that changed the
&gt; first line above does not have that line in the patch!

That&apos;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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1265532</commentid>
    <comment_count>15</comment_count>
    <who name="Andrea Scarpino">scarpino</who>
    <bug_when>2012-06-13 20:16:02 +0000</bug_when>
    <thetext>Up.

Can you fix this (or confirm that reverting a43824a200ed76cef48a90bd3aee8547698b7c91 is ok) so people can use Nepomuk again?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1265592</commentid>
    <comment_count>16</comment_count>
    <who name="Vishesh Handa">me</who>
    <bug_when>2012-06-13 22:04:02 +0000</bug_when>
    <thetext>Reverted the following commits in KDE/4.8.x branch -

commit 3708be2d09700b21f934c2129218e1c7ea44efdf
Author: Sebastian Trueg &lt;trueg@kde.org&gt;
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 &lt;trueg@kde.org&gt;
Date:   Mon Apr 30 14:51:10 2012 +0200

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

This should fix the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1266477</commentid>
    <comment_count>17</comment_count>
    <who name="Vishesh Handa">me</who>
    <bug_when>2012-06-17 18:01:11 +0000</bug_when>
    <thetext>*** Bug 302039 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1270763</commentid>
    <comment_count>18</comment_count>
    <who name="Aurelien Gateau">agateau</who>
    <bug_when>2012-06-28 16:05:01 +0000</bug_when>
    <thetext>*** Bug 301790 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1270765</commentid>
    <comment_count>19</comment_count>
    <who name="Aurelien Gateau">agateau</who>
    <bug_when>2012-06-28 16:05:41 +0000</bug_when>
    <thetext>*** Bug 301474 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1270768</commentid>
    <comment_count>20</comment_count>
    <who name="Aurelien Gateau">agateau</who>
    <bug_when>2012-06-28 16:07:44 +0000</bug_when>
    <thetext>*** Bug 301685 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>