Kde Settings crashes (Segmentation fault) when accesssing Fonts menu

kde

#1

When accessing Fonts from the Settings menu, it crashes. When launching Font Management from the task bar, it’s ok, when opening Fonts from the taskbar, it crashes.

Launching systemsettings5 from Terminal
$ systemsettings5
QCoreApplication::arguments: Please instantiate the QApplication object first
WARNING: viewBackgroundColor is deprecated, use backgroundColor with colorSet: Theme.View instead
file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/private/MobileTextActionsToolBar.qml:48: TypeError: Cannot read property 'height' of null
file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/private/MobileTextActionsToolBar.qml:37: TypeError: Cannot read property 'width' of null
WARNING: viewBackgroundColor is deprecated, use backgroundColor with colorSet: Theme.View instead
KActivities: Database connection:  "kactivities_db_resources_139794761830464_readonly"
query_only:          QVariant(qlonglong, 1)
journal_mode:        QVariant(QString, "wal")
wal_autocheckpoint:  QVariant(qlonglong, 100)
synchronous:         QVariant(qlonglong, 0)
Nothing to load - the client id is empty
Nothing to load - the client id is empty
file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
WARNING: viewBackgroundColor is deprecated, use backgroundColor with colorSet: Theme.View instead
org.kde.kcoreaddons: Error loading plugin "kcm_fonts" "The shared library was not found."
Plugin search paths are ("/usr/lib/qt/plugins", "/usr/bin")
The environment variable QT_PLUGIN_PATH might be not correctly set
file:///usr/lib/qt/qml/org/kde/kirigami.2/templates/AbstractApplicationHeader.qml:113: TypeError: Cannot read property 'globalToolBarItem' of null
file:///usr/share/kpackage/kcms/kcm_fonts/contents/ui/main.qml:192:21: QML Image: Invalid image provider: image://preview/0_0.png
file:///usr/share/kpackage/kcms/kcm_fonts/contents/ui/main.qml:192:21: QML Image: Invalid image provider: image://preview/0_0.png
file:///usr/share/kpackage/kcms/kcm_fonts/contents/ui/main.qml:155:21: QML Image: Invalid image provider: image://preview/0_0.png
file:///usr/share/kpackage/kcms/kcm_fonts/contents/ui/main.qml:155:21: QML Image: Invalid image provider: image://preview/0_0.png
file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/ComboBox.qml:137:13: Unable to assign [undefined] to QQmlComponent*
file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/ComboBox.qml:137:13: Unable to assign [undefined] to QQmlComponent*
file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/ComboBox.qml:137:13: Unable to assign [undefined] to QQmlComponent*
Segmentation fault (core dumped)
journalctl
jan 04 03:00:21 Basilisco kcmshell5[31879]: org.kde.kcoreaddons: Error loading plugin "kcm_fonts" "The shared library was not found."
Plugin search paths are ("/usr/lib/qt/plugins", "/usr/bin")
The environment variable QT_PLUGIN_PATH might be not correctly set
jan 04 03:00:21 Basilisco kcmshell5[31879]: file:///usr/lib/qt/qml/org/kde/kirigami.2/templates/AbstractApplicationHeader.qml:113: TypeError: Cannot read property 'globalToolBarItem' of null
jan 04 03:00:21 Basilisco kcmshell5[31879]: file:///usr/share/kpackage/kcms/kcm_fonts/contents/ui/main.qml:192:21: QML Image: Invalid image provider: image://preview/0_0.png
jan 04 03:00:21 Basilisco kcmshell5[31879]: file:///usr/share/kpackage/kcms/kcm_fonts/contents/ui/main.qml:192:21: QML Image: Invalid image provider: image://preview/0_0.png
jan 04 03:00:21 Basilisco kcmshell5[31879]: file:///usr/share/kpackage/kcms/kcm_fonts/contents/ui/main.qml:155:21: QML Image: Invalid image provider: image://preview/0_0.png
jan 04 03:00:21 Basilisco kcmshell5[31879]: file:///usr/share/kpackage/kcms/kcm_fonts/contents/ui/main.qml:155:21: QML Image: Invalid image provider: image://preview/0_0.png
jan 04 03:00:21 Basilisco kcmshell5[31879]: file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
jan 04 03:00:21 Basilisco kcmshell5[31879]: file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
jan 04 03:00:21 Basilisco kcmshell5[31879]: file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
jan 04 03:00:21 Basilisco kcmshell5[31879]: file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
jan 04 03:00:21 Basilisco kcmshell5[31879]: file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
jan 04 03:00:21 Basilisco kcmshell5[31879]: file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
jan 04 03:00:21 Basilisco kcmshell5[31879]: file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/ComboBox.qml:137:13: Unable to assign [undefined] to QQmlComponent*
jan 04 03:00:21 Basilisco kcmshell5[31879]: file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/ComboBox.qml:137:13: Unable to assign [undefined] to QQmlComponent*
jan 04 03:00:21 Basilisco kcmshell5[31879]: file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/ComboBox.qml:137:13: Unable to assign [undefined] to QQmlComponent*
jan 04 03:00:21 Basilisco audit[31879]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=2 pid=31879 comm="kcmshell5" exe="/usr/bin/kcmshell5" sig=11 res=1
jan 04 03:00:21 Basilisco kernel: kcmshell5[31879]: segfault at 0 ip 0000000000000000 sp 00007ffeab70fc38 error 14 in kcmshell5[55b7811c1000+1000]
jan 04 03:00:21 Basilisco kernel: Code: Bad RIP value.
jan 04 03:00:21 Basilisco kernel: audit: type=1701 audit(1546578021.852:143): auid=1000 uid=1000 gid=1000 ses=2 pid=31879 comm="kcmshell5" exe="/usr/bin/kcmshell5" sig=11 res=1
jan 04 03:00:21 Basilisco systemd[1]: Started Process Core Dump (PID 31919/UID 0).
jan 04 03:00:21 Basilisco audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@14-31919-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
jan 04 03:00:21 Basilisco kernel: audit: type=1130 audit(1546578021.862:144): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@14-31919-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? re>
jan 04 03:00:22 Basilisco kwin_x11[1201]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 19141, resource id: 85983247, major code: 15 (QueryTree), minor code: 0
jan 04 03:00:22 Basilisco systemd-coredump[31920]: Process 31879 (kcmshell5) of user 1000 dumped core.
Stack trace of thread 31879:
#0  0x0000000000000000 n/a (n/a)
#1  0x00007f1fe0a176c0 n/a (libQt5Core.so.5)
jan 04 03:00:22 Basilisco audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@14-31919-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

