<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>424232</bug_id>
          
          <creation_ts>2020-07-15 11:59:22 +0000</creation_ts>
          <short_desc>Crash of the automatic mail archiver</short_desc>
          <delta_ts>2020-09-16 16:52:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>Akonadi</product>
          <component>Archive Mail Agent</component>
          <version>unspecified</version>
          <rep_platform>Neon</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>drkonqi</keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Unknown">null</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/pim/kmail/commit/0922a95a692f6424773cd28f21a83237a60d226f</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1944000</commentid>
    <comment_count>0</comment_count>
    <who name="Unknown">null</who>
    <bug_when>2020-07-15 11:59:22 +0000</bug_when>
    <thetext>Application: akonadi_archivemail_agent (5.14.3 (20.04.3))

Qt Version: 5.14.2
Frameworks Version: 5.72.0
Operating System: Linux 5.3.0-62-generic x86_64
Windowing system: X11
Distribution: KDE neon User Edition 5.19

-- Information about the crash:
I have configured automatic email archiving and every time it tries to run it crashes

-- Backtrace:
Application: akonadi_archivemail_agent (akonadi_archivemail_agent), signal: Segmentation fault

[KCrash Handler]
#4  0x0000562bcdb8b410 in ?? ()
#5  0x00007f965df711c9 in QMetaObject::cast (this=this@entry=0x7f965e4343c0 &lt;QAbstractProxyModel::staticMetaObject&gt;, obj=obj@entry=0x562bcdc0a370) at kernel/qmetaobject.cpp:381
#6  0x00007f965fa3c8af in qobject_cast&lt;QAbstractProxyModel const*&gt; (object=0x562bcdc0a370) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:533
#7  proxiesAndModel (model=0x562bcdc0a370) at ./src/core/models/entitytreemodel.cpp:1147
#8  0x00007f965fa3c9b0 in Akonadi::EntityTreeModel::modelIndexForCollection (model=&lt;optimized out&gt;, collection=...) at ./src/core/models/entitytreemodel.cpp:1171
#9  0x00007f96601fea90 in MailCommon::Util::fullCollectionPath (collection=..., addAccountName=&lt;optimized out&gt;) at ./src/util/mailutil.cpp:114
#10 0x0000562bcc49d0bb in ArchiveJob::execute (this=0x562bcdb841e0) at ./agents/archivemailagent/job/archivejob.cpp:51
#11 0x00007f96602458ab in MailCommon::JobScheduler::runTaskNow (this=0x562bcdb7c170, task=&lt;optimized out&gt;) at ./src/job/jobscheduler.cpp:204
#12 0x00007f96602459b9 in MailCommon::JobScheduler::slotRunNextJob (this=0x562bcdb7c170) at ./src/job/jobscheduler.cpp:158
#13 0x00007f965dfa26d7 in QtPrivate::QSlotObjectBase::call (a=0x7ffd42b39c00, r=0x562bcdb7c170, this=&lt;optimized out&gt;) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#14 doActivate&lt;false&gt; (sender=0x562bcdb7c188, signal_index=3, argv=0x7ffd42b39c00) at kernel/qobject.cpp:3870
#15 0x00007f965df9cf92 in QMetaObject::activate (sender=sender@entry=0x562bcdb7c188, m=m@entry=0x7f965e435ce0 &lt;QTimer::staticMetaObject&gt;, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd42b39c00) at kernel/qobject.cpp:3930
#16 0x00007f965dfa6297 in QTimer::timeout (this=this@entry=0x562bcdb7c188, _t1=...) at .moc/moc_qtimer.cpp:205
#17 0x00007f965dfa65f8 in QTimer::timerEvent (this=0x562bcdb7c188, e=&lt;optimized out&gt;) at kernel/qtimer.cpp:257
#18 0x00007f965df9a4e3 in QObject::event (this=0x562bcdb7c188, e=0x7ffd42b39f60) at kernel/qobject.cpp:1361
#19 0x00007f965e82b9ac in QApplicationPrivate::notify_helper (this=this@entry=0x562bcd7e8740, receiver=receiver@entry=0x562bcdb7c188, e=e@entry=0x7ffd42b39f60) at kernel/qapplication.cpp:3685
#20 0x00007f965e832bb0 in QApplication::notify (this=0x7ffd42b3a260, receiver=0x562bcdb7c188, e=0x7ffd42b39f60) at kernel/qapplication.cpp:3431
#21 0x00007f965df674a8 in QCoreApplication::notifyInternal2 (receiver=0x562bcdb7c188, event=0x7ffd42b39f60) at kernel/qcoreapplication.cpp:1075
#22 0x00007f965dfc5c39 in QTimerInfoList::activateTimers (this=0x562bcd8362d0) at kernel/qtimerinfo_unix.cpp:643
#23 0x00007f965dfc6401 in timerSourceDispatch (source=&lt;optimized out&gt;) at kernel/qeventdispatcher_glib.cpp:183
#24 0x00007f9653cd7417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f9653cd7650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f9653cd76dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f965dfc67ac in QEventDispatcherGlib::processEvents (this=0x562bcd835a30, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#28 0x00007f965df65d2a in QEventLoop::exec (this=this@entry=0x7ffd42b3a1b0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#29 0x00007f965df6f4a0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1383
#30 0x00007f96607aeb4d in Akonadi::AgentBase::init (r=...) at ./src/agentbase/agentbase.cpp:967
#31 0x0000562bcc49860b in Akonadi::AgentBase::init&lt;ArchiveMailAgent&gt; (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at /usr/include/KF5/AkonadiAgentBase/agentbase.h:484
#32 0x00007f965d354b97 in __libc_start_main (main=0x562bcc497360 &lt;main(int, char**)&gt;, argc=3, argv=0x7ffd42b3a3b8, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7ffd42b3a3a8) at ../csu/libc-start.c:310
#33 0x0000562bcc4973fa in _start ()

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

Possible duplicates by query: bug 415991, bug 414454, bug 405922, bug 403359, bug 386007.

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1957956</commentid>
    <comment_count>1</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2020-09-16 16:52:35 +0000</bug_when>
    <thetext>Git commit 0922a95a692f6424773cd28f21a83237a60d226f by Laurent Montel.
Committed on 16/09/2020 at 16:51.
Pushed by mlaurent into branch &apos;release/20.08&apos;.

Fix Bug 426596 - Application: &quot;akonadi_archivemail_agent&quot; crashed after closing &quot;Configure automatic archving...&quot;-Dialog
Related: bug 426596, bug 425786

M  +6    -0    agents/archivemailagent/archivemailkernel.cpp
M  +2    -0    agents/archivemailagent/archivemailkernel.h
M  +1    -1    agents/archivemailagent/archivemailmanager.cpp
M  +1    -2    agents/archivemailagent/archivemailwidget.cpp

https://invent.kde.org/pim/kmail/commit/0922a95a692f6424773cd28f21a83237a60d226f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>