Solved: Discover crashes

This is from Konsole:

$ plasma-discover
WARNING: Cannot find style "org.kde.desktop" - fallback: "/usr/lib64/qt5/qml/QtQuick/Controls/Styles/Desktop"
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = plasma-discover path = /usr/bin pid = 14493
KCrash: Arguments: /usr/bin/plasma-discover 
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
sock_file=/run/user/1001/kdeinit5__0

[1]+  Stopped                 plasma-discover

$ QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
Unable to start Dr. Konqi
Re-raising signal for core dump handling.

[1]+  Segmentation fault      (core dumped) plasma-discover

This is journalctl output:

Nov 25 12:37:02 ben79-pc plasma-discover[14436]: WARNING: Cannot find style "org.kde.desktop" - fallback: "/usr/lib64/qt5/qml/QtQuick/Controls/Styles/Desktop"
Nov 25 12:37:02 ben79-pc plasmashell[4872]: QQuickItem::stackAfter: Cannot stack after 0x44f22f0, which must be a sibling
Nov 25 12:37:06 ben79-pc plasma-discover[14448]: WARNING: Cannot find style "org.kde.desktop" - fallback: "/usr/lib64/qt5/qml/QtQuick/Controls/Styles/Desktop"
Nov 25 12:37:06 ben79-pc plasmashell[4872]: QQuickItem::stackAfter: Cannot stack after 0x67d2700, which must be a sibling
Nov 25 12:37:09 ben79-pc plasma-discover[14460]: WARNING: Cannot find style "org.kde.desktop" - fallback: "/usr/lib64/qt5/qml/QtQuick/Controls/Styles/Desktop"
Nov 25 12:37:09 ben79-pc plasmashell[4872]: QQuickItem::stackAfter: Cannot stack after 0x6ac4610, which must be a sibling
Nov 25 12:37:10 ben79-pc plasma-discover[14472]: "Message recipient disconnected from message bus without replying"
Nov 25 12:37:15 ben79-pc plasma-discover[14477]: WARNING: Cannot find style "org.kde.desktop" - fallback: "/usr/lib64/qt5/qml/QtQuick/Controls/Styles/Desktop"
Nov 25 12:37:15 ben79-pc plasmashell[4872]: QQuickItem::stackAfter: Cannot stack after 0x59e1510, which must be a sibling
Nov 25 12:37:21 ben79-pc plasmashell[4872]: QXcbConnection: XCB error: 2 (BadValue), sequence: 52054, resource id: 73400336, major code: 143 (Unknown), minor code: 3
Nov 25 12:37:21 ben79-pc plasmashell[4872]: QXcbConnection: XCB error: 2 (BadValue), sequence: 52098, resource id: 65011728, major code: 143 (Unknown), minor code: 3
Nov 25 12:37:28 ben79-pc su[14262]: pam_unix(su-l:session): session closed for user root
Nov 25 12:37:34 ben79-pc plasmashell[4872]: QQuickItem::stackAfter: Cannot stack after 0x676a450, which must be a sibling
Nov 25 12:38:02 ben79-pc kwin_x11[4868]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 49108, resource id: 94371845, major code: 18 (ChangeProperty), minor code: 0
Nov 25 12:38:03 ben79-pc systemd[1]: Created slice system-systemd\x2dcoredump.slice.
Nov 25 12:38:03 ben79-pc systemd[1]: Started Process Core Dump (PID 14507/UID 0).
Nov 25 12:38:03 ben79-pc systemd-coredump[14508]: Failed to generate stack trace: Unwinding not supported for this architecture
Nov 25 12:38:03 ben79-pc systemd-coredump[14508]: Process 14436 (plasma-discover) of user 1001 dumped core.
Nov 25 12:38:06 ben79-pc kwin_x11[4868]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 49893, resource id: 96468997, major code: 18 (ChangeProperty), minor code: 0
Nov 25 12:38:07 ben79-pc systemd[1]: Started Process Core Dump (PID 14517/UID 0).
Nov 25 12:38:07 ben79-pc systemd-coredump[14518]: Failed to generate stack trace: Unwinding not supported for this architecture
Nov 25 12:38:07 ben79-pc systemd-coredump[14518]: Process 14448 (plasma-discover) of user 1001 dumped core.
Nov 25 12:38:09 ben79-pc kwin_x11[4868]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 50630, resource id: 98566149, major code: 18 (ChangeProperty), minor code: 0
Nov 25 12:38:10 ben79-pc systemd[1]: Started Process Core Dump (PID 14524/UID 0).
Nov 25 12:38:10 ben79-pc systemd-coredump[14526]: Failed to generate stack trace: Unwinding not supported for this architecture
Nov 25 12:38:10 ben79-pc systemd-coredump[14526]: Process 14460 (plasma-discover) of user 1001 dumped core.
Nov 25 12:38:15 ben79-pc kwin_x11[4868]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 52699, resource id: 100663301, major code: 18 (ChangeProperty), minor code: 0
Nov 25 12:38:15 ben79-pc plasmashell[4872]: QXcbConnection: XCB error: 2 (BadValue), sequence: 53153, resource id: 65011728, major code: 143 (Unknown), minor code: 3
Nov 25 12:38:16 ben79-pc systemd[1]: Started Process Core Dump (PID 14532/UID 0).
Nov 25 12:38:16 ben79-pc systemd-coredump[14533]: Failed to generate stack trace: Unwinding not supported for this architecture
Nov 25 12:38:16 ben79-pc systemd-coredump[14533]: Process 14477 (plasma-discover) of user 1001 dumped core.
Nov 25 12:38:34 ben79-pc kwin_x11[4868]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 57354, resource id: 102760453, major code: 18 (ChangeProperty), minor code: 0
Nov 25 12:38:35 ben79-pc systemd[1]: Started Process Core Dump (PID 14580/UID 0).
Nov 25 12:38:35 ben79-pc systemd-coredump[14581]: Failed to generate stack trace: Unwinding not supported for this architecture
Nov 25 12:38:35 ben79-pc systemd-coredump[14581]: Process 14493 (plasma-discover) of user 1001 dumped core.

