Bug 460640

Summary: Kalendar crash on 1/3 days button push
Product: [Applications] Merkuro Reporter: David <kitt997>
Component: generalAssignee: Claudio Cambra <claudio.cambra>
Status: CONFIRMED ---    
Severity: crash CC: ar0x2ff, carl, kdebugs, major-mayer, robin
Priority: NOR Keywords: drkonqi
Version First Reported In: 22.08.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description David 2022-10-18 08:31:45 UTC
Application: kalendar (22.08.1)

Qt Version: 5.15.6
Frameworks Version: 5.98.0
Operating System: Linux 5.19.15-201.fc36.x86_64 x86_64
Windowing System: X11
Distribution: Fedora Linux 36 (Thirty Six)
DrKonqi: 5.25.5 [KCrashBackend]

-- Information about the crash:
Selecting 3 days/1 day from week view makes Kalendar crash.

The crash can be reproduced every time.

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

[KCrash Handler]
#4  0x00007f849767d9d0 in QVector<QQuickItemPrivate::ChangeListener>::indexOf(QQuickItemPrivate::ChangeListener const&, int) const [clone .isra.0] () from /lib64/libQt5Quick.so.5
#5  0x00007f8497690b3c in QQuickItemPrivate::removeItemChangeListener(QQuickItemChangeListener*, QFlags<QQuickItemPrivate::ChangeType>) () from /lib64/libQt5Quick.so.5
#6  0x00007f8494490c5b in QQuickScrollBarAttachedPrivate::setFlickable(QQuickFlickable*) () from /lib64/libQt5QuickTemplates2.so.5
#7  0x00007f8494490ef1 in QQuickScrollBarAttached::~QQuickScrollBarAttached() () from /lib64/libQt5QuickTemplates2.so.5
#8  0x00007f8494490f0d in QQuickScrollBarAttached::~QQuickScrollBarAttached() () from /lib64/libQt5QuickTemplates2.so.5
#9  0x00007f8495ad13ca in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#10 0x00007f8495ad8748 in QObject::~QObject() () from /lib64/libQt5Core.so.5
#11 0x00007f84800a2251 in QQmlPrivate::QQmlElement<QQuickScrollView>::~QQmlElement() () from /usr/lib64/qt5/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.so
#12 0x00007f8497119755 in QQmlObjectCreator::clear() () from /lib64/libQt5Qml.so.5
#13 0x00007f84970ae628 in QQmlIncubatorPrivate::clear() () from /lib64/libQt5Qml.so.5
#14 0x00007f84970ae6f5 in QQmlIncubator::clear() () from /lib64/libQt5Qml.so.5
#15 0x00007f84943575b8 in QQmlDelegateModelPrivate::releaseIncubator(QQDMIncubationTask*) () from /lib64/libQt5QmlModels.so.5
#16 0x00007f849435f81c in QQmlDelegateModelPrivate::itemsRemoved(QVector<QQmlListCompositor::Remove> const&, QVarLengthArray<QVector<QQmlChangeSet::Change>, 11>*, QHash<int, QList<QQmlDelegateModelItem*> >*) () from /lib64/libQt5QmlModels.so.5
#17 0x00007f8494362471 in QQmlDelegateModelPrivate::itemsMoved(QVector<QQmlListCompositor::Remove> const&, QVector<QQmlListCompositor::Insert> const&) () from /lib64/libQt5QmlModels.so.5
#18 0x00007f84943643d4 in QQmlDelegateModel::_q_modelReset() () from /lib64/libQt5QmlModels.so.5
#19 0x00007f849436502b in QQmlDelegateModel::qt_metacall(QMetaObject::Call, int, void**) () from /lib64/libQt5QmlModels.so.5
#20 0x00007f8495adb87e in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#21 0x00007f8495a58fd1 in QAbstractItemModel::modelReset(QAbstractItemModel::QPrivateSignal) () from /lib64/libQt5Core.so.5
#22 0x000055e7a206d976 in QtPrivate::QFunctorSlotObject<MultiDayIncidenceModel::setModel(IncidenceOccurrenceModel*)::{lambda()#1}, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) [clone .lto_priv.0] ()
#23 0x00007f8495adb9a6 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#24 0x00007f8495a58fd1 in QAbstractItemModel::modelReset(QAbstractItemModel::QPrivateSignal) () from /lib64/libQt5Core.so.5
#25 0x000055e7a2056315 in IncidenceOccurrenceModel::updateFromSource() ()
#26 0x00007f8495adb9a6 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#27 0x00007f8495aded2e in QTimer::timeout(QTimer::QPrivateSignal) () from /lib64/libQt5Core.so.5
#28 0x00007f8495ad2ad5 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#29 0x00007f84967aed02 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#30 0x00007f8495aa81c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#31 0x00007f8495af83b1 in QTimerInfoList::activateTimers() () from /lib64/libQt5Core.so.5
#32 0x00007f8495af8cd4 in idleTimerSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#33 0x00007f8493873faf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#34 0x00007f84938c92c8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#35 0x00007f8493871940 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#36 0x00007f8495af902a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#37 0x00007f8495aa6c1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#38 0x00007f8495aaece2 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#39 0x000055e7a2031738 in main ()
[Inferior 1 (process 2874) detached]

Reported using DrKonqi
Comment 1 Jim James 2022-12-03 07:39:19 UTC
Created attachment 154259 [details]
New crash information added by DrKonqi

kalendar (22.08.3) using Qt 5.15.7

Seemingly randomly, Kalendar crashes at launch. This occurs both when Kalendar is launched via the kalendar command and when it is opened via kickoff.

-- Backtrace (Reduced):
#5  0x00007fe137290c7c in QQuickItemPrivate::removeItemChangeListener(QQuickItemChangeListener*, QFlags<QQuickItemPrivate::ChangeType>) () from /lib64/libQt5Quick.so.5
#6  0x00007fe13416dc5b in QQuickScrollBarAttachedPrivate::setFlickable(QQuickFlickable*) () from /lib64/libQt5QuickTemplates2.so.5
#7  0x00007fe13416def1 in QQuickScrollBarAttached::~QQuickScrollBarAttached() () from /lib64/libQt5QuickTemplates2.so.5
#8  0x00007fe13416df0d in QQuickScrollBarAttached::~QQuickScrollBarAttached() () from /lib64/libQt5QuickTemplates2.so.5
#9  0x00007fe1356d164a in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
Comment 2 Claudio Cambra 2022-12-04 12:40:19 UTC
Yes, we have had this issue in several views at this point and seems to be an underlying Qt issue:

https://bugreports.qt.io/browse/QTBUG-106106

Will see if there is some workaround
Comment 3 Carl Schwan 2023-02-19 12:19:10 UTC
*** Bug 460292 has been marked as a duplicate of this bug. ***
Comment 4 Carl Schwan 2023-02-20 12:21:03 UTC
*** Bug 466137 has been marked as a duplicate of this bug. ***
Comment 5 Carl Schwan 2023-02-20 12:23:17 UTC
*** Bug 461130 has been marked as a duplicate of this bug. ***