Bug 390535 - Night color in Wayland causes seg fault if Operation Mode = Location | Time
Summary: Night color in Wayland causes seg fault if Operation Mode = Location | Time
Status: RESOLVED DUPLICATE of bug 381630
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: 5.12.1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-02-16 05:06 UTC by Daniel Mulholland
Modified: 2018-02-16 09:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Mulholland 2018-02-16 05:06:30 UTC
Application: systemsettings5 (5.12.1)

Qt Version: 5.9.1
Frameworks Version: 5.43.0
Operating System: Linux 4.15.3-041503-generic x86_64
Distribution: Ubuntu 17.10

-- Information about the crash:
I installed Plasma 5.12 from the KDE backports for Kubuntu and run a session in Wayland.

I test Night Colour under System Settings > Display and Monitor > Night Colour. All is well until I change Operation Mode to Location in which case it always immediately crashes.

== System Details (I guess these are automatically added anyways)

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 17.10
Release:        17.10
Codename:       artful

$ uname -a
Linux mulhollandd-XPS-13-9360 4.15.3-041503-generic #201802120730 SMP Mon Feb 12 07:31:14 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ plasmashell --version
plasmashell 5.12.1
$ kf5-config --version
Qt: 5.9.1
KDE Frameworks: 5.43.0
kf5-config: 1.0

The crash can be reproduced every time.

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