When I tried Discover, it doesnā€™t crash. I get the following (plus the discover window)

plasma-discover
WARNING: Cannot find style ā€œorg.kde.desktopā€ - fallback: ā€œ/usr/lib64/qt5/qml/QtQuick/Controls/Styles/Desktopā€

(process:32456): flatpak-WARNING **: Unable to create FlatpakInstallation for: Permission denied
Failed to call flatpak_get_system_installations: Permission denied

(process:32456): OSTree-CRITICAL **: ostree_repo_open: assertion ā€˜error == NULL || *error == NULLā€™ failed
Failed to setup flatpak installations: Permission denied
invalid kns backend! ā€œ/home/christanner/.config/ksysguard.knsrcā€ because: ā€œConfig group not found! Check your KNS3 installation.ā€
invalid kns backend! ā€œ/etc/xdg/ksysguard.knsrcā€ because: ā€œConfig group not found! Check your KNS3 installation.ā€
invalid kns backend! ā€œ/etc/xdg/servicemenu.knsrcā€ because: ā€œConfig group not found! Check your KNS3 installation.ā€
Discarding invalid backend ā€œflatpak-backendā€
Discarding invalid backend ā€œksysguard.knsrcā€
Discarding invalid backend ā€œksysguard.knsrcā€
Discarding invalid backend ā€œservicemenu.knsrcā€
failed PackageKit::Transaction::Exit(ExitUnknown) PackageKit::Transaction(0x3497aa0)
Transaction error: ā€œToo few items to processā€ PackageKit::Transaction(0x3497aa0)
failed PackageKit::Transaction::Exit(ExitFailed) PackageKit::Transaction(0x3497aa0)
failed PackageKit::Transaction::Exit(ExitUnknown) PackageKit::Transaction(0x34978e0)
Transaction error: ā€œToo few items to processā€ PackageKit::Transaction(0x34978e0)
failed PackageKit::Transaction::Exit(ExitFailed) PackageKit::Transaction(0x34978e0)
org.kde.knewstuff.core: ā€œHost newstuff.kde.org not foundā€
kns error ā€œ/etc/xdg/kblocks.knsrcā€ ā€œLoading of providers from file: http://newstuff.kde.org/cgi-bin/hotstuff-provider?site=kblocks failedā€
org.kde.knewstuff.core: ā€œHost newstuff.kde.org not foundā€
kns error ā€œ/etc/xdg/kdiamond.knsrcā€ ā€œLoading of providers from file: http://newstuff.kde.org/cgi-bin/hotstuff-provider?site=kdiamond failedā€
org.kde.knewstuff.core: ā€œError transferring https://kdenlive.org/data/mltprofilesources.xml - server replied: Not Foundā€
kns error ā€œ/etc/xdg/kdenlive_projectprofiles.knsrcā€ ā€œLoading of providers from file: https://kdenlive.org/data/mltprofilesources.xml failedā€
org.kde.knewstuff.core: Could not find category ā€œKAddressbook Themeā€
invalid kns backend! ā€œ/etc/xdg/kaddressbook_themes.knsrcā€ because: ā€œAll categories are missingā€
Discarding invalid backend ā€œkaddressbook_themes.knsrcā€
qrc:/qml/DiscoverDrawer.qml:155: TypeError: Cannot read property ā€˜nameā€™ of null
kns error ā€œ/etc/xdg/kaddressbook_themes.knsrcā€ ā€œAll categories are missingā€
org.kde.knewstuff.core: Could not find category ā€œFcitx Themeā€
invalid kns backend! ā€œ/etc/xdg/fcitx-skin.knsrcā€ because: ā€œAll categories are missingā€
Discarding invalid backend ā€œfcitx-skin.knsrcā€
qrc:/qml/DiscoverDrawer.qml:155: TypeError: Cannot read property ā€˜nameā€™ of null
kns error ā€œ/etc/xdg/fcitx-skin.knsrcā€ ā€œAll categories are missingā€
org.kde.knewstuff.core: Could not find category ā€œXfce Icon Themeā€
invalid kns backend! ā€œ/etc/xdg/cgcicon.knsrcā€ because: ā€œAll categories are missingā€
Discarding invalid backend ā€œcgcicon.knsrcā€
qrc:/qml/DiscoverDrawer.qml:155: TypeError: Cannot read property ā€˜nameā€™ of null
kns error ā€œ/etc/xdg/cgcicon.knsrcā€ ā€œAll categories are missingā€

