Bug 451115

Summary: Plasmashell frequently crashes in DaysModel::update()
Product: [Frameworks and Libraries] libplasma Reporter: m.wege
Component: componentsAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: crash CC: kde, me+kde, me, nate, notmart, qydwhotmail
Priority: NOR Keywords: drkonqi
Version: 5.91.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

Description m.wege 2022-03-04 00:59:27 UTC
Application: plasmashell (5.24.2)

Qt Version: 5.15.3
Frameworks Version: 5.91.0
Operating System: Linux 5.13.0-30-generic x86_64
Windowing System: X11
Distribution: KDE neon User - 5.24
DrKonqi: 5.24.2 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
Working normal. It happens when external monitor is attached, but also without. Using X11.

- Unusual behavior I noticed:
Something plasmashell crashes immediatly after restarting it, but sometimes it takes some time before it crashes again.

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault

[New LWP 33107]
[New LWP 33108]
[New LWP 33109]
[New LWP 33110]
[New LWP 33116]
[New LWP 33117]
[New LWP 33125]
[New LWP 33130]
[New LWP 33135]
[New LWP 33138]
[New LWP 33139]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f2462f6a9cf in __GI___poll (fds=0x7fffa028bef8, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
__preamble__
[Current thread is 1 (Thread 0x7f245f0bd4c0 (LWP 33105))]

Thread 12 (Thread 0x7f242959d700 (LWP 33139)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55bb432844e0) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55bb43284490, cond=0x55bb432844b8) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55bb432844b8, mutex=0x55bb43284490) at pthread_cond_wait.c:638
#3  0x00007f24633006db in QWaitConditionPrivate::wait (deadline=..., this=0x55bb43284490) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x55bb46200f50, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007f2464f74c44 in ?? () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#6  0x00007f2464f750b9 in ?? () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007f24632fa543 in QThreadPrivate::start (arg=0x55bb46200eb0) at thread/qthread_unix.cpp:331
#8  0x00007f2462ddd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f2462f77163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7f242a2a7700 (LWP 33138)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55bb46472ab0) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55bb46472a60, cond=0x55bb46472a88) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55bb46472a88, mutex=0x55bb46472a60) at pthread_cond_wait.c:638
#3  0x00007f24633006db in QWaitConditionPrivate::wait (deadline=..., this=0x55bb46472a60) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x55bb43285880, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007f2464f74c44 in ?? () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#6  0x00007f2464f750b9 in ?? () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007f24632fa543 in QThreadPrivate::start (arg=0x55bb432857e0) at thread/qthread_unix.cpp:331
#8  0x00007f2462ddd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f2462f77163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7f242b117700 (LWP 33135)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55bb44a33090) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55bb44a33040, cond=0x55bb44a33068) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55bb44a33068, mutex=0x55bb44a33040) at pthread_cond_wait.c:638
#3  0x00007f24633006db in QWaitConditionPrivate::wait (deadline=..., this=0x55bb44a33040) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x7f245801bfe0, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007f2464f74c44 in ?? () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#6  0x00007f2464f750b9 in ?? () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007f24632fa543 in QThreadPrivate::start (arg=0x7f245801bf40) at thread/qthread_unix.cpp:331
#8  0x00007f2462ddd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f2462f77163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7f2439af1700 (LWP 33130)):
#0  0x00007f2461801bfc in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f2461802312 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f24618024a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f246353ba0b in QEventDispatcherGlib::processEvents (this=0x7f24240464f0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f24634dfc9b in QEventLoop::exec (this=this@entry=0x7f2439af0ba0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f24632f9362 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f243856a07c in KCupsConnection::run() () from /lib/x86_64-linux-gnu/libkcupslib.so
#7  0x00007f24632fa543 in QThreadPrivate::start (arg=0x55bb41ab7460) at thread/qthread_unix.cpp:331
#8  0x00007f2462ddd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f2462f77163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7f243a3cf700 (LWP 33125)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55bb402c5d90) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55bb402c5d40, cond=0x55bb402c5d68) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55bb402c5d68, mutex=0x55bb402c5d40) at pthread_cond_wait.c:638
#3  0x00007f24633006db in QWaitConditionPrivate::wait (deadline=..., this=0x55bb402c5d40) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x7f2458014e30, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007f2464f74c44 in ?? () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#6  0x00007f2464f750b9 in ?? () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007f24632fa543 in QThreadPrivate::start (arg=0x7f2458014d90) at thread/qthread_unix.cpp:331
#8  0x00007f2462ddd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f2462f77163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f244226c700 (LWP 33117)):
#0  __GI___libc_read (nbytes=16, buf=0x7f244226b990, fd=27) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=27, buf=0x7f244226b990, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f246184ab2f in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f2461801ebe in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f2461802312 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f24618024a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f246353ba0b in QEventDispatcherGlib::processEvents (this=0x7f243c033770, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00007f24634dfc9b in QEventLoop::exec (this=this@entry=0x7f244226bba0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#8  0x00007f24632f9362 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#9  0x00007f2464eaf40a in ?? () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#10 0x00007f24632fa543 in QThreadPrivate::start (arg=0x7f24440ab2b0) at thread/qthread_unix.cpp:331
#11 0x00007f2462ddd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#12 0x00007f2462f77163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f2441a47700 (LWP 33116)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55bb3f13f244) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55bb3f13f1f0, cond=0x55bb3f13f218) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55bb3f13f218, mutex=0x55bb3f13f1f0) at pthread_cond_wait.c:638
#3  0x00007f24633006db in QWaitConditionPrivate::wait (deadline=..., this=0x55bb3f13f1f0) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x7f245800a660, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007f2464f74c44 in ?? () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#6  0x00007f2464f750b9 in ?? () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007f24632fa543 in QThreadPrivate::start (arg=0x7f245800a5c0) at thread/qthread_unix.cpp:331
#8  0x00007f2462ddd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f2462f77163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f2454f57700 (LWP 33110)):
#0  0x00007f24632faa80 in QMutex::lock (this=this@entry=0x55bb3edf0420) at /usr/include/c++/9/bits/atomic_base.h:769
#1  0x00007f246353b902 in QMutexLocker::QMutexLocker (m=0x55bb3edf0420, this=<synthetic pointer>) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:238
#2  QThreadData::canWaitLocked (this=0x55bb3edf03f0) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:279
#3  postEventSourcePrepare (s=0x7f2448004bb0, timeout=0x7f2454f56a14) at kernel/qeventdispatcher_glib.cpp:260
#4  0x00007f24618018ef in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f246180229b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f24618024a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f246353ba0b in QEventDispatcherGlib::processEvents (this=0x7f2448000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#8  0x00007f24634dfc9b in QEventLoop::exec (this=this@entry=0x7f2454f56be0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#9  0x00007f24632f9362 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#10 0x00007f24632fa543 in QThreadPrivate::start (arg=0x55bb3ed7ce70) at thread/qthread_unix.cpp:331
#11 0x00007f2462ddd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#12 0x00007f2462f77163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f24564a8700 (LWP 33109)):
#0  idleTimerSourcePrepare (source=<optimized out>, timeout=0x7f24564a79f4) at kernel/qeventdispatcher_glib.cpp:208
#1  0x00007f24618018ef in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f246180229b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f24618024a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f246353ba0b in QEventDispatcherGlib::processEvents (this=0x7f2444000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f24634dfc9b in QEventLoop::exec (this=this@entry=0x7f24564a7bc0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#6  0x00007f24632f9362 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007f2464b15569 in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f24632fa543 in QThreadPrivate::start (arg=0x55bb3e81c210) at thread/qthread_unix.cpp:331
#9  0x00007f2462ddd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007f2462f77163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f245c8a3700 (LWP 33108)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55bb3e5694cc) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55bb3e569478, cond=0x55bb3e5694a0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55bb3e5694a0, mutex=0x55bb3e569478) at pthread_cond_wait.c:638
#3  0x00007f24571475eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f24571471eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f2462ddd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f2462f77163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f245d5a0700 (LWP 33107)):
#0  0x00007f2461801bdb in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f2461802312 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f24618024a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f246353ba0b in QEventDispatcherGlib::processEvents (this=0x7f2450000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f24634dfc9b in QEventLoop::exec (this=this@entry=0x7f245d59fbb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f24632f9362 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f2463e70f4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f24632fa543 in QThreadPrivate::start (arg=0x7f2463ef4d80) at thread/qthread_unix.cpp:331
#8  0x00007f2462ddd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f2462f77163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f245f0bd4c0 (LWP 33105)):
[KCrash Handler]
#4  0x00007f243a62f50c in DaysModel::update (this=0x55bb441367e0) at ./src/declarativeimports/calendar/daysmodel.cpp:131
#5  DaysModel::update (this=0x55bb441367e0) at ./src/declarativeimports/calendar/daysmodel.cpp:113
#6  0x00007f243a629be5 in DaysModel::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=0x55bb445cea58, _c=<optimized out>) at ./obj-x86_64-linux-gnu/src/declarativeimports/calendar/calendarplugin_autogen/EWIEGA46WW/moc_daysmodel.cpp:113
#7  0x00007f246350ed39 in QObject::event (this=0x55bb441367e0, e=0x55bb445cea10) at kernel/qobject.cpp:1314
#8  0x00007f24641f6dc3 in QApplicationPrivate::notify_helper (this=this@entry=0x55bb3e4473b0, receiver=receiver@entry=0x55bb441367e0, e=e@entry=0x55bb445cea10) at kernel/qapplication.cpp:3632
#9  0x00007f24641ffbb8 in QApplication::notify (this=0x7fffa028d2c0, receiver=0x55bb441367e0, e=0x55bb445cea10) at kernel/qapplication.cpp:3156
#10 0x00007f24634e119a in QCoreApplication::notifyInternal2 (receiver=0x55bb441367e0, event=0x55bb445cea10) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:332
#11 0x00007f24634e3aa1 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55bb3e3fcef0) at kernel/qcoreapplication.cpp:1821
#12 0x00007f246353c397 in postEventSourceDispatch (s=0x55bb3e55ade0) at kernel/qeventdispatcher_glib.cpp:277
#13 0x00007f246180217d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007f2461802400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007f24618024a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007f246353b9f2 in QEventDispatcherGlib::processEvents (this=0x55bb3e55b5c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#17 0x00007f24634dfc9b in QEventLoop::exec (this=this@entry=0x7fffa028d1a0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#18 0x00007f24634e7e44 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#19 0x000055bb3c5d6d95 in main (argc=<optimized out>, argv=<optimized out>) at ./shell/main.cpp:238
[Inferior 1 (process 33105) detached]