There is a kcm_fonts.so in /usr/lib/qt/plugins/kcms/

I reinstalled plasma-desktop and kcoreaddons to no effect.


#2

This was probably an issue back in 2017, that was fixed. It’s presence on your system means you either tempered with the environment variables, or you installed KDE Plasma over some other DE.
This might help:

  • make sure your system is updated
    sudo pacman -Syyu

  • try to reinstall then reboot
    sudo pacman -S manjaro-kde-settings kdeclarative qt5-declarative

  • what is the output of
    echo $QT_PLUGIN_PATH


#3

I did installed openbox to be able to run steam on nvidia-xrun, maybe that changed something.

Nothing returns from echo $QT_PLUGIN_PATH.

I synchronized, reinstalled the packages, rebooted but nothing changed.


#4

That is ok then :slight_smile: The expected behavior …

That should not change anything to plasma-session aka startkde but now i wonder if you are not on openbox-kde-session and that replaces Kwin with the openbox WM …


#5

I reboot to check if I was in a Plasma session and at least in SDDM it says I am but I don’t know how to check it in terminal. I tried then to open an kde/openbox session and open the fonts menu, it gave the same error.

Googling for the error I found an unrelated bug report saying the error loading plugin it’s harmless, so I load the same live disk I used to install, fonts menu is working and indeed the same plugin error is there.

launching fonts menu from systemsetting5 in terminal on a live disk (18.0)

$ systemsettings5
QCoreApplication::arguments: Please instantiate the QApplication object first
WARNING: viewBackgroundColor is deprecated, use backgroundColor with colorSet: Theme.View instead
WARNING: viewBackgroundColor is deprecated, use backgroundColor with colorSet: Theme.View instead
KActivities: Database connection: “kactivities_db_resources_140228386229440_readonly”
query_only: QVariant(qlonglong, 1)
journal_mode: QVariant(QString, “wal”)
wal_autocheckpoint: QVariant(qlonglong, 100)
synchronous: QVariant(qlonglong, 0)
Nothing to load - the client id is empty
Nothing to load - the client id is empty
org.kde.kcoreaddons: Error loading plugin “kcm_fonts” “The shared library was not found.”
Plugin search paths are ("/usr/lib/qt/plugins", “/usr/bin”)
The environment variable QT_PLUGIN_PATH might be not correctly set
file:///usr/share/kpackage/kcms/kcm_fonts/contents/ui/main.qml:192:21: QML Image: Invalid image provider: image://preview/0_0.png
file:///usr/share/kpackage/kcms/kcm_fonts/contents/ui/main.qml:192:21: QML Image: Invalid image provider: image://preview/0_0.png
file:///usr/share/kpackage/kcms/kcm_fonts/contents/ui/main.qml:155:21: QML Image: Invalid image provider: image://preview/0_0.png
file:///usr/share/kpackage/kcms/kcm_fonts/contents/ui/main.qml:155:21: QML Image: Invalid image provider: image://preview/0_0.png
Using fontconfig file: “/home/manjaro/.config/fontconfig/fonts.conf”
KActivitiesStats( 0x5610fca84bb0 ) ResultModelPrivate::onResultScoreUpdated result added: “kcm:kcm_fonts.desktop” score: 0 last: 1546696857 first: 1546696857

Then I did a compare on the two outputs and the most noticeable difference is QtQuick and Kirigami, which I guess correspond to qt5-quickcontrols, qt-quickcontrols2 and kirigami2, but i reinstalled, rebooted it and it didn’t changed the error.


#6

I’m having the exact same issue, and yes I did install KDE Plasma over another desktop. I’m using a Surface Pro 4 and thought that the Cinnamon desktop would work well with it, since Cinnamon supports auto rotating the screen out of the box. It was a disaster! Cinnamon doesn’t work well with my touchscreen. I decided to try KDE. I used this wiki https://wiki.manjaro.org/index.php/Install_Desktop_Environments#KDE_Plasma_5 to install the full Plasma desktop and SDDM. That was 4 days ago. I just noticed the systemsettings font crash issue last night. Is there a way to fix this without doing a fresh install? I don’t want to lose all of the tweaks I have made in the last 4 days.

BTW, I installed the packages that were listed. I also check the path output. It was blank.