Bug 418797 - Crash when opening System Settings
Summary: Crash when opening System Settings
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: 5.18.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-03-13 01:10 UTC by 1geekydude
Modified: 2020-03-26 23:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (11.43 KB, patch)
2020-03-26 18:23 UTC, Oded Arbel
Details
Temporary patch to unbreak system settings on KCI (1.00 KB, patch)
2020-03-26 18:54 UTC, Oded Arbel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 1geekydude 2020-03-13 01:10:30 UTC
Application: systemsettings5 (5.18.3)

Qt Version: 5.12.5
Frameworks Version: 5.67.0
Operating System: Linux 5.4.0-14-generic x86_64
Windowing system: X11
Distribution: Ubuntu Focal Fossa (development branch)

-- Information about the crash:
- What I was doing when the application crashed:

I actually was doing nothing, but attempting to open the System Settings from the launcher menu. This was my first interaction with the system since last night's updates. I haven't encountered this issue before. This issue occurs every time I attempt to launch the system settings.

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings5), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fba56a19800 (LWP 57612))]

Thread 5 (Thread 0x7fba45edc700 (LWP 57617)):
#0  0x00007fba58bec72d in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fba58bee185 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fba58bef66b in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fba58bf00db in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fba58bf02e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fba5aeaa903 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fba5ae5186b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fba5ac8a7b5 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fba59f44469 in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#9  0x00007fba5ac8ba02 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fba594d2669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#11 0x00007fba5a91d333 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fba47fb1700 (LWP 57616)):
#0  0x00007fba5a910c3f in __GI___poll (fds=0x7fba400025e0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fba58bf01ae in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fba58bf02e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fba5aeaa903 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fba5ae5186b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fba5ac8a7b5 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fba59f44469 in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007fba5ac8ba02 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fba594d2669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#9  0x00007fba5a91d333 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fba4f8bd700 (LWP 57614)):
#0  0x00007fba5a910c3f in __GI___poll (fds=0x7fba480029e0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fba58bf01ae in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fba58bf02e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fba5aeaa903 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fba5ae5186b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fba5ac8a7b5 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fba5b12cefa in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fba5ac8ba02 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fba594d2669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#9  0x00007fba5a91d333 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fba55b67700 (LWP 57613)):
#0  0x00007fba5a910c3f in __GI___poll (fds=0x7fba55b66ca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fba5948fc1a in ?? () from /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fba5949187a in xcb_wait_for_event () from /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fba5636c1a8 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007fba5ac8ba02 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fba594d2669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007fba5a91d333 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fba56a19800 (LWP 57612)):
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#7  0x00007fba5a820899 in __GI_abort () at abort.c:79
#8  0x00007fba5ac52aaf in QMessageLogger::fatal(char const*, ...) const () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fba5a5f0b16 in ?? () from /lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5
#10 0x00007fba5a5f0e2a in ?? () from /lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5
#11 0x00007fba5a5f2ff6 in QQuickWidget::resizeEvent(QResizeEvent*) () from /lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5
#12 0x00007fba5b949aee in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007fba5a5f3ca3 in QQuickWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5
#14 0x00007fba5b906a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007fba5b9100e0 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007fba5ae52cca in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007fba5b941e7e in QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007fba5b945c17 in QWidgetPrivate::show_helper() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007fba5b948dab in QWidgetPrivate::setVisible(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007fba5b945bd0 in QWidgetPrivate::showChildren(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007fba5b945c33 in QWidgetPrivate::show_helper() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007fba5b945bba in QWidgetPrivate::showChildren(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007fba5b945c33 in QWidgetPrivate::show_helper() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007fba5b948dab in QWidgetPrivate::setVisible(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007fba5b945bd0 in QWidgetPrivate::showChildren(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007fba5b945c33 in QWidgetPrivate::show_helper() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007fba5b948dab in QWidgetPrivate::setVisible(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x000055b1a070784b in ?? ()
#29 0x000055b1a070a444 in ?? ()
#30 0x00007fba5ae8b936 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007fba5ae7f085 in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007fba5b906a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#33 0x00007fba5b9100e0 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#34 0x00007fba5ae52cca in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007fba5aea9c30 in QTimerInfoList::activateTimers() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007fba5aeaa51c in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#37 0x00007fba58beffbd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007fba58bf0240 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007fba58bf02e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007fba5aeaa8e5 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#41 0x00007fba5ae5186b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#42 0x00007fba5ae595d6 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#43 0x000055b1a0704856 in ?? ()
#44 0x00007fba5a8221e3 in __libc_start_main (main=0x55b1a0704460, argc=1, argv=0x7fffd4c82788, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffd4c82778) at ../csu/libc-start.c:308
#45 0x000055b1a07048de in _start ()
[Inferior 1 (process 57612) detached]

Possible duplicates by query: bug 418730, bug 418360, bug 418351, bug 418277, bug 418026.

Reported using DrKonqi
Comment 1 Oded Arbel 2020-03-26 18:23:27 UTC
Created attachment 127031 [details]
New crash information added by DrKonqi

systemsettings5 (5.18.3) using Qt 5.12.5

Running with Kubuntu 20.05 + KCI stable PPA, I have what appears to be the same crash, though I have more details as I've installed systemsettings-dbgsym.

- What I was doing when the application crashed:
The application crashes on startup - it doesn't even show a window before crashing.