The reporter indicates this bug may be a duplicate of or related to bug 451053.

Possible duplicates by query: bug 451053, bug 450876, bug 450723, bug 450594, bug 450584.

Reported using DrKonqi
Comment 1 Fushan Wen 2022-03-04 04:15:46 UTC
What calendar plugin do you enable?
Comment 2 m.wege 2022-03-04 06:59:57 UTC
Not sure what plugin meetings. In the seetings I have selected German holidays and opted for showing the week numbers.
Comment 3 m.wege 2022-03-04 09:51:21 UTC
means not "meetings"
I have removed the calendar, crashes appear to have stopped.
Comment 4 m.wege 2022-03-04 22:43:51 UTC
I have to correct myself, the crashes still occur, but less less frequent without the clock applet. The difference with the remaining crashes: Dr. Konqui does not kick in, so may be it is a different bug.
Comment 5 Nate Graham 2022-03-22 02:44:11 UTC
#4  0x00007f243a62f50c in DaysModel::update (this=0x55bb441367e0) at ./src/declarativeimports/calendar/daysmodel.cpp:131
#5  DaysModel::update (this=0x55bb441367e0) at ./src/declarativeimports/calendar/daysmodel.cpp:113
#6  0x00007f243a629be5 in DaysModel::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=0x55bb445cea58, _c=<optimized out>) at ./obj-x86_64-linux-gnu/src/declarativeimports/calendar/calendarplugin_autogen/EWIEGA46WW/moc_daysmodel.cpp:113