Bug 430790 - Kontact crashes randomly at start
Summary: Kontact crashes randomly at start
Status: REPORTED
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-12-24 14:37 UTC by Taner
Modified: 2021-02-01 07:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (12.46 KB, text/plain)
2021-02-01 05:54 UTC, Philippe ROUBACH
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Taner 2020-12-24 14:37:50 UTC
Application: kontact (5.16.0 (20.12.0))

Qt Version: 5.15.2
Frameworks Version: 5.77.0
Operating System: Linux 5.9.14-1-default x86_64
Windowing system: X11
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
- What I was doing when the application crashed:

Quite often when I start Kontact I receive a crash notification on my desktop. In some cases there is no new window and I need to relaunch Kontact to use it and in some cases Kontact window still show up after crash notification and I can use it as normal. It seems like akkregator session is in all cases crashed and needs to be restored or dismissed.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault

[KCrash Handler]
#4  std::__atomic_base<int>::load(std::memory_order) const (__m=std::memory_order_relaxed, this=Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0x7f9400000114: 
#5  QAtomicOps<int>::loadRelaxed<int>(std::atomic<int> const&) (_q_value=Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0x7f9400000114: 
#6  QBasicAtomicInteger<int>::loadRelaxed() const (this=Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0x7f9400000114: 
#7  QtPrivate::RefCount::isShared() const (this=Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0x7f9400000114: 
#8  QList<QWidget*>::append(QWidget* const&) (this=0x7f9400000114, t=@0x7ffd83189730: 0x5576abfec820) at ../../include/QtCore/../../src/corelib/tools/qlist.h:622
#9  0x00007f94fdae0bc0 in QWidget::insertAction(QAction*, QAction*) (this=this@entry=0x5576abfec820, before=<optimized out>, before@entry=0x0, action=0x55769b8a7820) at kernel/qwidget.cpp:3129
#10 0x00007f94fe2a3f0b in KXMLGUI::ActionList::plug(QWidget*, int) const (index=<optimized out>, container=0x5576abfec820, this=0x5576b41d9b40) at /usr/src/debug/kxmlgui-5.77.0-1.1.x86_64/src/kxmlguifactory_p.cpp:32
#11 KXMLGUI::ContainerNode::plugActionList(KXMLGUI::BuildState&, QTypedArrayData<KXMLGUI::MergingIndex>::iterator const&) (mergingIdxIt=<optimized out>, mergingIdxIt=<synthetic pointer>..., state=..., this=0x5576b45d4630) at /usr/src/debug/kxmlgui-5.77.0-1.1.x86_64/src/kxmlguifactory_p.cpp:221
#12 KXMLGUI::ContainerNode::plugActionList(KXMLGUI::BuildState&) (this=0x5576b45d4630, state=...) at /usr/src/debug/kxmlgui-5.77.0-1.1.x86_64/src/kxmlguifactory_p.cpp:191
#13 0x00007f94fe2a3f91 in KXMLGUI::ContainerNode::plugActionList(KXMLGUI::BuildState&) (this=0x55769bb84290, state=...) at /usr/src/debug/kxmlgui-5.77.0-1.1.x86_64/src/kxmlguifactory_p.cpp:195
#14 0x00007f94fe2a3f91 in KXMLGUI::ContainerNode::plugActionList(KXMLGUI::BuildState&) (this=0x55769ba44440, state=...) at /usr/src/debug/kxmlgui-5.77.0-1.1.x86_64/src/kxmlguifactory_p.cpp:195
#15 0x00007f94fe2ab311 in KXMLGUIFactory::plugActionList(KXMLGUIClient*, QString const&, QList<QAction*> const&) (this=0x5576acad1550, client=0x5576a5b566b0, name=..., actionList=...) at /usr/src/debug/kxmlgui-5.77.0-1.1.x86_64/src/kxmlguifactory.cpp:563
#16 0x00007f94a0b03d90 in PimCommon::PluginInterface::initializePluginActions(QString const&, KXMLGUIClient*) (this=0x7ffd83189a78, prefix=..., guiClient=0x5576a5b566b0) at /usr/src/debug/pimcommon-20.12.0-1.1.x86_64/src/pimcommonakonadi/genericplugins/plugininterface.cpp:157
#17 0x00007f94a14f28e0 in KMMainWidget::initializePluginActions() (this=0x5576aa829e20) at /usr/src/debug/kmail-20.12.0-1.1.x86_64/src/kmmainwidget.cpp:4191
#18 0x00007f94a168c865 in KMailPart::guiActivateEvent(KParts::GUIActivateEvent*) (e=<optimized out>, this=0x5576a5b56680) at /usr/src/debug/kmail-20.12.0-1.1.x86_64/src/kmail_part.cpp:116
#19 KMailPart::guiActivateEvent(KParts::GUIActivateEvent*) (this=0x5576a5b56680, e=0x7ffd83189b20) at /usr/src/debug/kmail-20.12.0-1.1.x86_64/src/kmail_part.cpp:108
#20 0x00007f94fcf261ef in QObject::event(QEvent*) (this=0x5576a5b56680, e=0x7ffd83189ca0) at kernel/qobject.cpp:1336
#21 0x00007f94fdaaa50f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x5576a5b56680, e=0x7ffd83189ca0) at kernel/qapplication.cpp:3632
#22 0x00007f94fcefa28a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x5576a5b56680, event=0x7ffd83189ca0) at kernel/qcoreapplication.cpp:1063
#23 0x00007f94fc6f9f2f in KParts::MainWindow::createGUI(KParts::Part*) (this=0x5576a5a16e10, part=0x5576a5b56680) at /usr/src/debug/kparts-5.77.0-1.1.x86_64/src/mainwindow.cpp:108
#24 0x00007f94fe32662a in Kontact::MainWindow::selectPlugin(KontactInterface::Plugin*) (this=0x5576a5a16e10, plugin=<optimized out>) at /usr/src/debug/kontact-20.12.0-1.1.x86_64/src/mainwindow.cpp:662
#25 0x00007f94fcf308a0 in doActivate<false>(QObject*, int, void**) (sender=0x557696510cb0, signal_index=7, argv=argv@entry=0x7ffd83189ef0) at kernel/qobject.cpp:3898
#26 0x00007f94fcf29bc0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=<optimized out>, m=m@entry=0x7f94fe344820 <Kontact::SidePaneBase::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd83189ef0) at kernel/qobject.cpp:3946
#27 0x00007f94fe32239f in Kontact::SidePaneBase::pluginSelected(KontactInterface::Plugin*) (this=<optimized out>, _t1=<optimized out>) at /usr/src/debug/kontact-20.12.0-1.1.x86_64/build/src/kontactprivate_autogen/EWIEGA46WW/moc_sidepanebase.cpp:141
#28 0x00007f94fcf30866 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd8318a030, r=0x557696510cb0, this=0x5576963be390) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#29 doActivate<false>(QObject*, int, void**) (sender=0x55769a2c1190, signal_index=15, argv=argv@entry=0x7ffd8318a030) at kernel/qobject.cpp:3886
#30 0x00007f94fcf29bc0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x55769a2c1190, m=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd8318a030) at kernel/qobject.cpp:3946
#31 0x00007f94fe32de90 in Kontact::Navigator::pluginActivated(KontactInterface::Plugin*) (_t1=<optimized out>, this=0x55769a2c1190) at /usr/src/debug/kontact-20.12.0-1.1.x86_64/build/src/kontactprivate_autogen/EWIEGA46WW/moc_iconsidepane.cpp:161
#32 Kontact::Navigator::slotCurrentChanged(QModelIndex const&) (this=0x55769a2c1190, current=...) at /usr/src/debug/kontact-20.12.0-1.1.x86_64/src/iconsidepane.cpp:516
#33 0x00007f94fcf30866 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd8318a150, r=0x55769a2c1190, this=0x5576964b6300) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#34 doActivate<false>(QObject*, int, void**) (sender=0x5576b22a1080, signal_index=4, argv=argv@entry=0x7ffd8318a150) at kernel/qobject.cpp:3886
#35 0x00007f94fcf29bc0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x5576b22a1080, m=m@entry=0x7f94fd1dd040 <QItemSelectionModel::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffd8318a150) at kernel/qobject.cpp:3946
#36 0x00007f94fcea5223 in QItemSelectionModel::currentChanged(QModelIndex const&, QModelIndex const&) (this=this@entry=0x5576b22a1080, _t1=<optimized out>, _t2=...) at .moc/moc_qitemselectionmodel.cpp:482
#37 0x00007f94fcea8929 in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) (this=0x5576b22a1080, index=<optimized out>, command=...) at itemmodels/qitemselectionmodel.cpp:1416
#38 0x00007f94fe331809 in Kontact::Navigator::setCurrentPlugin(QString const&) (this=0x55769a2c1190, plugin=...) at /usr/src/debug/kontact-20.12.0-1.1.x86_64/src/iconsidepane.cpp:407
#39 0x00007f94fe326560 in Kontact::IconSidePane::setCurrentPlugin(QString const&) (plugin=..., this=0x557696510cb0) at /usr/src/debug/kontact-20.12.0-1.1.x86_64/src/iconsidepane.cpp:579
#40 Kontact::MainWindow::selectPlugin(KontactInterface::Plugin*) (this=0x5576a5a16e10, plugin=<optimized out>) at /usr/src/debug/kontact-20.12.0-1.1.x86_64/src/mainwindow.cpp:631
#41 0x00007f94fe326eec in Kontact::MainWindow::loadSettings() (this=this@entry=0x5576a5a16e10) at /usr/src/debug/kontact-20.12.0-1.1.x86_64/src/mainwindow.cpp:728
#42 0x00007f94fe32b0da in Kontact::MainWindow::initObject() (this=0x5576a5a16e10) at /usr/src/debug/kontact-20.12.0-1.1.x86_64/src/mainwindow.cpp:162
#43 0x00007f94fe32bc67 in Kontact::MainWindow::MainWindow() (this=0x5576a5a16e10, this=<optimized out>) at /usr/src/debug/kontact-20.12.0-1.1.x86_64/src/mainwindow.cpp:89
#44 0x00005576941820a5 in KontactApp::activate(QStringList const&, QString const&) (this=0x7ffd8318ade0, args=<optimized out>, workingDir=<optimized out>) at /usr/src/debug/kontact-20.12.0-1.1.x86_64/src/main.cpp:120
#45 0x00007f94fe2f835e in KontactInterface::PimUniqueApplication::newInstance(QByteArray const&, QStringList const&, QString const&) (this=0x7ffd8318ade0, startupId=..., arguments=..., workingDirectory=...) at /usr/src/debug/kontactinterface-20.12.0-1.1.x86_64/src/pimuniqueapplication.cpp:188
#46 0x00007f94fe2fa743 in KontactInterface::PimUniqueApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_c=<optimized out>, _id=<optimized out>, _a=0x7ffd8318a6f0, _o=0x7ffd8318ade0) at /usr/src/debug/kontactinterface-20.12.0-1.1.x86_64/build/src/KF5KontactInterface_autogen/EWIEGA46WW/moc_pimuniqueapplication.cpp:87
#47 KontactInterface::PimUniqueApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=_o@entry=0x7ffd8318ade0, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=1, _a=_a@entry=0x7ffd8318a6f0) at /usr/src/debug/kontactinterface-20.12.0-1.1.x86_64/build/src/KF5KontactInterface_autogen/EWIEGA46WW/moc_pimuniqueapplication.cpp:79
#48 0x00007f94fe2fa823 in KontactInterface::PimUniqueApplication::qt_metacall(QMetaObject::Call, int, void**) (this=0x7ffd8318ade0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7ffd8318a6f0) at /usr/src/debug/kontactinterface-20.12.0-1.1.x86_64/build/src/KF5KontactInterface_autogen/EWIEGA46WW/moc_pimuniqueapplication.cpp:124
#49 0x00007f94fe04d409 in QDBusConnectionPrivate::deliverCall(QObject*, int, QDBusMessage const&, QVector<int> const&, int) (this=<optimized out>, object=<optimized out>, msg=<optimized out>, metaTypes=<optimized out>, slotIdx=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qvarlengtharray.h:201
#50 0x00007f94fe050914 in QDBusConnectionPrivate::activateCall(QObject*, int, QDBusMessage const&) (this=this@entry=0x7f94dc008a10, object=<optimized out>, flags=81, msg=...) at qdbusintegrator.cpp:904
#51 0x00007f94fe051094 in QDBusConnectionPrivate::activateCall(QObject*, int, QDBusMessage const&) (msg=..., flags=<optimized out>, object=<optimized out>, this=0x7f94dc008a10) at qdbusintegrator.cpp:853
#52 QDBusConnectionPrivate::activateObject(QDBusConnectionPrivate::ObjectTreeNode&, QDBusMessage const&, int) (this=0x7f94dc008a10, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1521
#53 0x00007f94fe053618 in QDBusActivateObjectEvent::placeMetaCall(QObject*) (this=0x7f94dc040710) at qdbusintegrator.cpp:1617
#54 0x00007f94fcf262b1 in QObject::event(QEvent*) (this=0x7ffd8318ade0, e=0x7f94dc040710) at kernel/qobject.cpp:1314
#55 0x00007f94fdaaa50f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x7ffd8318ade0, e=0x7f94dc040710) at kernel/qapplication.cpp:3632
#56 0x00007f94fcefa28a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x7ffd8318ade0, event=0x7f94dc040710) at kernel/qcoreapplication.cpp:1063
#57 0x00007f94fcefccc1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x5576942686f0) at kernel/qcoreapplication.cpp:1817
#58 0x00007f94fcf52153 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x5576943587d0) at kernel/qeventdispatcher_glib.cpp:277
#59 0x00007f94f3da7e57 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#60 0x00007f94f3da81d8 in  () at /usr/lib64/libglib-2.0.so.0
#61 0x00007f94f3da828f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#62 0x00007f94fcf517df in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55769436b550, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#63 0x00007f94fcef8c4b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd8318acc0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#64 0x00007f94fcf00ec0 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#65 0x00007f94fd35a1bc in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1867
#66 0x00007f94fdaaa485 in QApplication::exec() () at kernel/qapplication.cpp:2824
#67 0x0000557694180fc7 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kontact-20.12.0-1.1.x86_64/src/main.cpp:217
[Inferior 1 (process 21981) detached]

