Bug 359706

Summary: Plasma crashes when GTK window loses focus
Product: [Plasma] plasmashell Reporter: ami.nuscule <ami.nuscule>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED DUPLICATE    
Severity: crash CC: bhush94, plasma-bugs, tom.hilinski
Priority: NOR Keywords: drkonqi
Version: 5.4.2   
Target Milestone: 1.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description ami.nuscule 2016-02-23 16:32:39 UTC
Application: plasmashell (5.4.2)

Qt Version: 5.4.2
Operating System: Linux 4.2.0-30-generic x86_64
Distribution: Ubuntu 15.10

-- Information about the crash:
- What I was doing when the application crashed:
This happens very often when skype window loses focus

- Unusual behavior I noticed:
Plasma crashes and restarts

The crash can be reproduced every time.

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

Thread 7 (Thread 0x7f8e2afca700 (LWP 23317)):
#0  0x00007f8e3d6807c1 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f8e3d68111b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8e3d6812fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8e411fe29b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f8e411a475a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f8e40fc23d4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f8e437eaf85 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007f8e40fc72be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f8e400b66aa in start_thread (arg=0x7f8e2afca700) at pthread_create.c:333
#9  0x00007f8e408dfe9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f8e1fbb9700 (LWP 23320)):
#0  0x00007f8e408d488d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f8e3d6811ec in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8e3d6812fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8e411fe29b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f8e411a475a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f8e40fc23d4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f8e437eaf85 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007f8e40fc72be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f8e400b66aa in start_thread (arg=0x7f8e1fbb9700) at pthread_create.c:333
#9  0x00007f8e408dfe9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f8e1d3be700 (LWP 23324)):
#0  0x00007f8e408d488d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f8e3d6811ec in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8e3d6812fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8e411fe29b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f8e411a475a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f8e40fc23d4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f8e437eaf85 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007f8e40fc72be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f8e400b66aa in start_thread (arg=0x7f8e1d3be700) at pthread_create.c:333
#9  0x00007f8e408dfe9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f8e0f9c4700 (LWP 23327)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f8e45b76114 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007f8e45b76159 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007f8e400b66aa in start_thread (arg=0x7f8e0f9c4700) at pthread_create.c:333
#4  0x00007f8e408dfe9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f8d8b933700 (LWP 23328)):
#0  0x00007f8e408d044d in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f8e3d6c44e0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8e3d680cd4 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8e3d681190 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f8e3d6812fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f8e411fe29b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f8e411a475a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f8e40fc23d4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f8e44166ef6 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#9  0x00007f8e40fc72be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f8e400b66aa in start_thread (arg=0x7f8d8b933700) at pthread_create.c:333
#11 0x00007f8e408dfe9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f8d7b4d7700 (LWP 23334)):
#0  0x00007f8e3d6c5869 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f8e3d680789 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8e3d68111b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8e3d6812fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f8e411fe29b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f8e411a475a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f8e40fc23d4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f8d7d76e8f7 in KCupsConnection::run() () from /usr/lib/x86_64-linux-gnu/libkcupslib.so
#8  0x00007f8e40fc72be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f8e400b66aa in start_thread (arg=0x7f8d7b4d7700) at pthread_create.c:333
#10 0x00007f8e408dfe9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f8e46121800 (LWP 23310)):
[KCrash Handler]
#6  0x00007f8e435d0e38 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007f8e4382fc2a in QQmlDelegateModel::_q_itemsChanged(int, int, QVector<int> const&) () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f8e4385622c in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#9  0x00007f8e43856605 in QQmlDelegateModel::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#10 0x00007f8e411d7940 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f8e4124e64c in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f8d8a401fd4 in TaskManager::TasksModelPrivate::itemChanged (this=0x340ffb0, changes=...) at ../../libtaskmanager/tasksmodel.cpp:521
#13 0x00007f8d8a403247 in TaskManager::TasksModel::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7ffc260b14e0) at ./moc_tasksmodel.cpp:213
#14 0x00007f8e411d778a in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f8d8a40b1a8 in TaskManager::AbstractGroupableItem::changed (this=<optimized out>, _t1=...) at moc_abstractgroupableitem.cpp:222
#16 0x00007f8d8a3f8620 in TaskManager::TaskItemPrivate::filterChange (change=..., this=<optimized out>) at ../../libtaskmanager/taskitem.cpp:73
#17 TaskManager::TaskItem::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./moc_taskitem.cpp:146
#18 0x00007f8e411d778a in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007f8d8a40b398 in TaskManager::Task::changed (this=this@entry=0x3413cf0, _t1=...) at moc_task.cpp:354
#20 0x00007f8d8a3eaa6b in TaskManager::Task::setActive (this=0x3413cf0, a=<optimized out>) at ../../libtaskmanager/task.cpp:178
#21 0x00007f8d8a3fe42c in TaskManager::TaskManager::activeWindowChanged (this=0x7f8d8a628f80 <TaskManager::(anonymous namespace)::Q_QGS_privateTaskManagerSelf::innerFunction()::holder>, w=<optimized out>) at ../../libtaskmanager/taskmanager.cpp:412
#22 0x00007f8d8a4006e7 in TaskManager::TaskManager::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./moc_taskmanager.cpp:175
#23 0x00007f8e411d778a in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f8e43316ec2 in KWindowSystem::activeWindowChanged (this=this@entry=0x7f8e43525c00 <(anonymous namespace)::Q_QGS_g_kwmInstanceContainer::innerFunction()::holder>, _t1=117440515) at moc_kwindowsystem.cpp:302
#25 0x00007f8e2b1de1e1 in NETEventFilter::nativeEventFilter (this=0x3400410, ev=0x7f8e2c00a530) at ../../../../src/platforms/xcb/kwindowsystem.cpp:208
#26 0x00007f8e411a38ef in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007f8e33ace35e in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
#28 0x00007f8e33acf3b3 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
#29 0x00007f8e411d8651 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007f8e41c84b8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007f8e41c8a230 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#32 0x00007f8e411a6f1b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007f8e411a9057 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007f8e411fde73 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007f8e3d680ff7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f8e3d681250 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f8e3d6812fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f8e411fe27f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007f8e411a475a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00007f8e411ac2cc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#41 0x00000000004322c3 in main (argc=4, argv=<optimized out>) at ../../shell/main.cpp:176

Possible duplicates by query: bug 359663, bug 359606, bug 359573, bug 359497, bug 359419.

Reported using DrKonqi
Comment 1 Marco Martin 2016-02-24 13:17:44 UTC
*** Bug 359732 has been marked as a duplicate of this bug. ***
Comment 2 David Edmundson 2016-02-24 16:54:56 UTC
>The crash can be reproduced every time.

You make it like you have an way to reliably reproduce this? 

If so can you please from a terminal run:

kquitapp5 plasmashell
valgrind plasmashell
then reproduce the bug and send me the output

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