Bug 449068 - When in tasks view, crash when selecting a specific calendar after having expanded the subtasks of a task
Summary: When in tasks view, crash when selecting a specific calendar after having exp...
Status: RESOLVED FIXED
Alias: None
Product: Merkuro
Classification: Applications
Component: general (show other bugs)
Version: 0.4.0
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Claudio Cambra
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-01-24 11:25 UTC by Samuele
Modified: 2022-02-01 12:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (27.74 KB, text/plain)
2022-01-29 22:31 UTC, Samuele
Details
New crash information added by DrKonqi (28.47 KB, text/plain)
2022-01-29 23:11 UTC, Samuele
Details
New crash information added by DrKonqi (18.36 KB, text/plain)
2022-01-31 18:36 UTC, Samuele
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuele 2022-01-24 11:25:33 UTC
Application: kalendar (0.4.0)

Qt Version: 5.15.3
Frameworks Version: 5.90.0
Operating System: Linux 5.13.0-27-generic x86_64
Windowing System: X11
Distribution: KDE neon User - Plasma 25th Anniversary Edition
DrKonqi: 5.23.5 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
I tried it several times, sometimes Kalendar just hangs and after some time Plasma proposes to terminate it, sometimes it directly crashes.
This happens only when I go to the tasks view, select "View all tasks", then expand the subtasks of a task and then select a random calendar to filter the view.

The crash can be reproduced every time.

-- Backtrace:
Application: Kalendar (kalendar), signal: Segmentation fault

