Bug 379951 - KRunner crashes on Wayland
Summary: KRunner crashes on Wayland
Status: RESOLVED FIXED
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords: drkonqi
: 380006 381331 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-05-17 16:53 UTC by Martin Flöser
Modified: 2017-06-22 19:23 UTC (History)
4 users (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 Martin Flöser 2017-05-17 16:53:40 UTC
Application: krunner (5.10.90)

Qt Version: 5.7.1
Frameworks Version: 5.35.0
Operating System: Linux 4.10.1-041001-generic x86_64
Distribution: KDE neon Developer Edition

-- Information about the crash:
Use latest neon dev unstable, start Plasma session

The crash can be reproduced every time.

-- Backtrace:
Application: krunner (krunner), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff31a0d88c0 (LWP 1523))]

Thread 3 (Thread 0x7ff2ff1d6700 (LWP 1554)):
#0  0x00007ff3166d9b5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007ff3123fb38c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff3123fb49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff316ff975b in QEventDispatcherGlib::processEvents (this=0x7ff2f80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007ff316fa40ba in QEventLoop::exec (this=this@entry=0x7ff2ff1d5ce0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007ff316dd3f64 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:507
#6  0x00007ff319038bf5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007ff316dd8b48 in QThreadPrivate::start (arg=0x218ecd0) at thread/qthread_unix.cpp:368
#8  0x00007ff3146b96ba in start_thread (arg=0x7ff2ff1d6700) at pthread_create.c:333
#9  0x00007ff3166e582d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7ff306366700 (LWP 1545)):
#0  0x00007ff3166d9b5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007ff3123fb38c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff3123fb49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff316ff975b in QEventDispatcherGlib::processEvents (this=0x7ff3000008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007ff316fa40ba in QEventLoop::exec (this=this@entry=0x7ff306365cd0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007ff316dd3f64 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:507
#6  0x00007ff31a1fe735 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007ff316dd8b48 in QThreadPrivate::start (arg=0x7ff31a272d60) at thread/qthread_unix.cpp:368
#8  0x00007ff3146b96ba in start_thread (arg=0x7ff306366700) at pthread_create.c:333
#9  0x00007ff3166e582d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7ff31a0d88c0 (LWP 1523)):
[KCrash Handler]
#6  0x00007ff3199c5ebe in org_kde_plasma_surface_set_position (y=<optimized out>, x=<optimized out>, org_kde_plasma_surface=<optimized out>) at /workspace/build/obj-x86_64-linux-gnu/src/client/wayland-plasma-shell-client-protocol.h:352
#7  KWayland::Client::PlasmaShellSurface::setPosition (this=0x217f0d0, point=...) at /workspace/build/src/client/plasmashell.cpp:257
#8  0x0000000000409919 in View::event (this=0x7fffc399f250, event=0x7fffc399ee20) at /workspace/build/krunner/view.cpp:255
#9  0x00007ff317b17ecc in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x7fffc399f250, e=0x7fffc399ee20) at kernel/qapplication.cpp:3799
#10 0x00007ff317b1f8c6 in QApplication::notify (this=0x7fffc399f1e0, receiver=0x7fffc399f250, e=0x7fffc399ee20) at kernel/qapplication.cpp:3556
#11 0x00007ff316fa60c8 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x7fffc399f250, event=event@entry=0x7fffc399ee20) at kernel/qcoreapplication.cpp:988
#12 0x00007ff3172e64b0 in QCoreApplication::sendSpontaneousEvent (event=0x7fffc399ee20, receiver=0x7fffc399f250) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#13 QGuiApplicationPrivate::processGeometryChangeEvent (e=<optimized out>) at kernel/qguiapplication.cpp:2200
#14 0x00007ff3172eb59d in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x221a830) at kernel/qguiapplication.cpp:1699
#15 0x00007ff3172c932b in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:659
#16 0x00007ff3080a9480 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#17 0x00007ff3123fb197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ff3123fb3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ff3123fb49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007ff316ff973f in QEventDispatcherGlib::processEvents (this=0x1f1b060, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#21 0x00007ff316fa40ba in QEventLoop::exec (this=this@entry=0x7fffc399f110, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#22 0x00007ff316fac6cc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1261
#23 0x00007ff3172e124c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1633
#24 0x00007ff317b17e25 in QApplication::exec () at kernel/qapplication.cpp:2975
#25 0x0000000000406d76 in main (argc=1, argv=<optimized out>) at /workspace/build/krunner/main.cpp:92

Reported using DrKonqi
Comment 1 Martin Flöser 2017-05-17 16:54:23 UTC
@David: is this related to one of the recent changes regarding support for Qt 5.9?
Comment 2 Kai Uwe Broulik 2017-06-18 14:21:06 UTC
*** Bug 380006 has been marked as a duplicate of this bug. ***
Comment 3 Kai Uwe Broulik 2017-06-18 14:21:10 UTC
*** Bug 381331 has been marked as a duplicate of this bug. ***
Comment 4 Rob Sanders 2017-06-20 10:48:07 UTC
Plasma 5.10.1, kde libraries 5.35.0, fedora 26 beta:

(gdb) bt full
#0  0x00007ffff771d9ae in org_kde_plasma_surface_set_position (y=<optimized out>, x=<optimized out>, org_kde_plasma_surface=<optimized out>)
    at /usr/src/debug/kwayland-5.35.0/x86_64-redhat-linux-gnu/src/client/wayland-plasma-shell-client-protocol.h:351