The reporter indicates this bug may be a duplicate of or related to bug 420184, bug 411993.

Possible duplicates by query: bug 425936, bug 425931, bug 425340, bug 423579, bug 421812.

Reported using DrKonqi
Comment 1 Philippe ROUBACH 2021-02-01 05:54:32 UTC
Created attachment 135344 [details]
New crash information added by DrKonqi

kontact (5.16.1 (20.12.0)) using Qt 5.15.2

- What I was doing when the application crashed:

I have just launched kontact.
Dr konqui opens a crash report window and offers to me to restart kontact
But kontact starts normaly.
I can use kontact. I don't need to start up kontact again.

-- Backtrace (Reduced):
#10 0x00007f1acfa8fcd2 in qBadAlloc () at global/qglobal.cpp:3338
#11 0x00007f1acfaf2dd4 in QListData::detach_grow (this=this@entry=0x557036b90590, idx=idx@entry=0x7ffefdec21dc, num=num@entry=1) at tools/qlist.cpp:97
#12 0x00007f1ad0c5c2fc in QList<QWidget*>::detach_helper_grow (this=0x557036b90590, i=<optimized out>, i@entry=2147483647, c=c@entry=1) at ../../include/QtCore/../../src/corelib/tools/qlist.h:803
#13 0x00007f1ad0c5c3ed in QList<QWidget*>::append (this=<optimized out>, t=@0x7ffefdec2230: 0x5570387e5c30) at ../../include/QtCore/../../src/corelib/tools/qlist.h:623
#14 0x00007f1ad0c88708 in QWidget::insertAction (this=this@entry=0x5570387e5c30, before=<optimized out>, before@entry=0x0, action=0x5570377186d0) at kernel/qwidget.cpp:3129
Comment 2 Philippe ROUBACH 2021-02-01 06:14:13 UTC
It's not a random phenomenon.
Each time I launch kontact I get a crash.

I can't access to any mails. When I click on a mail I get a message saying kmail is receiving the mail, be patient. I must wait about several mn before kmail displays or not mail contents.

Today the task to back up my mails stops saying it can't access to a mail.
Comment 3 Philippe ROUBACH 2021-02-01 06:25:49 UTC
If I don't access to a mail in my "Personnel" folder in kmail local account
then
no problem to access to a mail in my imap account and to read them.

If I access to any mail in "Personnel" then I can't read this mail but also those in my imap account.
Comment 4 Philippe ROUBACH 2021-02-01 07:12:40 UTC
i quit kontact
then
in konsole i execute

akonadictl restart

then

no more crash launching kontact.
no more problem accessing "Personnel" folder and to display any mail.