[New LWP 15895]
[New LWP 15896]
[New LWP 15897]
[New LWP 15898]
[New LWP 15903]
[New LWP 15904]
[New LWP 15907]
[New LWP 15914]
[New LWP 15915]
[New LWP 16215]
[New LWP 16339]
[New LWP 16340]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f19bfda5aff in __GI___poll (fds=0x7ffdf38ecb78, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
__preamble__
____drkonqi_qmltrace_thread:1____
Failed to do pygdbmi parsing: No module named 'pygdbmi'
frame={level="0",func="onFilterChanged",file="qrc:/main.qml",fullname="qrc:/main.qml",line="41",language="js"},frame={level="1",func="onCalendarClicked",file="qrc:/main.qml",fullname="qrc:/main".
---------------------------------
(beware that frames may have been optimized out)

[Current thread is 1 (Thread 0x7f19bac029c0 (LWP 15890))]

Thread 13 (Thread 0x7f196b3fe700 (LWP 16340)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55db8a8f6240) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55db8a8f61f0, cond=0x55db8a8f6218) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55db8a8f6218, mutex=0x55db8a8f61f0) at pthread_cond_wait.c:647
#3  0x00007f19c01536db in QWaitConditionPrivate::wait (deadline=..., this=0x55db8a8f61f0) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=this@entry=0x55db8735ea78, mutex=mutex@entry=0x55db8735ea70, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007f19c2853c24 in QSGRenderThreadEventQueue::takeEvent (wait=true, this=0x55db8735ea68) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qdeadlinetimer.h:68
#6  QSGRenderThread::processEventsAndWaitForMore (this=this@entry=0x55db8735e9d0) at scenegraph/qsgthreadedrenderloop.cpp:936
#7  0x00007f19c2854099 in QSGRenderThread::run (this=0x55db8735e9d0) at scenegraph/qsgthreadedrenderloop.cpp:1053
#8  0x00007f19c014d543 in QThreadPrivate::start (arg=0x55db8735e9d0) at thread/qthread_unix.cpp:331
#9  0x00007f19be576609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007f19bfdb2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7f199247a700 (LWP 16339)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55db87defa54) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55db87defa00, cond=0x55db87defa28) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55db87defa28, mutex=0x55db87defa00) at pthread_cond_wait.c:647
#3  0x00007f199e2d7fdb in ?? () from /usr/lib/x86_64-linux-gnu/dri/crocus_dri.so
#4  0x00007f199e2d7d2b in ?? () from /usr/lib/x86_64-linux-gnu/dri/crocus_dri.so
#5  0x00007f19be576609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f19bfdb2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7f1974c64700 (LWP 16215)):
#0  0x00007f19bdb40cc1 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f19bdb41312 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f19bdb414a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f19c038e9eb in QEventDispatcherGlib::processEvents (this=0x7f196c000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f19c0332c7b in QEventLoop::exec (this=this@entry=0x7f1974c63be0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f19c014c362 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f19c014d543 in QThreadPrivate::start (arg=0x55db8907b610) at thread/qthread_unix.cpp:331
#7  0x00007f19be576609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f19bfdb2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7f1990c77700 (LWP 15915)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55db851d8474) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55db851d8420, cond=0x55db851d8448) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55db851d8448, mutex=0x55db851d8420) at pthread_cond_wait.c:647
#3  0x00007f19c01536db in QWaitConditionPrivate::wait (deadline=..., this=0x55db851d8420) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=this@entry=0x55db851d8388, mutex=mutex@entry=0x55db851d8380, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007f19c2853c24 in QSGRenderThreadEventQueue::takeEvent (wait=true, this=0x55db851d8378) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qdeadlinetimer.h:68
#6  QSGRenderThread::processEventsAndWaitForMore (this=this@entry=0x55db851d82e0) at scenegraph/qsgthreadedrenderloop.cpp:936
#7  0x00007f19c2854099 in QSGRenderThread::run (this=0x55db851d82e0) at scenegraph/qsgthreadedrenderloop.cpp:1053
#8  0x00007f19c014d543 in QThreadPrivate::start (arg=0x55db851d82e0) at thread/qthread_unix.cpp:331
#9  0x00007f19be576609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007f19bfdb2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7f1991478700 (LWP 15914)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55db85210920) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55db852108d0, cond=0x55db852108f8) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55db852108f8, mutex=0x55db852108d0) at pthread_cond_wait.c:647
#3  0x00007f199e2d7fdb in ?? () from /usr/lib/x86_64-linux-gnu/dri/crocus_dri.so
#4  0x00007f199e2d7d2b in ?? () from /usr/lib/x86_64-linux-gnu/dri/crocus_dri.so
#5  0x00007f19be576609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f19bfdb2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7f199dda3700 (LWP 15907)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55db840aac98) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55db840aac48, cond=0x55db840aac70) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55db840aac70, mutex=0x55db840aac48) at pthread_cond_wait.c:647
#3  0x00007f199e2d7fdb in ?? () from /usr/lib/x86_64-linux-gnu/dri/crocus_dri.so
#4  0x00007f199e2d7d2b in ?? () from /usr/lib/x86_64-linux-gnu/dri/crocus_dri.so
#5  0x00007f19be576609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f19bfdb2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f19b13ac700 (LWP 15904)):
#0  0x00007f19bdb8dee7 in g_private_get () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f19bdb6b044 in g_thread_self () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f19bdb41493 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f19c038e9eb in QEventDispatcherGlib::processEvents (this=0x7f1998000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f19c0332c7b in QEventLoop::exec (this=this@entry=0x7f19b13abbe0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f19c014c362 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f19c014d543 in QThreadPrivate::start (arg=0x55db83f84ba0) at thread/qthread_unix.cpp:331
#7  0x00007f19be576609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f19bfdb2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f19b25ed700 (LWP 15903)):
#0  0x00007f19bfda5aff in __GI___poll (fds=0x7f19a4004e60, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f19bdb4136e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f19bdb414a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f19c038e9eb in QEventDispatcherGlib::processEvents (this=0x7f19a4000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f19c0332c7b in QEventLoop::exec (this=this@entry=0x7f19b25ecbc0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f19c014c362 in QThread::exec (this=this@entry=0x55db83f5eaa0) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f19c1b55559 in QQmlThreadPrivate::run (this=0x55db83f5eaa0) at qml/ftw/qqmlthread.cpp:155
#7  0x00007f19c014d543 in QThreadPrivate::start (arg=0x55db83f5eaa0) at thread/qthread_unix.cpp:331
#8  0x00007f19be576609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f19bfdb2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f19b2dee700 (LWP 15898)):
#0  0x00007f19bdb40c63 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f19bdb41312 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f19bdb414a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f19c038e9eb in QEventDispatcherGlib::processEvents (this=0x7f19a0000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f19c0332c7b in QEventLoop::exec (this=this@entry=0x7f19b2dedbe0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f19c014c362 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f19c014d543 in QThreadPrivate::start (arg=0x55db83f28810) at thread/qthread_unix.cpp:331
#7  0x00007f19be576609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f19bfdb2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f19b35ef700 (LWP 15897)):
#0  0x00007f19bfda5aff in __GI___poll (fds=0x7f19a8004a60, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f19bdb4136e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f19bdb414a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f19c038e9eb in QEventDispatcherGlib::processEvents (this=0x7f19a8000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f19c0332c7b in QEventLoop::exec (this=this@entry=0x7f19b35eebe0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f19c014c362 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f19c014d543 in QThreadPrivate::start (arg=0x55db83f231a0) at thread/qthread_unix.cpp:331
#7  0x00007f19be576609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f19bfdb2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f19b885a700 (LWP 15896)):
#0  0x00007f19bfda5aff in __GI___poll (fds=0x7f19ac008da0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f19bdb4136e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f19bdb414a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f19c038e9eb in QEventDispatcherGlib::processEvents (this=0x7f19ac000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f19c0332c7b in QEventLoop::exec (this=this@entry=0x7f19b8859bb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f19c014c362 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f19c05f0f4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f19c014d543 in QThreadPrivate::start (arg=0x7f19c0674d80) at thread/qthread_unix.cpp:331
#8  0x00007f19be576609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f19bfdb2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f19ba091700 (LWP 15895)):
#0  0x00007f19bfda5aff in __GI___poll (fds=fds@entry=0x7f19ba090ae8, nfds=nfds@entry=1, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f19be700c1a in poll (__timeout=-1, __nfds=1, __fds=0x7f19ba090ae8) at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2  _xcb_conn_wait (c=c@entry=0x55db83ba15e0, cond=cond@entry=0x55db83ba1620, vector=vector@entry=0x0, count=count@entry=0x0) at ../../src/xcb_conn.c:480
#3  0x00007f19be70290a in xcb_wait_for_event (c=0x55db83ba15e0) at ../../src/xcb_in.c:697
#4  0x00007f19ba7d3f98 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#5  0x00007f19c014d543 in QThreadPrivate::start (arg=0x55db83b93670) at thread/qthread_unix.cpp:331
#6  0x00007f19be576609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007f19bfdb2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f19bac029c0 (LWP 15890)):
[KCrash Handler]
#4  0x00007f19c1f092fc in KDescendantsProxyModel::mapFromSource (this=0x55db856ad950, sourceIndex=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:488
#5  0x00007f19c1f0c8ab in KDescendantsProxyModelPrivate::sourceRowsInserted (this=0x55db8a2dda50, parent=..., start=0, end=9) at ./src/core/kdescendantsproxymodel.cpp:802
#6  0x00007f19c036b19e in QtPrivate::QSlotObjectBase::call (a=0x7ffdf38ed940, r=0x55db856ad950, this=0x55db85518520) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#7  doActivate<false> (sender=0x55db8511b670, signal_index=13, argv=0x7ffdf38ed940) at kernel/qobject.cpp:3886
#8  0x00007f19c0364567 in QMetaObject::activate (sender=sender@entry=0x55db8511b670, m=m@entry=0x7f19c05cf020 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=10, argv=argv@entry=0x7ffdf38ed940) at kernel/qobject.cpp:3946
#9  0x00007f19c02d60b2 in QAbstractItemModel::rowsInserted (this=this@entry=0x55db8511b670, _t1=..., _t2=<optimized out>, _t3=<optimized out>, _t4=...) at .moc/moc_qabstractitemmodel.cpp:592
#10 0x00007f19c02dea72 in QAbstractItemModel::endInsertRows (this=0x55db8511b670) at itemmodels/qabstractitemmodel.cpp:2780
#11 0x00007f19c0304cdd in QSortFilterProxyModelPrivate::insert_source_items (this=<optimized out>, source_to_proxy=..., proxy_to_source=..., source_items=..., source_parent=..., orient=Qt::Vertical, emit_signal=true) at itemmodels/qsortfilterproxymodel.cpp:950
#12 0x00007f19c03095e9 in QSortFilterProxyModelPrivate::handle_filter_changed (this=0x55db88168050, source_to_proxy=..., proxy_to_source=..., source_parent=..., orient=Qt::Vertical) at itemmodels/qsortfilterproxymodel.cpp:1376
#13 0x00007f19c03099bd in QSortFilterProxyModelPrivate::filter_changed (this=0x55db88168050, source_parent=...) at itemmodels/qsortfilterproxymodel.cpp:1305
#14 0x00007f19c030a99e in QSortFilterProxyModel::invalidateFilter (this=<optimized out>) at ../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:60
#15 0x000055db81ef9128 in TodoSortFilterProxyModel::setFilter (this=0x55db8511b670, filter=...) at ./src/todosortfilterproxymodel.cpp:178
#16 0x000055db81e7e1fa in TodoSortFilterProxyModel::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./obj-x86_64-linux-gnu/src/kalendar_autogen/EWIEGA46WW/moc_todosortfilterproxymodel.cpp:276
#17 0x00007f19c1a9cea1 in QQmlPropertyData::writeProperty (this=<optimized out>, target=<optimized out>, value=<optimized out>, flags=...) at ../../include/QtQml/5.15.3/QtQml/private/../../../../../src/qml/qml/qqmlpropertydata_p.h:375
#18 0x00007f19c1a987bc in QQmlPropertyPrivate::write (object=object@entry=0x55db8511b670, property=..., value=..., context=context@entry=0x55db844e7bb0, flags=..., flags@entry=...) at qml/qqmlproperty.cpp:1301
#19 0x00007f19c1a9ca24 in QQmlPropertyPrivate::writeValueProperty (object=0x55db8511b670, core=..., valueTypeData=..., value=..., context=0x55db844e7bb0, flags=flags@entry=...) at qml/qqmlproperty.cpp:1214
#20 0x00007f19c1b10bd4 in QQmlBinding::slowWrite (this=this@entry=0x55db891f3170, core=..., valueTypeData=..., result=..., isUndefined=isUndefined@entry=false, flags=..., flags@entry=...) at ../../include/QtQml/5.15.3/QtQml/private/../../../../../src/qml/qml/ftw/qflagpointer_p.h:242
#21 0x00007f19c1b11d00 in GenericBinding<0>::write (this=0x55db891f3170, result=..., isUndefined=<optimized out>, flags=...) at ../../include/QtQml/5.15.3/QtQml/private/../../../../../src/qml/common/qv4staticvalue_p.h:316
#22 0x00007f19c1b13333 in QQmlNonbindingBinding::doUpdate (this=0x55db891f3170, watcher=..., flags=..., scope=...) at ../../include/QtQml/5.15.3/QtQml/private/../../../../../src/qml/jsruntime/qv4scopedvalue_p.h:242
#23 0x00007f19c1b10102 in QQmlBinding::update (this=0x55db891f3170, flags=...) at qml/qqmlbinding.cpp:194
#24 0x00007f19c1ae864d in QQmlNotifier::emitNotify (endpoint=<optimized out>, a=a@entry=0x0) at qml/qqmlnotifier.cpp:104
#25 0x00007f19c1a8afbf in QQmlData::signalEmitted (object=0x55db857b1460, index=121, a=0x0) at qml/qqmlengine.cpp:834
#26 0x00007f19c036ad25 in doActivate<false> (sender=0x55db857b1460, signal_index=121, argv=0x0) at kernel/qobject_p.h:110
#27 0x00007f19c1a86176 in QQmlVMEMetaObject::writeVarProperty(int, QV4::Value const&) () at ../../include/QtQml/5.15.3/QtQml/private/../../../../../src/qml/qml/qqmlpropertycache_p.h:376
#28 0x00007f19c1b10535 in QQmlBinding::slowWrite (this=this@entry=0x55db8596e650, core=..., valueTypeData=..., result=..., isUndefined=isUndefined@entry=false, flags=..., flags@entry=...) at ../../include/QtQml/5.15.3/QtQml/private/../../../../../src/qml/qml/qqmlpropertydata_p.h:285
#29 0x00007f19c1b11d00 in GenericBinding<0>::write (this=0x55db8596e650, result=..., isUndefined=<optimized out>, flags=...) at ../../include/QtQml/5.15.3/QtQml/private/../../../../../src/qml/common/qv4staticvalue_p.h:316
#30 0x00007f19c1b13333 in QQmlNonbindingBinding::doUpdate (this=0x55db8596e650, watcher=..., flags=..., scope=...) at ../../include/QtQml/5.15.3/QtQml/private/../../../../../src/qml/jsruntime/qv4scopedvalue_p.h:242
#31 0x00007f19c1b10102 in QQmlBinding::update (this=0x55db8596e650, flags=...) at qml/qqmlbinding.cpp:194
#32 0x00007f19c1ae864d in QQmlNotifier::emitNotify (endpoint=<optimized out>, a=a@entry=0x0) at qml/qqmlnotifier.cpp:104
#33 0x00007f19c1a8afbf in QQmlData::signalEmitted (object=0x55db8b0106c0, index=97, a=0x0) at qml/qqmlengine.cpp:834
#34 0x00007f19c036ad25 in doActivate<false> (sender=0x55db8b0106c0, signal_index=97, argv=0x0) at kernel/qobject_p.h:110
#35 0x00007f19c1a86176 in QQmlVMEMetaObject::writeVarProperty(int, QV4::Value const&) () at ../../include/QtQml/5.15.3/QtQml/private/../../../../../src/qml/qml/qqmlpropertycache_p.h:376
#36 0x00007f19c19b56af in QV4::QObjectWrapper::setProperty (engine=0x55db83f5ed40, object=0x55db8b0106c0, property=0x7f19a4644d98, value=...) at ../../include/QtQml/5.15.3/QtQml/private/../../../../../src/qml/qml/qqmlpropertydata_p.h:285
#37 0x00007f19c19b62ae in QV4::QObjectWrapper::setQmlProperty (engine=0x55db83f5ed40, qmlContext=<optimized out>, object=0x55db8b0106c0, name=<optimized out>, revisionMode=QV4::QObjectWrapper::IgnoreRevision, value=...) at jsruntime/qv4qobjectwrapper.cpp:435
#38 0x00007f19c19b6427 in QV4::QObjectWrapper::virtualPut(QV4::Managed*, QV4::PropertyKey, QV4::Value const&, QV4::Value*) () at /usr/include/c++/9/bits/atomic_base.h:413
#39 0x00007f19c193390c in QV4::Object::put (receiver=0x7f19b19ae780, v=..., name=0x7f19b19ae788, this=0x7f19b19ae780) at ../../include/QtQml/5.15.3/QtQml/private/../../../../../src/qml/jsruntime/qv4string_p.h:167
#40 QV4::Lookup::setterFallback (l=<optimized out>, engine=0x55db83f5ed40, object=..., value=...) at jsruntime/qv4lookup.cpp:497
#41 0x00007f199d55d21d in ?? ()
#42 0x0000000000000000 in ?? ()
[Inferior 1 (process 15890) detached]