- Unusual behavior I noticed:
Other things on the desktop currently don't work:
* The desktop Settings dialog (from the desktop RMB menu) is completely empty: I can see icons for the "Wallpaper" and "Mouse actions", but either of those just show the title and nothing else in the dialog besides "OK"/"Cancel"
* The system tray audio control widget shows an error message instead of controls:
Error loading QML file: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/main.qml:399:35: Type StreamListItem unavailable
qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/StreamListItem.qml:27:1: Type ListItemBase unavailable
qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:126:21: Type PlasmaComponents3.ComboBox unavailable
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/components.3/ComboBox.qml: Type MobileTextActionsToolBar unavailable
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/components.3/mobiletextselection/MobileTextActionsToolBar.qml:28:1: Type Popup unavailable
file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls.2/org.kde.desktop/Popup.qml:25:1: module "org.kde.kirigami" version 2.12 is not installed
(I have libkf5kirigami2-5_5.68.0+p20.04+git20200310.1856-0 installed, from KCI stable.
* In kinfocenter, the "Memory" module shows error: "Error loading QML file" and the standard error has this error:
"file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml" 
 "Error loading QML file.\n252: Type QQC2.ComboBox unavailable\n28: module \"org.kde.kirigami\" version 2.12 is not installed\n"
* A few other application failed to load properly and show errors complaining about Kirigami version 2.12 being missing.

-- Backtrace (Reduced):
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#7  0x00007fc2c8379859 in __GI_abort () at abort.c:79
#8  0x00007fc2c87acaaf in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fc2c006b32d in SidebarMode::initWidget (this=this@entry=0x55c40f85b860) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlogging.h:91
#10 0x00007fc2c006b351 in SidebarMode::mainWidget (this=0x55c40f85b860) at ./sidebar/SidebarMode.cpp:313
Comment 2 Oded Arbel 2020-03-26 18:31:18 UTC
Running `systemsettings5` from the console, we get this text, before the application crashes (looks like from sidebar/SidebarMode.cpp:664):

org.kde.kwindowsystem: Loaded plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/org.kde.kwindowsystem.platforms/KF5WindowSystemX11Plugin.so" for platform "xcb"
file:///usr/share/kpackage/genericqml/org.kde.systemsettings.sidebar/contents/ui/main.qml:46:5: Type CategoriesPage unavailable 
         CategoriesPage { 
         ^
file:///usr/share/kpackage/genericqml/org.kde.systemsettings.sidebar/contents/ui/CategoriesPage.qml:55:17: Type QQC2.ToolTip unavailable 
                     QQC2.ToolTip { 
                     ^
file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls.2/org.kde.desktop/ToolTip.qml:26:1: module "org.kde.kirigami" version 2.12 is not installed 
     import org.kde.kirigami 2.12 as Kirigami 
     ^
"file:///usr/share/kpackage/genericqml/org.kde.systemsettings.sidebar/contents/ui/main.qml:46:5: Type CategoriesPage unavailable"
"file:///usr/share/kpackage/genericqml/org.kde.systemsettings.sidebar/contents/ui/CategoriesPage.qml:55:17: Type QQC2.ToolTip unavailable"
"file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls.2/org.kde.desktop/ToolTip.qml:26:1: module \"org.kde.kirigami\" version 2.12 is not installed"
Fatal error while loading the sidebar view qml component
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = systemsettings5 path = /usr/bin pid = 258303
KCrash: Arguments: /usr/bin/systemsettings5 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0

So all this seems to be a broken dependency in either Kubuntu focal and/or KCI stable, where kirigami 2.12 is expected by only 2.5 is available.
Comment 3 David Edmundson 2020-03-26 18:38:38 UTC
From the output

>module "org.kde.kirigami" version 2.12 is not installed
Comment 4 Oded Arbel 2020-03-26 18:54:32 UTC
Created attachment 127032 [details]
Temporary patch to unbreak system settings on KCI

The problem seems to be in KCI only - downgrading qml-module-org-kde-qqc2desktopstyle to the version from the Ubuntu focal development tree solves the problem, as well as removing the kirigami 2.12 specific code from /usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls.2/org.kde.desktop/ToolTip.qml by applying the attached patch.

Other desktop behavior I described in previous comments is likely not fixed by the patch because there are other things in qml-module-org-kde-qqc2desktopstyle that require features from Kirigami 2.12.

I'd also like to note that while 2.12 is the current version in git master, KCI unstable only has 2.11...
Comment 5 Oded Arbel 2020-03-26 18:55:39 UTC
(In reply to David Edmundson from comment #3)
> From the output
> 
> >module "org.kde.kirigami" version 2.12 is not installed

The problem is clearly in the KCI packaging, where qml-module-org-kde-qqc2desktopstyle doesn't set up its dependencies properly - it shouldn't have been installed if its dependency (kirigami 2.12) is not available.

How does one report bugs against that?
Comment 6 David Edmundson 2020-03-26 22:14:39 UTC
What's kci?
Comment 7 Oded Arbel 2020-03-26 23:44:56 UTC
(In reply to David Edmundson from comment #6)
> What's kci?

Kubuntu Continuous Integration: https://phabricator.kde.org/w/kubuntu/kci/

Also: https://launchpad.net/~kubuntu-ci