[KDE/Mac] kf5-kate crashing due to dbus with a MacPorts-based KF5 installation

Marko Käning mk-lists at mailbox.org
Fri Oct 16 19:23:41 UTC 2015


Hi Christoph,

since you managed to get kate to run properly on OSX you might have a clue what’s going on here on my end.

I also have an unpatched - but concurrent - qt5-mac installed via MacPorts:
---
MVM7-2:kf5-kate marko$ port installed qt5-mac
The following ports are currently installed:
  qt5-mac @5.4.2_1 (active)
---


After installing ECM + KF5 version 5.15.0 from [1] on my MacPorts-based VM I tried to get Kate to work as well [2]
(i.e. 63 KF5-ports in total), but quickly ran into problems after installation when running kbuildsycoca5:
---
MVM7-2:kf5-kate marko$ sudo port install
--->  Computing dependencies for kf5-kate
--->  Fetching archive for kf5-kate
--->  Attempting to fetch kf5-kate-15.08.2_0.darwin_13.noarch.tbz2 from http://nue.de.packages.macports.org/macports/packages/kf5-kate
--->  Attempting to fetch kf5-kate-15.08.2_0.darwin_13.noarch.tbz2 from http://lil.fr.packages.macports.org/kf5-kate
--->  Attempting to fetch kf5-kate-15.08.2_0.darwin_13.noarch.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/kf5-kate
--->  Staging kf5-kate into destroot
Warning: kf5-kate installs files outside the common directory structure.
--->  Installing kf5-kate @15.08.2_0
--->  Activating kf5-kate @15.08.2_0
--->  Cleaning kf5-kate
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found.
MVM7-2:kf5-kate marko$ port installed kde-extra-cmake-modules "kf5-*" | wc
     64     195    2276
MVM7-2:kf5-kate marko$ kbuildsycoca5 
Could not find drkonqi at /opt/local/lib/libexec/drkonqi
kbuildsycoca5 running...
Recreating ksycoca file ("/Users/marko/Library/Caches/ksycoca5_en_HjB8uFgLxKMlDI1ZIKCVEp5OOe4=", version 303)
Menu "applications.menu" not found.
"applications.menu"  not found in  () 