Possible duplicates by query: bug 447836, bug 445853, bug 373054, bug 361426.

Reported using DrKonqi
Comment 1 Claudio Cambra 2022-01-26 23:25:49 UTC
We recently refactored the todo model, could you see if you can still reproduce this issue? Thanks!
Comment 2 Claudio Cambra 2022-01-26 23:26:40 UTC
(In reply to Claudio Cambra from comment #1)
> We recently refactored the todo model, could you see if you can still
> reproduce this issue? Thanks!

That is, if you can compile Kalendar from source, otherwise you might need to wait until the next release :)
Comment 3 Samuele 2022-01-27 09:29:18 UTC
(In reply to Claudio Cambra from comment #2)
> (In reply to Claudio Cambra from comment #1)
> > We recently refactored the todo model, could you see if you can still
> > reproduce this issue? Thanks!
> 
> That is, if you can compile Kalendar from source, otherwise you might need
> to wait until the next release :)

I'll try to compile it from source and I'll let you know :)
Comment 4 Samuele 2022-01-27 09:36:05 UTC
I'll try when I can reach the source code: https://invent.kde.org/pim/kalendar seems unavalilable.
Comment 5 Samuele 2022-01-27 17:01:08 UTC
Couldn't compile, here's the error:
>CMake Error at /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
> Could NOT find KF5 (missing: QQC2DesktopStyle) (found suitable version
> "5.90.0", minimum required is "5.88.0")
> Call Stack (most recent call first):
>  /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
>  /usr/share/ECM/find-modules/FindKF5.cmake:93 (find_package_handle_standard_args)
>  CMakeLists.txt:49 (find_package)