No locals.
#1  KWayland::Client::PlasmaShellSurface::setPosition (this=0x5555559d9450, point=...) at /usr/src/debug/kwayland-5.35.0/src/client/plasmashell.cpp:257
No locals.
#2  0x000055555555d6d9 in View::event (this=0x7fffffffdb80, event=0x7fffffffd750) at /usr/src/debug/plasma-workspace-5.10.1/krunner/view.cpp:255
        me = 0x7fffffffd750
        retval = true
        setState = <optimized out>
#3  0x00007ffff519bd9c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
No symbol table info available.
#4  0x00007ffff51a33d4 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
No symbol table info available.
#5  0x00007ffff46b5b8b in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
No symbol table info available.
#6  0x00007ffff49ebe3a in QGuiApplicationPrivate::processGeometryChangeEvent(QWindowSystemInterfacePrivate::GeometryChangeEvent*) () from /lib64/libQt5Gui.so.5
No symbol table info available.
#7  0x00007ffff49f0c5d in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /lib64/libQt5Gui.so.5
No symbol table info available.
#8  0x00007ffff49cf19b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
No symbol table info available.
#9  0x00007fffdedb76c0 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5WaylandClient.so.5
No symbol table info available.
#10 0x00007fffeb852277 in g_main_dispatch (context=0x55555583a9b0) at gmain.c:3230
        dispatch = 0x7fffdedb76b0 <userEventSourceDispatch(_GSource*, int (*)(void*), void*)>
        prev_source = 0x0
        was_in_call = 0
        user_data = 0x0
        callback = 0x0
        cb_funcs = 0x0
        cb_data = 0x0
        need_destroy = <optimized out>
        source = 0x55555583c2c0
        current = 0x55555578fba0
        i = 2
#11 g_main_context_dispatch (context=context@entry=0x55555583a9b0) at gmain.c:3895
No locals.
#12 0x00007fffeb852618 in g_main_context_iterate (context=context@entry=0x55555583a9b0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3968
        max_priority = 0
        timeout = 0
        some_ready = 1
        nfds = <optimized out>
        allocated_nfds = 6
        fds = 0x555555a03fa0
#13 0x00007fffeb8526ac in g_main_context_iteration (context=0x55555583a9b0, may_block=1) at gmain.c:4029
        retval = <optimized out>
#14 0x00007ffff4704cef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
No symbol table info available.
#15 0x00007ffff46b4b8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
No symbol table info available.
#16 0x00007ffff46bc7dc in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
No symbol table info available.
#17 0x000055555555abd1 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/plasma-workspace-5.10.1/krunner/main.cpp:92
        app = <incomplete type>
        service = {<QObject> = {<No data fields>}, static staticMetaObject = {d = {superdata = 0x7ffff48e9f60 <QObject::staticMetaObject>, stringdata = 0x7ffff5f0f300 <qt_meta_stringdata_KDBusService>, 
              data = 0x7ffff5f0f1e0 <qt_meta_data_KDBusService>, static_metacall = 0x7ffff5f0cb40 <KDBusService::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, 
              extradata = 0x0}}, d = 0x555555844de0}
        aboutData = {d = 0x555555818040}
        view = {<PlasmaQuick::Dialog> = {<QQuickWindow> = {<QWindow> = {<No data fields>}, static staticMetaObject = {d = {superdata = 0x7ffff4d99800 <QWindow::staticMetaObject>, 
                  stringdata = 0x7ffff6f06ae0 <qt_meta_stringdata_QQuickWindow>, data = 0x7ffff6f06780 <qt_meta_data_QQuickWindow>, 
                  static_metacall = 0x7ffff6d9a520 <QQuickWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}}, <QQmlParserStatus> = {
              _vptr.QQmlParserStatus = 0x5555557615e0 <vtable for View+408>, d = 0x0}, static staticMetaObject = {d = {superdata = 0x7ffff6fc7720 <QQuickWindow::staticMetaObject>, 
                stringdata = 0x7ffff7bc48a0 <qt_meta_stringdata_PlasmaQuick__Dialog>, data = 0x7ffff7bc4580 <qt_meta_data_PlasmaQuick__Dialog>, 
                static_metacall = 0x7ffff7ba3870 <PlasmaQuick::Dialog::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, 
---Type <return> to continue, or q <return> to quit---
                relatedMetaObjects = 0x7ffff7dd2190 <qt_meta_extradata_PlasmaQuick__Dialog>, extradata = 0x0}}, d = 0x555555960220}, static staticMetaObject = {d = {
              superdata = 0x7ffff7dd2160 <PlasmaQuick::Dialog::staticMetaObject>, stringdata = 0x55555555f740 <qt_meta_stringdata_View>, data = 0x55555555f520 <qt_meta_data_View>, 
              static_metacall = 0x55555555e570 <View::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, m_customPos = {xp = 0, yp = 0}, 
          m_qmlObj = 0x555555a45ae0
, m_config = {<KConfigBase> = {_vptr.KConfigBase = 0x7ffff5cae480 <vtable for KConfigGroup+16>}, d = {d = 0x5555559fa4d0}}, m_offset = 0.5, m_floating = false, 
          m_history = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {
                            static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x555555a4a6f0}, d = 0x555555a4a6f0}}, <No data fields>}, 
          m_plasmaShell = 0x555555a47880, m_plasmaShellSurface = 0x5555559d9450}
Comment 5 Martin Flöser 2017-06-22 18:42:02 UTC
I'm no longer able to reproduce, KRunner works again on my Wayland session. Marking as fixed.
Comment 6 Tony 2017-06-22 18:46:49 UTC
Not sure if completely "fixed". Yes it no longer crashes, but in my case now, it goes crazy, it starts poping in and out really fast.

Same issue but different? or a completely new one, not sure.
Comment 7 Martin Flöser 2017-06-22 19:23:55 UTC
Yes I can confirm that problem, but I think it's different as it's not a crash any more.