Saving
---
As you can see kbuildsycoca5 threw a warning regarding applications.menu! Don’t know what’s responsible for that.
kbuildsycoca5 wants to start DrKonqi, which can’t be found either, which is no surprise to me by now anymore … :(

The above warning "Warning: kf5-kate installs files outside the common directory structure.” is due to the fact,
that my port file doesn’t install the files according to MacPorts’ rules regarding the directory structure.
For completeness I have appended the contents of the kf5-kate port at the end of this post.




When I now try to start Kate it crashes:
---
Process:         kate [76906]
Path:            /Applications/MacPorts/*/kate.app/Contents/MacOS/kate
Identifier:      ???
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  launchd [149]
Responsible:     kate [76906]
User ID:         501

Date/Time:       2015-10-16 20:16:05.669 +0200
OS Version:      Mac OS X 10.9.5 (13F1112)
Report Version:  11
Anonymous UUID:  8B90C2A1-54FD-0810-3AAD-E7AF67C41FDC


Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008

VM Regions Near 0x8:
--> 
    __TEXT                 000000010f904000-000000010f90f000 [   44K] r-x/rwx SM=COW  /Applications/MacPorts/*/kate.app/Contents/MacOS/kate

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   org.qt-project.QtWidgets      	0x0000000110dc9f2a QWidget::removeAction(QAction*) + 42
1   libkdeinit5_kate.dylib        	0x000000010f92bf14 KateMainWindow::toggleShowMenuBar(bool) + 60
2   libkdeinit5_kate.dylib        	0x000000010f92c60b KateMainWindow::KateMainWindow(KConfig*, QString const&) + 1331
3   libkdeinit5_kate.dylib        	0x000000010f91e03a KateApp::newMainWindow(KConfig*, QString const&) + 230
4   libkdeinit5_kate.dylib        	0x000000010f94837c KateSessionManager::loadSession(QExplicitlySharedDataPointer<KateSession> const&) const + 816
5   libkdeinit5_kate.dylib        	0x000000010f947eaf KateSessionManager::activateSession(QExplicitlySharedDataPointer<KateSession>, bool, bool) + 1427
6   libkdeinit5_kate.dylib        	0x000000010f9485ce KateSessionManager::activateSession(QString const&, bool, bool) + 64
7   libkdeinit5_kate.dylib        	0x000000010f9487b2 KateSessionManager::activateAnonymousSession() + 36
8   libkdeinit5_kate.dylib        	0x000000010f9492ab KateSessionManager::chooseSession() + 503
9   libkdeinit5_kate.dylib        	0x000000010f91d110 KateApp::startupKate() + 492
10  libkdeinit5_kate.dylib        	0x000000010f91ccf7 KateApp::init() + 355
11  libkdeinit5_kate.dylib        	0x000000010f95c594 kdemain + 23678
12  libdyld.dylib                 	0x00007fff984335fd start + 1
---




And this is what I see using the dbus-monitor:
---

VM7-2:kf5-kate marko$ dbus-monitor 
signal sender=org.freedesktop.DBus -> dest=:1.4 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.4"
method call sender=:1.4 -> dest=org.freedesktop.DBus serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "eavesdrop=true"
signal sender=org.freedesktop.DBus -> dest=(null destination) serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.5"
   string ""
   string ":1.5"
method call sender=:1.5 -> dest=org.freedesktop.DBus serial=1 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello
method call sender=:1.5 -> dest=org.freedesktop.DBus serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=ListNames
method call sender=:1.5 -> dest=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.kde.kglobalaccel'"
method call sender=:1.5 -> dest=org.freedesktop.DBus serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',path='/KIconLoader',interface='org.kde.KIconLoader',member='iconChanged'"
method call sender=:1.5 -> dest=org.freedesktop.DBus serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',path='/KToolBar',interface='org.kde.KToolBar',member='styleChanged'"
signal sender=org.freedesktop.DBus -> dest=(null destination) serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.5"
   string ":1.5"
   string “"
---



Could it be that this is caused by the toolbar’s icons not being found on my end?

Well, installing port oxygen-icons didn’t help.

     >>> I am giving up for now. <<<

Someone more experienced with MacPorts as well as KF5 needs to take over!

I hope that the port group kf5 and the port files I created in [1,2] can be of some help.

Greets,
Marko





[1] http://commits.kde.org/macports-kde/941c890bfec5b1dfd47c086fa634dc4d01690b27
[2] http://commits.kde.org/macports-kde/06f6c5f4dcf3037e6c2412bb29c4b9f45bdaecf3






---

Appendix - kf5-kate’s contents:

MVM7-2:kf5-kate marko$ port contents kf5-kate
Port kf5-kate contains:
  /Applications/MacPorts/KF5/kate.app/Contents/Info.plist
  /Applications/MacPorts/KF5/kate.app/Contents/MacOS/kate
  /Applications/MacPorts/KF5/kwrite.app/Contents/Info.plist
  /Applications/MacPorts/KF5/kwrite.app/Contents/MacOS/kwrite
  /Library/Application Support/kateproject/kateproject.example
  /Library/Application Support/katexmltools/html4-loose.dtd.xml
  /Library/Application Support/katexmltools/html4-strict.dtd.xml
  /Library/Application Support/katexmltools/kcfg.dtd.xml
  /Library/Application Support/katexmltools/kde-docbook.dtd.xml
  /Library/Application Support/katexmltools/kpartgui.dtd.xml
  /Library/Application Support/katexmltools/language.dtd.xml
  /Library/Application Support/katexmltools/simplify_dtd.xsl
  /Library/Application Support/katexmltools/testcases.xml
  /Library/Application Support/katexmltools/xhtml1-frameset.dtd.xml
  /Library/Application Support/katexmltools/xhtml1-strict.dtd.xml
  /Library/Application Support/katexmltools/xhtml1-transitional.dtd.xml
  /Library/Application Support/katexmltools/xslt-1.0.dtd.xml
  /Library/Application Support/plasma/plasmoids/org.kde.plasma.katesessions/contents/ui/KateSessionsItemDelegate.qml
  /Library/Application Support/plasma/plasmoids/org.kde.plasma.katesessions/contents/ui/Menu.qml
  /Library/Application Support/plasma/plasmoids/org.kde.plasma.katesessions/contents/ui/katesessions.qml
  /Library/Application Support/plasma/plasmoids/org.kde.plasma.katesessions/metadata.desktop
  /Library/Application Support/plasma/services/org.kde.plasma.katesessions.operations
  /Library/Preferences/katerc
  /Library/Preferences/ktexteditor_codesnippets_core.knsrc
  /opt/local/lib/libkdeinit5_kate.dylib
  /opt/local/lib/libkdeinit5_kwrite.dylib
  /opt/local/lib/plugins/ktexteditor/katebacktracebrowserplugin.so
  /opt/local/lib/plugins/ktexteditor/katebuildplugin.so
  /opt/local/lib/plugins/ktexteditor/katecloseexceptplugin.so
  /opt/local/lib/plugins/ktexteditor/katectagsplugin.so
  /opt/local/lib/plugins/ktexteditor/katefilebrowserplugin.so
  /opt/local/lib/plugins/ktexteditor/katefiletreeplugin.so
  /opt/local/lib/plugins/ktexteditor/kategdbplugin.so
  /opt/local/lib/plugins/ktexteditor/katekonsoleplugin.so
  /opt/local/lib/plugins/ktexteditor/kateopenheaderplugin.so
  /opt/local/lib/plugins/ktexteditor/kateprojectplugin.so
  /opt/local/lib/plugins/ktexteditor/katereplicodeplugin.so
  /opt/local/lib/plugins/ktexteditor/katesearchplugin.so
  /opt/local/lib/plugins/ktexteditor/katesnippetsplugin.so
  /opt/local/lib/plugins/ktexteditor/katesqlplugin.so
  /opt/local/lib/plugins/ktexteditor/katesymbolviewerplugin.so
  /opt/local/lib/plugins/ktexteditor/katexmltoolsplugin.so
  /opt/local/lib/plugins/ktexteditor/kterustcompletionplugin.so
  /opt/local/lib/plugins/ktexteditor/ktexteditor_lumen.so
  /opt/local/lib/plugins/ktexteditor/tabswitcherplugin.so
  /opt/local/lib/plugins/plasma/dataengine/plasma_engine_katesessions.so
  /opt/local/share/appdata/org.kde.kate.appdata.xml
  /opt/local/share/appdata/org.kde.kwrite.appdata.xml
  /opt/local/share/applications/org.kde.kate.desktop
  /opt/local/share/applications/org.kde.kwrite.desktop
  /opt/local/share/icons/hicolor/128x128/apps/kate.png
  /opt/local/share/icons/hicolor/16x16/actions/sql-field-pk.png
  /opt/local/share/icons/hicolor/16x16/actions/sql-field-red.png
  /opt/local/share/icons/hicolor/16x16/actions/sql-field.png
  /opt/local/share/icons/hicolor/16x16/actions/sql-table.png
  /opt/local/share/icons/hicolor/16x16/actions/sql-view.png
  /opt/local/share/icons/hicolor/16x16/apps/kate.png
  /opt/local/share/icons/hicolor/22x22/actions/debug-kategdb.png
  /opt/local/share/icons/hicolor/22x22/apps/kate.png
  /opt/local/share/icons/hicolor/32x32/apps/kate.png
  /opt/local/share/icons/hicolor/48x48/apps/kate.png
  /opt/local/share/icons/hicolor/64x64/apps/kate.png
  /opt/local/share/icons/hicolor/scalable/apps/kate.svgz
  /opt/local/share/kservices5/katesymbolviewerplugin.desktop
  /opt/local/share/kservices5/plasma-applet-org.kde.plasma.katesessions.desktop
  /opt/local/share/kservices5/plasma-dataengine-katesessions.desktop
  /opt/local/share/kxmlgui5/kate/kateui.rc
  /opt/local/share/kxmlgui5/katebuild/ui.rc
  /opt/local/share/kxmlgui5/katecloseexceptplugin/ui.rc
  /opt/local/share/kxmlgui5/katectags/ui.rc
  /opt/local/share/kxmlgui5/katefiletree/ui.rc
  /opt/local/share/kxmlgui5/kategdb/ui.rc
  /opt/local/share/kxmlgui5/katekonsole/ui.rc
  /opt/local/share/kxmlgui5/kateopenheaderplugin/ui.rc
  /opt/local/share/kxmlgui5/kateproject/ui.rc
  /opt/local/share/kxmlgui5/katereplicodeplugin/ui.rc
  /opt/local/share/kxmlgui5/katesearch/ui.rc
  /opt/local/share/kxmlgui5/katesnippets/ui.rc
  /opt/local/share/kxmlgui5/katesql/ui.rc
  /opt/local/share/kxmlgui5/katesymbolviewer/ui.rc
  /opt/local/share/kxmlgui5/katexmltools/ui.rc
  /opt/local/share/kxmlgui5/kterustcompletion/ui.rc
  /opt/local/share/kxmlgui5/kwrite/kwriteui.rc
  /opt/local/share/kxmlgui5/tabswitcher/ui.rc







More information about the kde-mac mailing list