<?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>352787</bug_id>
          
          <creation_ts>2015-09-16 09:34:17 +0000</creation_ts>
          <short_desc>KService rebuild ksycoca5 every several seconds</short_desc>
          <delta_ts>2015-10-24 15:22:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-kservice</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Other</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></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Leslie Zhai">zhaixiang</reporter>
          <assigned_to name="David Faure">faure</assigned_to>
          <cc>arojas</cc>
    
    <cc>bart.polot</cc>
    
    <cc>g.lassnig</cc>
    
    <cc>ht990332</cc>
    
    <cc>kdelibs-bugs-null</cc>
    
    <cc>paolo.pedroni</cc>
    
    <cc>peer.frank</cc>
    
    <cc>simonandric5</cc>
    
    <cc>zhaixiang</cc>
          
          <cf_commitlink>http://commits.kde.org/kservice/0a719bb93110d125adb0218b3f9bfbe567851ae7</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1544358</commentid>
    <comment_count>0</comment_count>
    <who name="Leslie Zhai">zhaixiang</who>
    <bug_when>2015-09-16 09:34:17 +0000</bug_when>
    <thetext>1. login into plasmashell
2. plasma-desktop and plasma-workspace freeze
3. switch to tty2, inotifywait $HOME/.cache, ksycoca5.* regenerate every several seconds

KF5 V5.4.1 components

Reproducible: Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1544468</commentid>
    <comment_count>1</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2015-09-16 19:58:52 +0000</bug_when>
    <thetext>Ouch.

I&apos;m about to make a 5.14.1 release of KService with this patch added, does it fix your problem?

http://www.davidfaure.fr/2015/revert_format_change.diff
(for the kservice framework)

You wrote v5.4.1, I assume you meant 5.14.0?

If the patch doesn&apos;t help, can you try moving out the ksycoca5 file; does it then recreate it correctly and stop regenerating it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1544499</commentid>
    <comment_count>2</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2015-09-16 21:32:19 +0000</bug_when>
    <thetext>Hmm, seems to be another issue; I think I see what&apos;s happening...

KBuildSycoca::checkGlobalHeader -&gt; KSycoca::readSycocaHeader -&gt; KSycocaPrivate::readSycocaHeader -&gt; KSycocaPrivate::checkDatabase -&gt; KSycocaPrivate::checkDirectories -&gt; KSycocaPrivate::buildSycoca, and there we go again.....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1544506</commentid>
    <comment_count>3</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2015-09-16 21:44:53 +0000</bug_when>
    <thetext>Git commit 0a719bb93110d125adb0218b3f9bfbe567851ae7 by David Faure.
Committed on 16/09/2015 at 21:42.
Pushed by dfaure into tag &apos;v5.14.2&apos;.

KBuildSycoca: do not trigger a recreate from readSycocaHeader()

(which is itself called from kbuildsycoca)

M  +1    -1    src/sycoca/ksycoca.cpp

http://commits.kde.org/kservice/0a719bb93110d125adb0218b3f9bfbe567851ae7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1544525</commentid>
    <comment_count>4</comment_count>
    <who name="Hussam Al-Tayeb">ht990332</who>
    <bug_when>2015-09-16 23:38:56 +0000</bug_when>
    <thetext>Hi, I updated from kservice 5.14.0 to 5.14.2 and stuff in ~/.cache/ now keep rebuilding every second.
I logged off and cleared ~/.cache and logged back in. It still rebuilds every second.

I downgraded to 5.14.0, logged off, cleared ~/.cache and logged back in. It no longer rebuilds every second.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1544526</commentid>
    <comment_count>5</comment_count>
    <who name="Hussam Al-Tayeb">ht990332</who>
    <bug_when>2015-09-16 23:40:25 +0000</bug_when>
    <thetext>Basically 5.14.0 works but 5.14.2 is broken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1544558</commentid>
    <comment_count>6</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2015-09-17 07:45:55 +0000</bug_when>
    <thetext>I don&apos;t follow; the bug report was for 5.14.0 in the first place....

If you upgrade again, is the problem still there?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1544559</commentid>
    <comment_count>7</comment_count>
    <who name="Hussam Al-Tayeb">ht990332</who>
    <bug_when>2015-09-17 07:47:56 +0000</bug_when>
    <thetext>Yes, it does.
There is bug about it in the distribution I use as well https://bugs.archlinux.org/task/46320</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1544564</commentid>
    <comment_count>8</comment_count>
    <who name="Leslie Zhai">zhaixiang</who>
    <bug_when>2015-09-17 08:02:37 +0000</bug_when>
    <thetext>(In reply to David Faure from comment #1)
&gt; Ouch.
&gt; 
&gt; I&apos;m about to make a 5.14.1 release of KService with this patch added, does
&gt; it fix your problem?
&gt; 
&gt; http://www.davidfaure.fr/2015/revert_format_change.diff
&gt; (for the kservice framework)
&gt; 
&gt; You wrote v5.4.1, I assume you meant 5.14.0?
Sorry, typo ;P 5.14.0
rpm -q kf5-kservice
kf5-kservice-5.14.0-2.x86_64


&gt; 
&gt; If the patch doesn&apos;t help, can you try moving out the ksycoca5 file; does it
&gt; then recreate it correctly and stop regenerating it?
I git pull from git@git.kde.org:kservice master branch, and I saw your commit ;-) https://quickgit.kde.org/?p=kservice.git&amp;a=commit&amp;h=87e346092d7d50b25ef930bbdb2effe6d9a103e4

I developed a monkey patch for myself yesterday ;P to limit rebuild times when checkTimestamps is not able to work correctly.


PS: I installed my Linux box in a future datetime, for example, 2025-09-16, then I experienced such issue - every components of plasma-desktop and workspace freeze~ today I rebuilt the latest git commit, it is OK now ;-)

Thank David`s cool job!

Regards,
Leslie Zhai - a KDE developer</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1544859</commentid>
    <comment_count>9</comment_count>
    <who name="Peer Frank">peer.frank</who>
    <bug_when>2015-09-19 07:14:21 +0000</bug_when>
    <thetext>is kservice 5.14.2 available to the public ?
Is the bug related to setting time, apparently not many are affected?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1545030</commentid>
    <comment_count>10</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2015-09-20 09:36:18 +0000</bug_when>
    <thetext>kservice 5.14.3 is available and works (unlike 5.14.2).

The bug is not related to setting time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1545940</commentid>
    <comment_count>11</comment_count>
    <who name="Bart">bart.polot</who>
    <bug_when>2015-09-24 02:44:14 +0000</bug_when>
    <thetext>This (or something related) keeps happening in 5.14.3, on Arch, on a user that used kde4 before. On a clean install on a different system it does not happen. Started after (by mistake) changing the &quot;region&quot; setting to &quot;Germany (nds_DE)&quot;. It changes the language to some german dialect (niederdeutsch, I guess from the language code). Deleting the .kde4 directory does not help.

It comes up for 1 minute after booting and goes away. As soon as I click on the K-menu, comes back again, changes the language of the menu and brings the system to a halt.

Changing the &quot;region&quot; setting to &quot;Deutschland (de_DE)&quot; fixes the problem.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>