Regards,

Chris

FWIW:

$ rpm -qa | grep discover
lib64hpdiscovery0-3.16.10-1-omv2015.0.x86_64
discover-5.10.5-2-omv2015.0.x86_64
discover-backend-kns-5.10.5-2-omv2015.0.x86_64
discover-backend-flatpak-5.10.5-2-omv2015.0.x86_64
discover-backend-packagekit-5.10.5-2-omv2015.0.x86_64
discover-notifier-5.10.5-2-omv2015.0.x86_64

Please could you provide the coredump?

Please check if you installed the same discover backends as @ben79, especially discover-backend-kns.

Um, I thought that was in the journalctl ourput?

Anyway this is from coredupmctl:

Sat 2017-11-25 12:38:03 CST   14436  1001  1006  11 present   /usr/bin/plasma-discover
Sat 2017-11-25 12:38:07 CST   14448  1001  1006  11 present   /usr/bin/plasma-discover
Sat 2017-11-25 12:38:10 CST   14460  1001  1006  11 present   /usr/bin/plasma-discover
Sat 2017-11-25 12:38:16 CST   14477  1001  1006  11 present   /usr/bin/plasma-discover
Sat 2017-11-25 12:38:35 CST   14493  1001  1006  11 present   /usr/bin/plasma-discover

The plot thickens. The above report was based on my desktop on my notebook so far Discover seems to be working unless I just updated something that will break it. We shall see.

I do have the same discover backends as @ben79.

@christopher_tanner

Please could you post the output of the following commands?

ls -l /etc/xdg/ksysguard.knsrc
rpm -qf /etc/xdg/ksysguard.knsrc
ls -l /etc/xdg/servicemenu.knsrc
rpm -qf /etc/xdg/servicemenu.knsrc

Also could you check if $HOME/.local/share/flatpak/ exists?. In this case you may also try to rename this before to start discover.

What about the following?

sudo coredumpctl gdb 14436

Once you reach (gdb) prompt then you may use backtrace or _bt_to show the backtrace and quit or q to quit.

I can post it all in pasetbin if needed but it is mostly like:

warning: /etc/gdbinit.d/gdb-heap.py: No such file or directory
Reading symbols from /usr/bin/plasma-discover...Missing separate debuginfo for /usr/bin/plasma-discover
...
warning: File "/lib64/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path /lib64/libthread_db-1.0.so
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"

warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
...
warning: File "/lib64/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".

warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
Core was generated by `/usr/bin/plasma-discover --mode update'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f4f39acf466 in raise () from /lib64/libc.so.6
(gdb)

Edit:

$ rpm -qa | grep gdb
lib64gdbm4-1.13-1-omv2015.0.x86_64
lib64gdbm_compat4-1.13-1-omv2015.0.x86_64
wireless-regdb-20170307-1-omv2015.0.noarch
gdb-7.7.1_2014.06_1-5-omv2015.0.x86_64

The important infos are the ones before backtrace (or bt) command.

You mean like this?

(gdb) backtrace
#0  0x00007f4f39acf466 in raise () from /lib64/libc.so.6
#1  0x00007f4f3bcc0976 in KCrash::defaultCrashHandler(int) () from /usr/lib64/libKF5Crash.so.5
#2  <signal handler called>
#3  0x00007f4f32a4001e in IaOraQt::subElementRect(QStyle::SubElement, QStyleOption const*, QWidget const*) const () from /usr/lib64/qt5/plugins/styles/libiaora-qt.so
#4  0x00007f4f3069bf1f in ?? () from /usr/lib64/qt5/qml/QtQuick/Controls/libqtquickcontrolsplugin.so
#5  0x00007f4f3a51ec2d in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#6  0x00007f4f3b8ba009 in QQuickItem::setImplicitSize(double, double) () from /usr/lib64/libQt5Quick.so.5
#7  0x00007f4f3069c081 in ?? () from /usr/lib64/qt5/qml/QtQuick/Controls/libqtquickcontrolsplugin.so
#8  0x00007f4f3a984e8c in ?? () from /usr/lib64/libQt5Qml.so.5
#9  0x00007f4f3a9e72e7 in ?? () from /usr/lib64/libQt5Qml.so.5
#10 0x00007f4f3a9e857d in ?? () from /usr/lib64/libQt5Qml.so.5
#11 0x00007f4f3a9e6952 in ?? () from /usr/lib64/libQt5Qml.so.5
#12 0x00007f4f3a9e9727 in ?? () from /usr/lib64/libQt5Qml.so.5
#13 0x00007f4f3a9e6018 in ?? () from /usr/lib64/libQt5Qml.so.5
#14 0x00007f4f3a9e553c in ?? () from /usr/lib64/libQt5Qml.so.5
#15 0x00007f4f3a98941a in ?? () from /usr/lib64/libQt5Qml.so.5
#16 0x00007f4f3a988fea in QQmlEnginePrivate::incubate(QQmlIncubator&, QQmlContextData*) () from /usr/lib64/libQt5Qml.so.5
#17 0x00007f4f3a986b8c in QQmlComponent::create(QQmlIncubator&, QQmlContext*, QQmlContext*) () from /usr/lib64/libQt5Qml.so.5
#18 0x00007f4f3b931b28 in ?? () from /usr/lib64/libQt5Quick.so.5
#19 0x00007f4f3a984e8c in ?? () from /usr/lib64/libQt5Qml.so.5
#20 0x00007f4f3a9de6b7 in ?? () from /usr/lib64/libQt5Qml.so.5
#21 0x00007f4f3a9de465 in ?? () from /usr/lib64/libQt5Qml.so.5
#22 0x00007f4f3a9dce75 in QQmlBinding::update(QFlags<QQmlPropertyData::WriteFlag>) () from /usr/lib64/libQt5Qml.so.5
#23 0x00007f4f3a9c03d5 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () from /usr/lib64/libQt5Qml.so.5
#24 0x00007f4f3a51e2cf in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#25 0x00007f4f3a97156d in QQmlVMEMetaObject::metaCall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib64/libQt5Qml.so.5
#26 0x00007f4f3a9713f5 in QQmlVMEMetaObject::metaCall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib64/libQt5Qml.so.5
#27 0x00007f4f3a984e6a in ?? () from /usr/lib64/libQt5Qml.so.5
#28 0x00007f4f3a9de6b7 in ?? () from /usr/lib64/libQt5Qml.so.5
#29 0x00007f4f3a9de465 in ?? () from /usr/lib64/libQt5Qml.so.5
#30 0x00007f4f3a9dce75 in QQmlBinding::update(QFlags<QQmlPropertyData::WriteFlag>) () from /usr/lib64/libQt5Qml.so.5
#31 0x00007f4f3a9c03d5 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () from /usr/lib64/libQt5Qml.so.5
#32 0x00007f4f3a51e2cf in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#33 0x00007f4f3b931e4a in ?? () from /usr/lib64/libQt5Quick.so.5
#34 0x00007f4f3a989534 in ?? () from /usr/lib64/libQt5Qml.so.5
#35 0x00007f4f3a988fea in QQmlEnginePrivate::incubate(QQmlIncubator&, QQmlContextData*) () from /usr/lib64/libQt5Qml.so.5
#36 0x00007f4f3a986b8c in QQmlComponent::create(QQmlIncubator&, QQmlContext*, QQmlContext*) () from /usr/lib64/libQt5Qml.so.5
#37 0x00007f4f3b931b28 in ?? () from /usr/lib64/libQt5Quick.so.5
---Type <return> to continue, or q <return> to quit---
#38 0x00007f4f3a9e9cff in ?? () from /usr/lib64/libQt5Qml.so.5
#39 0x00007f4f3a986827 in QQmlComponentPrivate::complete(QQmlEnginePrivate*, QQmlComponentPrivate::ConstructionState*) () from /usr/lib64/libQt5Qml.so.5
#40 0x00007f4f3a9858ae in QQmlComponentPrivate::completeCreate() () from /usr/lib64/libQt5Qml.so.5
#41 0x00007f4f3a9862ac in QQmlComponent::create(QQmlContext*) () from /usr/lib64/libQt5Qml.so.5
#42 0x00007f4f3a9dfaad in QQmlApplicationEnginePrivate::_q_finishLoad(QObject*) () from /usr/lib64/libQt5Qml.so.5
#43 0x00007f4f3a9dfe60 in QQmlApplicationEngine::load(QUrl const&) () from /usr/lib64/libQt5Qml.so.5
#44 0x00000000004110d3 in ?? ()
#45 0x000000000040e1c7 in ?? ()
#46 0x00007f4f39ac1058 in __libc_start_main () from /lib64/libc.so.6
#47 0x000000000040c2ea in _start ()
1 Like

Itā€™s this:

#3 0x00007f4f32a4001e in IaOraQt::subElementRect(QStyle::SubElement, QStyleOption const*, QWidget const*) const () from /usr/lib64/qt5/plugins/styles/libiaora-qt.so

I was using an IaOra theme from someones personal repo. If i switch to Breeze or QtCurve theme Discover works. Itā€™s still a turd but it works.

1 Like

I meant exactly this but unfortunately there is nothing related to drkonqi :slightly_frowning_face:.

What about this?

rpm -qf /usr/lib64/libexec/drkonqi

$ rpm -qf /usr/lib64/libexec/drkonqi
plasma-workspace-5.10.5-2-omv2015.0.x86_64

1 Like

And once again because of @mandian Iā€™ve been forced against my will to learn something. :fearful:

Edit: Closing topic.

1 Like

Continuing the discussion from Solved: Discover crashes:

ls -l /etc/xdg/ksysguard.knsrc
-rw-rā€“r-- 1 root root 820 Aug 22 10:53 /etc/xdg/ksysguard.knsrc
[root@tanmad-pc christanner]# rpm -qf /etc/xdg/ksysguard.knsrc
ksysguard-5.10.5-1-omv2015.0.x86_64
[root@tanmad-pc christanner]# ls -l /etc/xdg/servicemenu.knsrc
-rw-rā€“r-- 1 root root 295 Apr 12 2017 /etc/xdg/servicemenu.knsrc
[root@tanmad-pc christanner]# rpm -qf /etc/xdg/servicemenu.knsrc
dolphin-17.04.0-1-omv2015.0.x86_64

$HOME/.local/share/flatpak/ does exist, but it is empty. Changing the name doesnā€™t change the behaviour of discover.