[KDE/Mac] kbuildsycoca5/kded5 weirdness on OSX

Ian Wadham iandw.au at gmail.com
Thu Jan 29 23:49:37 UTC 2015

Hi Marko,

I noticed that some KDE developers have been having troubles with kded5
lately [a].  These things have a habit of coming back periodically, whenever
there is a change to kded [b].  Bug report [b] runs from 2014-07-21 to yesterday…

I also remember something in the last week or two about a new kded module
called Bluedevil causing some problems.

There is a tip at [c] on how to turn off individual modules in kded5.  Try turning
off a few.  The worst that can happen is that you crash or hang…

The comments at [d] and following may be interesting and the dates and times
may correlate with your own experiences, i.e. Did anything in kded or kbuildsycoca
change just before you started having problems?… ;-)  Or did something change
a while back, but you just recently rebuilt kded and kbuildsycoca?...

Happy hunting… or workarounds… :-)

Cheers, Ian W.

[a] https://git.reviewboard.kde.org/r/122270/ (click "Expand All" and search for "100%")
[b] https://bugs.kde.org/show_bug.cgi?id=337674
[c] https://bugs.kde.org/show_bug.cgi?id=337674#c1
[d] https://bugs.kde.org/show_bug.cgi?id=337674#c53

On 30/01/2015, at 7:50 AM, Marko Käning wrote:
> I - right away - coming back to your offer to look into the daemon/services stuff. :)
> I had a chat with Ben a few days ago, since my kbuildsycoca5 suddenly needs a _long_
> time to run on the OSX/CI system.
> Test-runs I do these days using my run.sh script [1], which ensures that (hopefully all)
> necessary files are found by any project installed and running on my OSX/CI system. But
> I suspect this assumption is not yet fully true, as there are still some problems with
> certain files (themes, icon, etc.).
> If the respective *.env file doesn’t exist from a previous run, this script makes
> sure it gets created.
> E.g. for kanagram I see this:
> ------------------------------------------------------------------------------------------
> $ ./run.sh kde/kdeedu kanagram
> Creating environment as 'kanagram.env' ...
> Environment variables set by kanagram:
> export KDEDIRS
> export XDG_DATA_DIRS
> ---
> Calling kbuildsycoca5 every time is with ~ 1 minute far too slow atm (this wasn't the case before, I believe!)
> ---
> Could not find drkonqi at /opt/kde/install/darwin/mavericks/clang/kf5-qt5/frameworks/kcrash/inst/lib/libexec/drkonqi
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/var/folders/xd/_025xt7j6dggsjd0_6tczq180000gn/T/runtime-marko'
> kbuildsycoca5 running...
> kf5.kservice.sycoca: Trying to open ksycoca from "/Users/marko/Library/Caches/ksycoca5"
> Recreating ksycoca file ("/Users/marko/Library/Caches/ksycoca5", version 300)
> Menu "applications-kmenuedit.menu" not found.
> Saving
> Emitting notifyDatabaseChanged ("services", "servicetypes", "xdgdata-mime", "apps")
> real	1m10.382s
> user	0m8.920s
> sys	0m19.882s
> ---
> Could not find drkonqi at /opt/kde/install/darwin/mavericks/clang/kf5-qt5/frameworks/kcrash/inst/lib/libexec/drkonqi
> Checking path  "/opt/kde/install/darwin/mavericks/clang/kf5-qt5/kde/kdeedu/kdeedu-data/inst/share/apps/kvtml"  for kvtml files
> HunspellClient::HunspellClient
> No language dictionaries for the language: "en"
> org.kde.kanagram: Created game and engine helper
> org.kde.kanagram: Set all context properties
> org.kde.kanagram: Setup declarative engine
> libpng warning: iCCP: known incorrect sRGB profile
> libpng warning: iCCP: known incorrect sRGB profile
> libpng warning: iCCP: known incorrect sRGB profile
> libpng warning: iCCP: too many profiles
> libpng warning: iCCP: known incorrect sRGB profile
> libpng warning: iCCP: known incorrect sRGB profile
> org.kde.kanagram: Set qml file location
> ------------------------------------------------------------------------------------------
> I inserted a “time” before kbuildsycoca5 above and measure more than a _minute_ usually for
> the time needed to run it once. Ben verified for me that this is very unusual and the big
> question is where the program spends its time.
> As I have pointed out in [2] also kded5 spends a hell of a time (20 min) in walking OSX'
> file system below /Applications. It needs so much time in there since it searches through
> every application package installed in there. This takes very much time for the developer
> tools in Xcode.app…
> I suggested to make kded5 more intelligent and simply SKIP entering all the app packages 
> in these searches, but there was no response to that.
> Was that suggestion nonsensical?
> I suspect that kbuildsycoca5 is hit by just the same issue here!!! :-/
> 	Do you see something similar on your end?
> Well, and since I don’t want to run kded5 for 20 mins just to be able to test-run some
> KF5 application I have to live with that some apps call kbuildsycoca5 when I call for
> certain actions which involve access to the file system or whatever...
> Please read [2], as this is a nice example of the trouble found on OSX wrt KF5.
> Greets,
> Marko
> [1] http://quickgit.kde.org/?p=clones%2Fwebsites%2Fbuild-kde-org%2Fkaning%2Fmp-osx-ci.git&a=blob&h=fe9bc2d0502492032278c66bbd60773e7a548d5b&hb=e7822a0f8cf12a50f678d957abcba84b65216df0&f=run.sh
> [2] http://mail.kde.org/pipermail/kde-mac/2015-January/003150.html
> _______________________________________________
> kde-mac at kde.org
> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
> KDE/Mac Information: http://community.kde.org/Mac

More information about the kde-mac mailing list