Bug 410712 - sudo systemsettings5 crashes from cli
Summary: sudo systemsettings5 crashes from cli
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: 5.12.8
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-08-07 23:57 UTC by David Block
Modified: 2019-08-08 20:24 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Block 2019-08-07 23:57:25 UTC
Application: systemsettings5 (5.12.8)

Qt Version: 5.9.5
Frameworks Version: 5.44.0
Operating System: Linux 4.15.0-55-generic x86_64
Distribution: Ubuntu 18.04.3 LTS

-- Information about the crash:
- What I was doing when the application crashed:
From terminal: sudo systemsettings5

- Custom settings of the application:
sudo

I previously tried to change the printer from color to grayscale, it wants a root user to confirm, and I have no idea what the root password is because I use sudo.

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 0x7f56c2fcb800 (LWP 6521))]

Thread 4 (Thread 0x7f56a4c27700 (LWP 6534)):
#0  0x00007f56b88ca664 in g_mutex_unlock () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f56b8883b18 in g_main_context_prepare () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f56b88844fb in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f56b88846dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f56bf36a90b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f56bf30f9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f56bf12e22a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f56bcc836f5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f56bf13316d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f56babd56db in start_thread (arg=0x7f56a4c27700) at pthread_create.c:463
#10 0x00007f56bea2e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f56943b2700 (LWP 6533)):
#0  0x00007f56bea21bf9 in __GI___poll (fds=0x7f568c004a00, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f56b88845c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f56b88846dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f56bf36a90b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f56bf30f9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f56bf12e22a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f56bcc836f5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007f56bf13316d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f56babd56db in start_thread (arg=0x7f56943b2700) at pthread_create.c:463
#9  0x00007f56bea2e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f56ae3ee700 (LWP 6523)):
#0  0x00007f56bea21bf9 in __GI___poll (fds=0x7f56a0004db0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f56b88845c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f56b88846dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f56bf36a90b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f56bf30f9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f56bf12e22a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f56c0c74d45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f56bf13316d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f56babd56db in start_thread (arg=0x7f56ae3ee700) at pthread_create.c:463
#9  0x00007f56bea2e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f56c2fcb800 (LWP 6521)):
[KCrash Handler]
#4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#5  0x00007f56be94d801 in __GI_abort () at abort.c:79
#6  0x00007f56bf11dfa7 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f56bd8039f0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5
#8  0x00007f56bd803d5a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5
#9  0x00007f56bd805f8e in QQuickWidget::resizeEvent(QResizeEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5
#10 0x00007f56c0360be2 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007f56bd8069eb in QQuickWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5
#12 0x00007f56c032182c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f56c03290f4 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f56bf3119a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f56c03590eb in QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f56c035cec3 in QWidgetPrivate::show_helper() () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f56c035fbdb in QWidget::setVisible(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f56c035ce30 in QWidgetPrivate::showChildren(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f56c035cedf in QWidgetPrivate::show_helper() () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007f56c035fbdb in QWidget::setVisible(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f56c0343fb0 in QStackedLayout::setCurrentIndex(int) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f56c034466a in QStackedLayout::insertWidget(int, QWidget*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00005640c7045a24 in ?? ()
#24 0x00005640c70479a4 in ?? ()
#25 0x00007f56bf34d0d4 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007f56bf3410db in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007f56c032182c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007f56c03290f4 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007f56bf3119a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007f56bf369d8e in QTimerInfoList::activateTimers() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007f56bf36a551 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007f56b8884417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f56b8884650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f56b88846dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f56bf36a8ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007f56bf30f9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#37 0x00007f56bf318a84 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#38 0x00005640c7042e44 in ?? ()
#39 0x00007f56be92eb97 in __libc_start_main (main=0x5640c7042a40, argc=1, argv=0x7ffdbaead0b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdbaead0a8) at ../csu/libc-start.c:310
#40 0x00005640c7042eca in _start ()

Possible duplicates by query: bug 410531, bug 407773, bug 405846, bug 405165, bug 404446.

Reported using DrKonqi
Comment 1 Kai Uwe Broulik 2019-08-08 07:01:44 UTC
Don't run GUI apps as root.
Comment 2 Kai Uwe Broulik 2019-08-08 07:55:25 UTC
However, it does print something to console, can you check what it printed before dying?
Comment 3 David Block 2019-08-08 15:02:18 UTC
On Thu, 08 Aug 2019 07:55:25 +0000
"Kai Uwe Broulik" <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=410712
> 
> --- Comment #2 from Kai Uwe Broulik <kde@privat.broulik.de> ---
> However, it does print something to console, can you check what it
> printed before dying?
> 
Thanks Kai,

I finally resolved the printer issue but the systemsettings5 bug still
persists (even when run without sudo).

Here's the result of launching systemsettings5 from the terminal as my
normal user:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
failed to acquire GL context to resolve capabilities, using defaults..
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_140164137725056_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
Failed to create OpenGL context for format QSurfaceFormat(version 2.0,
options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24,
redBufferSize -1, greenBufferSize -1, blueBufferSize -1,
alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior
QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, profile
QSurfaceFormat::OpenGLContextProfile(NoProfile)) KCrash: crashing...
crashRecursionCounter = 2 KCrash: Application Name = systemsettings5
path = /usr/bin pid = 26076 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
Comment 4 Christoph Feck 2019-08-08 20:24:39 UTC
It looks like you updated NVIDIA driver or kernel without rebooting.