Bug 494523

Summary: kmail crashes on startup
Product: [Applications] kmail2 Reporter: kavol <kavol>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description kavol 2024-10-11 11:14:02 UTC
Application: kmail (6.1.2 (24.05.2))
 (Compiled from sources)
Qt Version: 6.7.2
Frameworks Version: 6.6.0
Operating System: Linux 6.6.52-gentoo x86_64
Windowing System: X11
Distribution: "Gentoo Linux"
DrKonqi: 6.1.5 [KCrashBackend]

-- Information about the crash:
Since update to Qt6 versions of the apps, kmail often crashes on startup - this one I'm reporting is fourth crash in a row; usually it crashes on every other startup and I am able to run it on second try, but bad luck today ...

Note that I'm running kmail remotely and from my observation - subjective, no statistics, it is like
- when started on xpra (Xvfb) display it crashes more often; akonadictl start before running kmail seems to improve things a bit; note also that some kmail dialogue windows have the ability to crash xpra in turn
- when started via ssh from another Gentoo machine it crashes less often; akonadictl start seems to help too
- when started via ssh from Fedora it crashes more often; starting akonadi at first doesn't seem to have any influence or maybe makes it even worse like in today's case

The crash can be reproduced sometimes.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fcfdf832139 in KMMainWidget::slotHistorySwitchFolder(Akonadi::Collection const&) () at /usr/lib64/libkmailprivate.so.6
#5  0x00007fcfd7d5b9f7 in void doActivate<false>(QObject*, int, void**) () at /usr/lib64/libQt6Core.so.6
#6  0x00007fcfd63fbaaa in Akonadi::EntityTreeView::currentChanged(Akonadi::Collection const&) () at /usr/lib64/libKPim6AkonadiWidgets.so.6
#7  0x00007fcfd63fc5a5 in Akonadi::EntityTreeViewPrivate::itemCurrentChanged(QModelIndex const&) const () at /usr/lib64/libKPim6AkonadiWidgets.so.6
#8  0x00007fcfd7d5b9f7 in void doActivate<false>(QObject*, int, void**) () at /usr/lib64/libQt6Core.so.6
#9  0x00007fcfd7c18f50 in QItemSelectionModel::currentChanged(QModelIndex const&, QModelIndex const&) () at /usr/lib64/libQt6Core.so.6
#10 0x00007fcfd7c596ac in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () at /usr/lib64/libQt6Core.so.6
#11 0x00007fcfd573961a in KViewStateSerializerPrivate::restoreCurrentItem() () at /usr/lib64/libKF6WidgetsAddons.so.6
#12 0x00007fcfd57396b8 in KViewStateSerializer::restoreCurrentItem(QString const&) () at /usr/lib64/libKF6WidgetsAddons.so.6
#13 0x00007fcfd71904b3 in MessageList::Pane::restoreHeaderSettings(int, bool) () at /usr/lib64/libKPim6MessageList.so.6
#14 0x00007fcfd7190775 in MessageList::Pane::readConfig(bool) () at /usr/lib64/libKPim6MessageList.so.6
#15 0x00007fcfd7190e47 in MessageList::Pane::Pane(bool, QAbstractItemModel*, QItemSelectionModel*, QWidget*) () at /usr/lib64/libKPim6MessageList.so.6
#16 0x00007fcfdf7c015b in CollectionPane::CollectionPane(bool, QAbstractItemModel*, QItemSelectionModel*, QWidget*) () at /usr/lib64/libkmailprivate.so.6
#17 0x00007fcfdf82f565 in KMMainWidget::createWidgets() () at /usr/lib64/libkmailprivate.so.6
#18 0x00007fcfdf830fe9 in KMMainWidget::KMMainWidget(QWidget*, KXMLGUIClient*, KActionCollection*, QExplicitlySharedDataPointer<KSharedConfig> const&) () at /usr/lib64/libkmailprivate.so.6
#19 0x00007fcfdf7d786c in KMMainWin::KMMainWin(QWidget*) [clone .isra.0] () at /usr/lib64/libkmailprivate.so.6
#20 0x00007fcfdf7e5a10 in KMKernel::openReader(bool, bool) () at /usr/lib64/libkmailprivate.so.6
#21 0x00007fcfdf7eb324 in KMKernel::action(bool, bool, bool, QString const&, QString const&, QString const&, QString const&, QString const&, QUrl const&, QList<QUrl> const&, QList<QString> const&, QString const&, QString const&, QString const&) () at /usr/lib64/libkmailprivate.so.6
#22 0x00007fcfdf7eb658 in KMKernel::handleCommandLine(bool, QList<QString> const&, QString const&) () at /usr/lib64/libkmailprivate.so.6
#23 0x0000563dec169bde in KMailApplication::activate(QList<QString> const&, QString const&) ()
#24 0x0000563dec1696d8 in main ()
[Inferior 1 (process 9708) detached]

Reported using DrKonqi
Comment 1 Filip 2024-11-12 11:31:10 UTC
*** Bug 496170 has been marked as a duplicate of this bug. ***