It seems 5.90 is less than 5.88. What am I doing wrong?
Comment 6 Claudio Cambra 2022-01-27 21:53:06 UTC
(In reply to Samuele from comment #5)
> Couldn't compile, here's the error:
> >CMake Error at /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
> > Could NOT find KF5 (missing: QQC2DesktopStyle) (found suitable version
> > "5.90.0", minimum required is "5.88.0")
> > Call Stack (most recent call first):
> >  /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
> >  /usr/share/ECM/find-modules/FindKF5.cmake:93 (find_package_handle_standard_args)
> >  CMakeLists.txt:49 (find_package)
> 
> It seems 5.90 is less than 5.88. What am I doing wrong?

You are missing the package qqc2-desktop-style
Comment 7 Samuele 2022-01-27 23:21:29 UTC
The name of the package I was missing is libkf5qqc2desktopstyle-dev, and it wasn't listed as a requirement in the project page.
Anyway, I built it and tried again. As you can see here https://nextcloud.samuelezappala.it/s/mT4ELtPxCDGwrP8 if I'm in "All tasks" view, expand a task and then select a calendar, it just crashes. If I go from a calendar to an other it hangs and eventually Plasma asks me to close it.
Comment 8 Claudio Cambra 2022-01-29 21:38:00 UTC
(In reply to Samuele from comment #7)
> The name of the package I was missing is libkf5qqc2desktopstyle-dev, and it
> wasn't listed as a requirement in the project page.
> Anyway, I built it and tried again. As you can see here
> https://nextcloud.samuelezappala.it/s/mT4ELtPxCDGwrP8 if I'm in "All tasks"
> view, expand a task and then select a calendar, it just crashes. If I go
> from a calendar to an other it hangs and eventually Plasma asks me to close
> it.

Thanks, will add this package to our README.

This crash should be fixed now, could you test the latest commits from the git master version of Kalendar? Thanks again
Comment 9 Samuele 2022-01-29 22:26:07 UTC
I tride commit 349c3066 and 6ebf38e9, the result is the same but I don't really understand what's happening: https://nextcloud.samuelezappala.it/s/qgTiAwD2WQpYAJS

I'm sorry I couldn't attach a crash report, but the last thing I do (select a calendar different from the one in which the task I expanded is) just hangs the program.
Comment 10 Samuele 2022-01-29 22:31:26 UTC
Created attachment 146056 [details]
New crash information added by DrKonqi

kalendar (0.4.0) using Qt 5.15.3

- What I was doing when the application crashed:
I succeded in making it crash again: changing task calendar was sufficient.

-- Backtrace (Reduced):
#4  0x00007fcdd800f2fc in KDescendantsProxyModel::mapFromSource (this=0x55f01aef0350, sourceIndex=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:488
#5  0x00007fcdd80128ab in KDescendantsProxyModelPrivate::sourceRowsInserted (this=0x55f01aee3470, parent=..., start=0, end=17) at ./src/core/kdescendantsproxymodel.cpp:802
#6  0x00007fcdd640b19e in QtPrivate::QSlotObjectBase::call (a=0x7fff41aeba10, r=0x55f01aef0350, this=0x55f01af41420) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#7  doActivate<false> (sender=0x55f01aef2830, signal_index=13, argv=0x7fff41aeba10) at kernel/qobject.cpp:3886
[...]
#9  0x00007fcdd63760b2 in QAbstractItemModel::rowsInserted (this=this@entry=0x55f01aef2830, _t1=..., _t2=<optimized out>, _t3=<optimized out>, _t4=...) at .moc/moc_qabstractitemmodel.cpp:592
Comment 11 Claudio Cambra 2022-01-29 22:33:43 UTC
(In reply to Samuele from comment #10)
> Created attachment 146056 [details]
> New crash information added by DrKonqi
> 
> kalendar (0.4.0) using Qt 5.15.3
> 
> - What I was doing when the application crashed:
> I succeded in making it crash again: changing task calendar was sufficient.
> 
> -- Backtrace (Reduced):
> #4  0x00007fcdd800f2fc in KDescendantsProxyModel::mapFromSource
> (this=0x55f01aef0350, sourceIndex=...) at
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:488
> #5  0x00007fcdd80128ab in KDescendantsProxyModelPrivate::sourceRowsInserted
> (this=0x55f01aee3470, parent=..., start=0, end=17) at
> ./src/core/kdescendantsproxymodel.cpp:802
> #6  0x00007fcdd640b19e in QtPrivate::QSlotObjectBase::call
> (a=0x7fff41aeba10, r=0x55f01aef0350, this=0x55f01af41420) at
> ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
> #7  doActivate<false> (sender=0x55f01aef2830, signal_index=13,
> argv=0x7fff41aeba10) at kernel/qobject.cpp:3886
> [...]
> #9  0x00007fcdd63760b2 in QAbstractItemModel::rowsInserted
> (this=this@entry=0x55f01aef2830, _t1=..., _t2=<optimized out>,
> _t3=<optimized out>, _t4=...) at .moc/moc_qabstractitemmodel.cpp:592

Can you reproduce this crash when sorting your to-dos in ascending alphabetical order?
Comment 12 Samuele 2022-01-29 23:11:58 UTC
Created attachment 146058 [details]
New crash information added by DrKonqi

kalendar (0.4.0) using Qt 5.15.3

- What I was doing when the application crashed:
Same crash, but with tasks sorted in alphabetical order.

-- Backtrace (Reduced):
#4  0x00007fa55d8612fc in KDescendantsProxyModel::mapFromSource (this=0x55fefb52f440, sourceIndex=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:488
#5  0x00007fa55d8648ab in KDescendantsProxyModelPrivate::sourceRowsInserted (this=0x55fefb5225f0, parent=..., start=0, end=17) at ./src/core/kdescendantsproxymodel.cpp:802
#6  0x00007fa55bc5d19e in QtPrivate::QSlotObjectBase::call (a=0x7ffce8dc2d30, r=0x55fefb52f440, this=0x55fefb5804f0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#7  doActivate<false> (sender=0x55fefb531950, signal_index=13, argv=0x7ffce8dc2d30) at kernel/qobject.cpp:3886
[...]
#9  0x00007fa55bbc80b2 in QAbstractItemModel::rowsInserted (this=this@entry=0x55fefb531950, _t1=..., _t2=<optimized out>, _t3=<optimized out>, _t4=...) at .moc/moc_qabstractitemmodel.cpp:592
Comment 13 Claudio Cambra 2022-01-31 02:56:19 UTC
(In reply to Samuele from comment #12)
> Created attachment 146058 [details]
> New crash information added by DrKonqi
> 
> kalendar (0.4.0) using Qt 5.15.3
> 
> - What I was doing when the application crashed:
> Same crash, but with tasks sorted in alphabetical order.
> 
> -- Backtrace (Reduced):
> #4  0x00007fa55d8612fc in KDescendantsProxyModel::mapFromSource
> (this=0x55fefb52f440, sourceIndex=...) at
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:488
> #5  0x00007fa55d8648ab in KDescendantsProxyModelPrivate::sourceRowsInserted
> (this=0x55fefb5225f0, parent=..., start=0, end=17) at
> ./src/core/kdescendantsproxymodel.cpp:802
> #6  0x00007fa55bc5d19e in QtPrivate::QSlotObjectBase::call
> (a=0x7ffce8dc2d30, r=0x55fefb52f440, this=0x55fefb5804f0) at
> ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
> #7  doActivate<false> (sender=0x55fefb531950, signal_index=13,
> argv=0x7ffce8dc2d30) at kernel/qobject.cpp:3886
> [...]
> #9  0x00007fa55bbc80b2 in QAbstractItemModel::rowsInserted
> (this=this@entry=0x55fefb531950, _t1=..., _t2=<optimized out>,
> _t3=<optimized out>, _t4=...) at .moc/moc_qabstractitemmodel.cpp:592

I was able to reproduce locally and have pushed a fix for the crashing, could you pull the latest changes again and check on your end? Thanks!
Comment 14 Samuele 2022-01-31 18:36:05 UTC
Created attachment 146107 [details]
New crash information added by DrKonqi

kalendar (0.4.0) using Qt 5.15.3

Ok now all subtasks are expanded, without an option to make them collapsed by deafault, but this is clearly not important now.
Going from "All tasks" to a specific calendar is not a problem anymore. I mean, the problem appeared expanding a task in its subtasks, but now it's all expanded; we can say that doiing the reverse (collapsing a task and selecting a specific calendar) doesn't create issues.
The same with going from a calendar to another calendar: no issue anymore. But...

- What I was doing when the application crashed:
I managed to make it crash collapsing all the tasks in a specific calendar and changing calendar. i tried with the green calendar and it didn't happen; I don't know if it's related to calendar with more than a few tasks.
You can see it happen here: https://nextcloud.samuelezappala.it/s/oTWSRsZQTSeP2BL

-- Backtrace (Reduced):
#4  0x00007feffe6fe2fc in KDescendantsProxyModel::mapFromSource (this=0x561221316590, sourceIndex=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:488
#5  0x00007feffe7018ab in KDescendantsProxyModelPrivate::sourceRowsInserted (this=0x561221309760, parent=..., start=0, end=17) at ./src/core/kdescendantsproxymodel.cpp:802
#6  0x00007feffcafa19e in QtPrivate::QSlotObjectBase::call (a=0x7fffde901de0, r=0x561221316590, this=0x56122137dcf0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#7  doActivate<false> (sender=0x561221318ae0, signal_index=13, argv=0x7fffde901de0) at kernel/qobject.cpp:3886
[...]
#9  0x00007feffca650b2 in QAbstractItemModel::rowsInserted (this=this@entry=0x561221318ae0, _t1=..., _t2=<optimized out>, _t3=<optimized out>, _t4=...) at .moc/moc_qabstractitemmodel.cpp:592
Comment 15 Claudio Cambra 2022-01-31 21:01:57 UTC
(In reply to Samuele from comment #14)
> Created attachment 146107 [details]
> New crash information added by DrKonqi
> 
> kalendar (0.4.0) using Qt 5.15.3
> 
> Ok now all subtasks are expanded, without an option to make them collapsed
> by deafault, but this is clearly not important now.
> Going from "All tasks" to a specific calendar is not a problem anymore. I
> mean, the problem appeared expanding a task in its subtasks, but now it's
> all expanded; we can say that doiing the reverse (collapsing a task and
> selecting a specific calendar) doesn't create issues.
> The same with going from a calendar to another calendar: no issue anymore.
> But...
> 
> - What I was doing when the application crashed:
> I managed to make it crash collapsing all the tasks in a specific calendar
> and changing calendar. i tried with the green calendar and it didn't happen;
> I don't know if it's related to calendar with more than a few tasks.
> You can see it happen here:
> https://nextcloud.samuelezappala.it/s/oTWSRsZQTSeP2BL
> 
> -- Backtrace (Reduced):
> #4  0x00007feffe6fe2fc in KDescendantsProxyModel::mapFromSource
> (this=0x561221316590, sourceIndex=...) at
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:488
> #5  0x00007feffe7018ab in KDescendantsProxyModelPrivate::sourceRowsInserted
> (this=0x561221309760, parent=..., start=0, end=17) at
> ./src/core/kdescendantsproxymodel.cpp:802
> #6  0x00007feffcafa19e in QtPrivate::QSlotObjectBase::call
> (a=0x7fffde901de0, r=0x561221316590, this=0x56122137dcf0) at
> ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
> #7  doActivate<false> (sender=0x561221318ae0, signal_index=13,
> argv=0x7fffde901de0) at kernel/qobject.cpp:3886
> [...]
> #9  0x00007feffca650b2 in QAbstractItemModel::rowsInserted
> (this=this@entry=0x561221318ae0, _t1=..., _t2=<optimized out>,
> _t3=<optimized out>, _t4=...) at .moc/moc_qabstractitemmodel.cpp:592

Thank you for your patience and your dedication, it is seriously helpful.

I've added a new and improved fix that should, fingers crossed, retain the prior behaviour of collapsed tasks by default while still preventing the crashing, including in the case you provided above.

Could you try the latest commit? Thanks again!
Comment 16 Samuele 2022-02-01 09:28:05 UTC
All seems well: no more crashes :D
Comment 17 Claudio Cambra 2022-02-01 12:24:35 UTC
(In reply to Samuele from comment #16)
> All seems well: no more crashes :D

That's a relief -- very hapopy to close this bug now :)