Thread 6 (Thread 0x7ff71f155700 (LWP 23297)):
[KCrash Handler]
#6  0x00007ff7495ebb30 in wl_proxy_create_wrapper () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
#7  0x00007ff73afdd9f1 in get_wl_surface_proxy (window=0x7ff718091f40, window=0x7ff718091f40) at ../../../src/egl/drivers/dri2/platform_wayland.c:125
#8  dri2_wl_create_window_surface (drv=<optimized out>, disp=0x5646d05835b0, conf=0x5646d05739c0, native_window=0x7ff718091f40, attrib_list=0x0) at ../../../src/egl/drivers/dri2/platform_wayland.c:199
#9  0x00007ff73afcad17 in _eglCreateWindowSurfaceCommon (disp=0x5646d05835b0, config=config@entry=0x5646d05739c0, native_window=native_window@entry=0x7ff718091f40, attrib_list=attrib_list@entry=0x0) at ../../../src/egl/main/eglapi.c:907
#10 0x00007ff73afcb104 in eglCreateWindowSurface (dpy=<optimized out>, config=config@entry=0x5646d05739c0, window=window@entry=140699236900672, attrib_list=attrib_list@entry=0x0) at ../../../src/egl/main/eglapi.c:923
#11 0x00007ff73b203f4d in QtWaylandClient::QWaylandEglWindow::updateSurface (this=this@entry=0x5646d7135320, create=create@entry=true) at ../../../../hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp:141
#12 0x00007ff73b2024c5 in QtWaylandClient::QWaylandGLContext::makeCurrent (this=this@entry=0x5646d7114700, surface=<optimized out>) at ../../../../hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:410
#13 0x00007ff757d6e286 in QOpenGLContext::makeCurrent (this=0x5646d71358d0, surface=surface@entry=0x5646d70f9e40) at kernel/qopenglcontext.cpp:984
#14 0x00007ff75532d004 in QSGRenderThread::invalidateOpenGL (this=this@entry=0x5646d7136260, window=0x5646d70f9e30, inDestructor=<optimized out>, fallback=0x0) at scenegraph/qsgthreadedrenderloop.cpp:487
#15 0x00007ff7553348eb in QSGRenderThread::event (this=0x5646d7136260, e=0x5646d59f3190) at scenegraph/qsgthreadedrenderloop.cpp:402
#16 0x00007ff755333b77 in QSGRenderThread::processEventsAndWaitForMore (this=this@entry=0x5646d7136260) at scenegraph/qsgthreadedrenderloop.cpp:702
#17 0x00007ff755333f4a in QSGRenderThread::run (this=0x5646d7136260) at scenegraph/qsgthreadedrenderloop.cpp:730
#18 0x00007ff75730429d in QThreadPrivate::start (arg=0x5646d7136260) at thread/qthread_unix.cpp:368
#19 0x00007ff752e167fc in start_thread (arg=0x7ff71f155700) at pthread_create.c:465
#20 0x00007ff756c06b5f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7ff7268a2700 (LWP 23289)):
#0  0x00007ff756bf606d in __GI___libc_read (fd=19, buf=buf@entry=0x7ff7268a1a70, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:26
#1  0x00007ff750b71280 in read (__nbytes=16, __buf=0x7ff7268a1a70, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:44
#2  g_wakeup_acknowledge (wakeup=0x7ff728003590) at ../../../../glib/gwakeup.c:210
#3  0x00007ff750b2cc4b in g_main_context_check (context=context@entry=0x7ff720000be0, max_priority=2147483647, fds=fds@entry=0x7ff720002de0, n_fds=n_fds@entry=1) at ../../../../glib/gmain.c:3664
#4  0x00007ff750b2d110 in g_main_context_iterate (context=context@entry=0x7ff720000be0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../../glib/gmain.c:3883
#5  0x00007ff750b2d27c in g_main_context_iteration (context=0x7ff720000be0, may_block=may_block@entry=1) at ../../../../glib/gmain.c:3947
#6  0x00007ff75753a49b in QEventDispatcherGlib::processEvents (this=0x7ff720000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00007ff7574dfe3a in QEventLoop::exec (this=this@entry=0x7ff7268a1c90, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#8  0x00007ff7572ff3ca in QThread::exec (this=this@entry=0x5646d399e410) at thread/qthread.cpp:515
#9  0x00007ff754e74f45 in QQmlThreadPrivate::run (this=0x5646d399e410) at qml/ftw/qqmlthread.cpp:147
#10 0x00007ff75730429d in QThreadPrivate::start (arg=0x5646d399e410) at thread/qthread_unix.cpp:368
#11 0x00007ff752e167fc in start_thread (arg=0x7ff7268a2700) at pthread_create.c:465
#12 0x00007ff756c06b5f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7ff72db2b700 (LWP 23288)):
#0  0x00007ff75753a7ca in idleTimerSourcePrepare (source=<optimized out>, timeout=timeout@entry=0x7ff72db2aac4) at kernel/qeventdispatcher_glib.cpp:202
#1  0x00007ff750b2c6a8 in g_main_context_prepare (context=context@entry=0x7ff728000be0, priority=priority@entry=0x7ff72db2ab50) at ../../../../glib/gmain.c:3450
#2  0x00007ff750b2d09b in g_main_context_iterate (context=context@entry=0x7ff728000be0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../../glib/gmain.c:3866
#3  0x00007ff750b2d27c in g_main_context_iteration (context=0x7ff728000be0, may_block=may_block@entry=1) at ../../../../glib/gmain.c:3947
#4  0x00007ff75753a49b in QEventDispatcherGlib::processEvents (this=0x7ff728000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007ff7574dfe3a in QEventLoop::exec (this=this@entry=0x7ff72db2ac90, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007ff7572ff3ca in QThread::exec (this=this@entry=0x5646d0b110c0) at thread/qthread.cpp:515
#7  0x00007ff754e74f45 in QQmlThreadPrivate::run (this=0x5646d0b110c0) at qml/ftw/qqmlthread.cpp:147
#8  0x00007ff75730429d in QThreadPrivate::start (arg=0x5646d0b110c0) at thread/qthread_unix.cpp:368
#9  0x00007ff752e167fc in start_thread (arg=0x7ff72db2b700) at pthread_create.c:465
#10 0x00007ff756c06b5f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7ff735fc2700 (LWP 23287)):
#0  0x00007ff750b2c5ef in g_main_context_prepare (context=context@entry=0x7ff730000be0, priority=priority@entry=0x7ff735fc1b50) at ../../../../glib/gmain.c:3432
#1  0x00007ff750b2d09b in g_main_context_iterate (context=context@entry=0x7ff730000be0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../../glib/gmain.c:3866
#2  0x00007ff750b2d27c in g_main_context_iteration (context=0x7ff730000be0, may_block=may_block@entry=1) at ../../../../glib/gmain.c:3947
#3  0x00007ff75753a49b in QEventDispatcherGlib::processEvents (this=0x7ff730000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007ff7574dfe3a in QEventLoop::exec (this=this@entry=0x7ff735fc1c90, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007ff7572ff3ca in QThread::exec (this=this@entry=0x5646d0887ec0) at thread/qthread.cpp:515
#6  0x00007ff754e74f45 in QQmlThreadPrivate::run (this=0x5646d0887ec0) at qml/ftw/qqmlthread.cpp:147
#7  0x00007ff75730429d in QThreadPrivate::start (arg=0x5646d0887ec0) at thread/qthread_unix.cpp:368
#8  0x00007ff752e167fc in start_thread (arg=0x7ff735fc2700) at pthread_create.c:465
#9  0x00007ff756c06b5f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7ff744b25700 (LWP 23286)):
#0  0x00007ff756bfa951 in __GI___poll (fds=0x7ff740002de0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ff750b2d169 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7ff740002de0, timeout=<optimized out>, context=0x7ff740000be0) at ../../../../glib/gmain.c:4187
#2  g_main_context_iterate (context=context@entry=0x7ff740000be0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../../glib/gmain.c:3881
#3  0x00007ff750b2d27c in g_main_context_iteration (context=0x7ff740000be0, may_block=may_block@entry=1) at ../../../../glib/gmain.c:3947
#4  0x00007ff75753a49b in QEventDispatcherGlib::processEvents (this=0x7ff740000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007ff7574dfe3a in QEventLoop::exec (this=this@entry=0x7ff744b24c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007ff7572ff3ca in QThread::exec (this=this@entry=0x7ff7590b1d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:515
#7  0x00007ff758e3ee45 in QDBusConnectionManager::run (this=0x7ff7590b1d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#8  0x00007ff75730429d in QThreadPrivate::start (arg=0x7ff7590b1d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:368
#9  0x00007ff752e167fc in start_thread (arg=0x7ff744b25700) at pthread_create.c:465
#10 0x00007ff756c06b5f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7ff75b184140 (LWP 23284)):
#0  0x00007ff752e1d072 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5646d7136480) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x5646d7136430, cond=0x5646d7136458) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x5646d7136458, mutex=0x5646d7136430) at pthread_cond_wait.c:655
#3  0x00007ff7573056cb in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x5646d7136430) at thread/qwaitcondition_unix.cpp:143
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x5646d71362a0, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:215
#5  0x00007ff755331fb2 in QSGThreadedRenderLoop::releaseResources (this=this@entry=0x5646d7135010, w=w@entry=0x5646d7136540, inDestructor=inDestructor@entry=true) at scenegraph/qsgthreadedrenderloop.cpp:1128
#6  0x00007ff75533254b in QSGThreadedRenderLoop::windowDestroyed (this=0x5646d7135010, window=0x5646d70f9e30) at scenegraph/qsgthreadedrenderloop.cpp:879
#7  0x00007ff755383838 in QQuickWindow::~QQuickWindow (this=0x5646d70f9e30, __in_chrg=<optimized out>) at items/qquickwindow.cpp:1286
#8  0x00007ff734579cb5 in QQuickPopupWindow1::~QQuickPopupWindow1 (this=0x5646d70f9e30, __in_chrg=<optimized out>) at .moc/../qquickpopupwindow_p.h:49
#9  QQuickMenuPopupWindow1::~QQuickMenuPopupWindow1 (this=0x5646d70f9e30, __in_chrg=<optimized out>) at .moc/../qquickmenupopupwindow_p.h:50
#10 QQuickMenuPopupWindow1::~QQuickMenuPopupWindow1 (this=0x5646d70f9e30, __in_chrg=<optimized out>) at .moc/../qquickmenupopupwindow_p.h:50
#11 0x00007ff757511470 in QObject::event (this=this@entry=0x5646d70f9e30, e=<optimized out>) at kernel/qobject.cpp:1237
#12 0x00007ff757d3eff8 in QWindow::event (this=this@entry=0x5646d70f9e30, ev=ev@entry=0x5646d873a250) at kernel/qwindow.cpp:2289
#13 0x00007ff75538cd05 in QQuickWindow::event (this=this@entry=0x5646d70f9e30, e=e@entry=0x5646d873a250) at items/qquickwindow.cpp:1607
#14 0x00007ff73455d071 in QQuickPopupWindow1::event (this=0x5646d70f9e30, event=0x5646d873a250) at qquickpopupwindow.cpp:258
#15 0x00007ff7584ee46c in QApplicationPrivate::notify_helper (this=this@entry=0x5646d0447290, receiver=receiver@entry=0x5646d70f9e30, e=e@entry=0x5646d873a250) at kernel/qapplication.cpp:3717
#16 0x00007ff7584f5d34 in QApplication::notify (this=0x7ffc48ac5fa0, receiver=0x5646d70f9e30, e=0x5646d873a250) at kernel/qapplication.cpp:3476
#17 0x00007ff7574e1de8 in QCoreApplication::notifyInternal2 (receiver=0x5646d70f9e30, event=event@entry=0x5646d873a250) at kernel/qcoreapplication.cpp:1018
#18 0x00007ff7574e455d in QCoreApplication::sendEvent (event=0x5646d873a250, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:233
#19 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x5646d044d190) at kernel/qcoreapplication.cpp:1678
#20 0x00007ff7574e4ae8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1532
#21 0x00007ff75753ae53 in postEventSourceDispatch (s=s@entry=0x5646d04da9f0) at kernel/qeventdispatcher_glib.cpp:276
#22 0x00007ff750b2cfb7 in g_main_dispatch (context=0x5646d0496fb0) at ../../../../glib/gmain.c:3148
#23 g_main_context_dispatch (context=context@entry=0x5646d0496fb0) at ../../../../glib/gmain.c:3813
#24 0x00007ff750b2d1f0 in g_main_context_iterate (context=context@entry=0x5646d0496fb0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../../glib/gmain.c:3886
#25 0x00007ff750b2d27c in g_main_context_iteration (context=0x5646d0496fb0, may_block=may_block@entry=1) at ../../../../glib/gmain.c:3947
#26 0x00007ff75753a47f in QEventDispatcherGlib::processEvents (this=0x5646d04dabf0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#27 0x00007ff7574dfe3a in QEventLoop::exec (this=this@entry=0x7ffc48ac5ec0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#28 0x00007ff7574e8da4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1291
#29 0x00005646cfbd2e44 in main (argc=<optimized out>, argv=<optimized out>) at ./app/main.cpp:67

Reported using DrKonqi
Comment 1 David Edmundson 2018-02-16 09:45:23 UTC

*** This bug has been marked as a duplicate of bug 381630 ***