Bug 349085

Summary: KMail crash on startup - Agent instance creation timed out
Product: [Applications] kmail2 Reporter: life0s_50
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 4.14.7   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description life0s_50 2015-06-13 02:27:53 UTC
Application: kmail (4.14.7)
KDE Platform Version: 4.14.9
Qt Version: 4.8.6
Operating System: Linux 4.0.4-303.fc22.i686 i686
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
I started KMail for the first time.  It took a long time to load.  The first error was "The email encountered a fatal error and will terminate now.  The error was Agent instance creation timed out."  KMail closed when I clicked OK.

The akonadi selftest report shows this error.
Test 16:  ERROR
--------

Current Akonadi control error log found.
Details: The Akonadi control process reported errors during its current startup. The log can be found in <a href='/home/olson/.local/share/akonadi/akonadi_control.error'>/home/olson/.local/share/akonadi/akonadi_control.error</a>.

File content of '/home/olson/.local/share/akonadi/akonadi_control.error':
Executable "akonadi_nepomuk_feeder" for agent "akonadi_nepomuk_feeder" could not be found! 
Executable "akonadi_folderarchive_agent" for agent "akonadi_folderarchive_agent" could not be found!
The akonadi_control.error log shows the following.
Executable "akonadi_nepomuk_feeder" for agent "akonadi_nepomuk_feeder" could not be found! 
Executable "akonadi_folderarchive_agent" for agent "akonadi_folderarchive_agent" could not be found! 
"D-Bus communication error 'org.freedesktop.DBus.Error.NoReply': 'Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.'" 

The akonadi selftest report shows this warning.
Test 5:  WARNING
--------

MySQL server log contains warnings.
Details: The MySQL server log file &apos;<a href='/home/olson/.local/share/akonadi/db_data/mysql.err'>/home/olson/.local/share/akonadi/db_data/mysql.err</a>&apos; contains warnings.

File content of '/home/olson/.local/share/akonadi/db_data/mysql.err':
2015-06-12 15:22:43 b57509c0 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
150612 15:22:43 [Note] InnoDB: Using mutexes to ref count buffer pool pages
150612 15:22:43 [Note] InnoDB: The InnoDB memory heap is disabled
150612 15:22:43 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
150612 15:22:43 [Note] InnoDB: Memory barrier is not used
150612 15:22:43 [Note] InnoDB: Compressed tables use zlib 1.2.8
150612 15:22:43 [Note] InnoDB: Using Linux native AIO
150612 15:22:43 [Note] InnoDB: Not using CPU crc32 instructions
150612 15:22:43 [Note] InnoDB: Initializing buffer pool, size = 80.0M
150612 15:22:43 [Note] InnoDB: Completed initialization of buffer pool
150612 15:22:44 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
150612 15:22:44 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
150612 15:22:44 [Note] InnoDB: Database physically writes the file full: wait...
150612 15:22:45 [Note] InnoDB: Setting log file ./ib_logfile101 size to 64 MB
150612 15:22:58 [Note] InnoDB: Setting log file ./ib_logfile1 size to 64 MB
150612 15:23:12 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
150612 15:23:12 [Warning] InnoDB: New log files created, LSN=45781
150612 15:23:12 [Note] InnoDB: Doublewrite buffer not found: creating new
150612 15:23:13 [Note] InnoDB: Doublewrite buffer created
150612 15:23:13 [Note] InnoDB: 128 rollback segment(s) are active.
150612 15:23:13 [Warning] InnoDB: Creating foreign key constraint system tables.
150612 15:23:14 [Note] InnoDB: Foreign key constraint system tables created
150612 15:23:14 [Note] InnoDB: Creating tablespace and datafile system tables.
150612 15:23:14 [Note] InnoDB: Tablespace and datafile system tables created.
150612 15:23:14 [Note] InnoDB: Waiting for purge to start
150612 15:23:14 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.23-72.1 started; log sequence number 0
150612 15:23:18 [Note] InnoDB: FTS optimize thread exiting.
150612 15:23:18 [Note] InnoDB: Starting shutdown...
150612 15:23:19 [Note] InnoDB: Shutdown completed; log sequence number 1616697
2015-06-12 15:23:20 b57739c0 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
150612 15:23:20 [Note] InnoDB: Using mutexes to ref count buffer pool pages
150612 15:23:20 [Note] InnoDB: The InnoDB memory heap is disabled
150612 15:23:20 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
150612 15:23:20 [Note] InnoDB: Memory barrier is not used
150612 15:23:20 [Note] InnoDB: Compressed tables use zlib 1.2.8
150612 15:23:20 [Note] InnoDB: Using Linux native AIO
150612 15:23:20 [Note] InnoDB: Not using CPU crc32 instructions
150612 15:23:20 [Note] InnoDB: Initializing buffer pool, size = 80.0M
150612 15:23:20 [Note] InnoDB: Completed initialization of buffer pool
150612 15:23:21 [Note] InnoDB: Highest supported file format is Barracuda.
150612 15:23:21 [Note] InnoDB: 128 rollback segment(s) are active.
150612 15:23:21 [Note] InnoDB: Waiting for purge to start
150612 15:23:21 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.23-72.1 started; log sequence number 1616697
150612 15:23:24 [Note] InnoDB: FTS optimize thread exiting.
150612 15:23:24 [Note] InnoDB: Starting shutdown...
150612 15:23:26 [Note] InnoDB: Shutdown completed; log sequence number 1616707
2015-06-12 15:23:32 b58489c0 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
150612 15:23:32 [Note] InnoDB: Using mutexes to ref count buffer pool pages
150612 15:23:32 [Note] InnoDB: The InnoDB memory heap is disabled
150612 15:23:32 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
150612 15:23:32 [Note] InnoDB: Memory barrier is not used
150612 15:23:32 [Note] InnoDB: Compressed tables use zlib 1.2.8
150612 15:23:32 [Note] InnoDB: Using Linux native AIO
150612 15:23:32 [Note] InnoDB: Not using CPU crc32 instructions
150612 15:23:32 [Note] InnoDB: Initializing buffer pool, size = 80.0M
150612 15:23:32 [Note] InnoDB: Completed initialization of buffer pool
150612 15:23:32 [Note] InnoDB: Setting log file ./ib_logfile101 size to 64 MB
150612 15:23:43 [Note] InnoDB: Setting log file ./ib_logfile1 size to 64 MB
150612 15:23:53 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
150612 15:23:53 [Warning] InnoDB: New log files created, LSN=1616707
150612 15:23:53 [Note] InnoDB: Highest supported file format is Barracuda.
150612 15:23:54 [Note] InnoDB: 128 rollback segment(s) are active.
150612 15:23:54 [Note] InnoDB: Waiting for purge to start
150612 15:23:54 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.23-72.1 started; log sequence number 1616908
150612 15:23:54 [Note] Plugin 'FEEDBACK' is disabled.
150612 15:23:54 [Note] Reading of all Master_info entries succeded
150612 15:23:54 [Note] Added new Master_info '' to hash table
150612 15:23:54 [Note] /usr/libexec/mysqld: ready for connections.
Version: '10.0.19-MariaDB'  socket: '/tmp/akonadi-olson.5PoLPi/mysql.socket'  port: 0  MariaDB Server

-- Backtrace:
Application: KMail (kmail), signal: Aborted
Using host libthread_db library "/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0xae2ba800 (LWP 2312))]

Thread 4 (Thread 0xab123b40 (LWP 2317)):
#0  0xb7731bba in __kernel_vsyscall ()
#1  0xb59c7e3c in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:187
#2  0xb3e61da4 in WTF::ThreadCondition::wait (this=this@entry=0x8ef4a54, mutex=...) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/ThreadingPthreads.cpp:379
#3  0xb3b032b4 in JSC::BlockAllocator::blockFreeingThreadMain (this=0x8ef49c8) at /usr/src/debug/webkit-qtwebkit-23/Source/JavaScriptCore/heap/BlockAllocator.cpp:128
#4  0xb3e40589 in WTF::threadEntryPoint (contextData=0x8db8f40) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/Threading.cpp:69
#5  0xb3e6167a in WTF::wtfThreadEntryPoint (param=0x8ddac60) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/ThreadingPthreads.cpp:196
#6  0xb59c3380 in start_thread (arg=0xab123b40) at pthread_create.c:333
#7  0xb4b81d4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122

Thread 3 (Thread 0xaa2ffb40 (LWP 2318)):
#0  0xb7731bba in __kernel_vsyscall ()
#1  0xb4b74b6b in poll () at ../sysdeps/unix/syscall-template.S:81
#2  0xb0c20f1c in poll (__timeout=1633, __timeout@entry=0, __nfds=__nfds@entry=1, __fds=__fds@entry=0xa9900de8) at /usr/include/bits/poll2.h:46
#3  g_poll (fds=fds@entry=0xa9900de8, nfds=nfds@entry=1, timeout=timeout@entry=1633) at gpoll.c:124
#4  0xb0c110a8 in g_main_context_poll (priority=2147483647, n_fds=1, fds=0xa9900de8, timeout=<optimized out>, context=0xa99004e0) at gmain.c:4103
#5  g_main_context_iterate (context=context@entry=0xa99004e0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3803
#6  0xb0c111f7 in g_main_context_iteration (context=0xa99004e0, may_block=1) at gmain.c:3869
#7  0xb5b9e6ff in QEventDispatcherGlib::processEvents (this=0xa9900468, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#8  0xb5b68242 in QEventLoop::processEvents (this=this@entry=0xaa2ff1c4, flags=...) at kernel/qeventloop.cpp:149
#9  0xb5b685e9 in QEventLoop::exec (this=this@entry=0xaa2ff1c4, flags=...) at kernel/qeventloop.cpp:204
#10 0xb5a3e144 in QThread::exec (this=this@entry=0x8dc6480) at thread/qthread.cpp:538
#11 0xb5a3e2ac in QThread::run (this=0x8dc6480) at thread/qthread.cpp:605
#12 0xb5a40e1b in QThreadPrivate::start (arg=0x8dc6480) at thread/qthread_unix.cpp:349
#13 0xb59c3380 in start_thread (arg=0xaa2ffb40) at pthread_create.c:333
#14 0xb4b81d4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122

Thread 2 (Thread 0xa8f4eb40 (LWP 2322)):
#0  0xb7731bba in __kernel_vsyscall ()
#1  0xb59c7e3c in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:187
#2  0xb7374f1f in QTWTF::TCMalloc_PageHeap::scavengerThread (this=this@entry=0xb747e7e0 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#3  0xb7374f60 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0xb747e7e0 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#4  0xb59c3380 in start_thread (arg=0xa8f4eb40) at pthread_create.c:333
#5  0xb4b81d4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122

Thread 1 (Thread 0xae2ba800 (LWP 2312)):
[KCrash Handler]
#7  0xb7731bba in __kernel_vsyscall ()
#8  0xb4ab67f6 in __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#9  0xb4ab8075 in __GI_abort () at abort.c:89
#10 0xb5a35305 in qt_message_output (msgType=msgType@entry=QtFatalMsg, buf=0x91dcdb8 "Fatal Error: Accessed global static 'QList<KMainWindow*> *sMemberList()' after destruction. Defined at ../../kdeui/widgets/kmainwindow.cpp:214") at global/qglobal.cpp:2359
#11 0xb5a354c0 in qt_message (msgType=msgType@entry=QtFatalMsg, msg=msg@entry=0xb642a3a4 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0xbfcdb0f4 "b\025E\266V\025E\266<\026E\266\326") at global/qglobal.cpp:2405
#12 0xb5a35aa6 in qFatal (msg=msg@entry=0xb642a3a4 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d") at global/qglobal.cpp:2588
#13 0xb636f9b4 in operator-> (this=<synthetic pointer>) at ../../kdeui/widgets/kmainwindow.cpp:214
#14 operator* (this=<synthetic pointer>) at ../../kdeui/widgets/kmainwindow.cpp:214
#15 KMainWindow::memberList () at ../../kdeui/widgets/kmainwindow.cpp:1218
#16 0xb750e986 in KMKernel::dumpDeadLetters (this=0xbfcdcec0) at ../../kmail/kmkernel.cpp:1322
#17 0xb7510801 in kmCrashHandler (sigId=6) at ../../kmail/kmkernel.cpp:1181
#18 0xb62fe49f in KCrash::defaultCrashHandler (sig=6) at ../../kdeui/util/kcrash.cpp:307
#19 <signal handler called>
#20 0xb7731bba in __kernel_vsyscall ()
#21 0xb4ab67f6 in __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#22 0xb4ab8075 in __GI_abort () at abort.c:89
#23 0xb5a35305 in qt_message_output (msgType=msgType@entry=QtFatalMsg, buf=0x8e1a2e0 "Fatal Error: Accessed global static 'KernelPrivate *sInstance()' after destruction. Defined at ../../mailcommon/kernel/mailkernel.cpp:58") at global/qglobal.cpp:2359
#24 0xb5a354c0 in qt_message (msgType=msgType@entry=QtFatalMsg, msg=msg@entry=0xb4943ffc "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0xbfcdbb04 "\243>\224\264\231>\224\264P?\224\264:") at global/qglobal.cpp:2405
#25 0xb5a35aa6 in qFatal (msg=msg@entry=0xb4943ffc "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d") at global/qglobal.cpp:2588
#26 0xb48590a4 in operator-> (this=<optimized out>) at ../../mailcommon/kernel/mailkernel.cpp:58
#27 MailCommon::Kernel::self () at ../../mailcommon/kernel/mailkernel.cpp:75
#28 0xb48b6c83 in MailCommon::FolderCollection::writeConfig (this=this@entry=0x8cdabf0) at ../../mailcommon/folder/foldercollection.cpp:218
#29 0xb48b766f in MailCommon::FolderCollection::~FolderCollection (this=0x8cdabf0, __in_chrg=<optimized out>) at ../../mailcommon/folder/foldercollection.cpp:84
#30 0xb48b770d in MailCommon::FolderCollection::~FolderCollection (this=0x8cdabf0, __in_chrg=<optimized out>) at ../../mailcommon/folder/foldercollection.cpp:86
#31 0xb48b5853 in deref (value=0x8cdabf0, d=0x8cd7e58) at /usr/include/QtCore/qsharedpointer_impl.h:342
#32 deref (this=<optimized out>) at /usr/include/QtCore/qsharedpointer_impl.h:336
#33 ~ExternalRefCount (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/QtCore/qsharedpointer_impl.h:401
#34 ~QSharedPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/QtCore/qsharedpointer_impl.h:466
#35 QMap<long long, QSharedPointer<MailCommon::FolderCollection> >::freeData (x=0x911a048, this=<optimized out>) at /usr/include/QtCore/qmap.h:652
#36 0xb4ab9e5c in __cxa_finalize (d=0xb4993c40) at cxa_finalize.c:56
#37 0xb4856834 in __do_global_dtors_aux () from /lib/libmailcommon.so.4
#38 0xb7741e04 in _dl_fini () at dl-fini.c:252
#39 0xb4ab9b03 in __run_exit_handlers (status=1, listp=0xb4c523dc <__exit_funcs>, run_list_atexit=true) at exit.c:82
#40 0xb4ab9b5f in __GI_exit (status=1) at exit.c:104
#41 0xb485843d in MailCommon::Kernel::emergencyExit (this=this@entry=0x8cb78d8, reason=...) at ../../mailcommon/kernel/mailkernel.cpp:237
#42 0xb4858923 in MailCommon::Kernel::createDefaultCollectionDone (this=this@entry=0x8cb78d8, job=0x8ef3da0) at ../../mailcommon/kernel/mailkernel.cpp:189
#43 0xb493df61 in MailCommon::Kernel::qt_static_metacall (_o=0x8cb78d8, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfcdc424) at moc_mailkernel.cpp:58
#44 0xb5b7f79a in QMetaObject::activate (sender=sender@entry=0x8ef3da0, m=m@entry=0xb606d60c <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0xbfcdc424) at kernel/qobject.cpp:3567
#45 0xb5e8d4fa in KJob::result (this=this@entry=0x8ef3da0, _t1=_t1@entry=0x8ef3da0) at ./kjob.moc:207
#46 0xb5e8d563 in KJob::emitResult (this=0x8ef3da0) at ../../kdecore/jobs/kjob.cpp:318
#47 0xb6bfefd4 in Akonadi::SpecialCollectionsRequestJobPrivate::lockResult (this=0x935ad70, job=0x8dd5668) at ../../akonadi/specialcollectionsrequestjob.cpp:121
#48 0xb5b7f79a in QMetaObject::activate (sender=sender@entry=0x8dd5668, m=m@entry=0xb606d60c <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0xbfcdc5a4) at kernel/qobject.cpp:3567
#49 0xb5e8d4fa in KJob::result (this=this@entry=0x8dd5668, _t1=_t1@entry=0x8dd5668) at ./kjob.moc:207
#50 0xb5e8d563 in KJob::emitResult (this=0x8dd5668) at ../../kdecore/jobs/kjob.cpp:318
#51 0xb6bf4bc1 in Akonadi::GetLockJob::Private::timeout (this=0x96f8c60) at ../../akonadi/specialcollectionshelperjobs.cpp:618
#52 0xb5b7f79a in QMetaObject::activate (sender=sender@entry=0x912fdf0, m=m@entry=0xb5cda688 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3567
#53 0xb5bd8e86 in QTimer::timeout (this=this@entry=0x912fdf0) at .moc/release-shared/moc_qtimer.cpp:147
#54 0xb5b8afa6 in QTimer::timerEvent (this=0x912fdf0, e=0xbfcdcadc) at kernel/qtimer.cpp:280
#55 0xb5b857d1 in QObject::event (this=0x912fdf0, e=0xbfcdcadc) at kernel/qobject.cpp:1253
#56 0xb4fc9794 in QApplicationPrivate::notify_helper (this=0x8a7c010, receiver=0x912fdf0, e=0xbfcdcadc) at kernel/qapplication.cpp:4565
#57 0xb4fd0be0 in QApplication::notify (this=this@entry=0xbfcdcea8, receiver=receiver@entry=0x912fdf0, e=e@entry=0xbfcdcadc) at kernel/qapplication.cpp:4351
#58 0xb6284952 in KApplication::notify (this=0xbfcdcea8, receiver=0x912fdf0, event=0xbfcdcadc) at ../../kdeui/kernel/kapplication.cpp:311
#59 0xb5b69cb6 in QCoreApplication::notifyInternal (this=0xbfcdcea8, receiver=0x912fdf0, event=event@entry=0xbfcdcadc) at kernel/qcoreapplication.cpp:953
#60 0xb5ba10bd in sendEvent (event=0xbfcdcadc, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#61 QTimerInfoList::activateTimers (this=this@entry=0x8a7a944) at kernel/qeventdispatcher_unix.cpp:621
#62 0xb5b9dbe9 in timerSourceDispatch (source=source@entry=0x8a7a910) at kernel/qeventdispatcher_glib.cpp:193
#63 0xb0c10d43 in g_main_dispatch (context=0x8a7c168) at gmain.c:3122
#64 g_main_context_dispatch (context=context@entry=0x8a7c168) at gmain.c:3737
#65 0xb0c11125 in g_main_context_iterate (context=context@entry=0x8a7c168, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3808
#66 0xb0c111f7 in g_main_context_iteration (context=0x8a7c168, may_block=1) at gmain.c:3869
#67 0xb5b9e6ff in QEventDispatcherGlib::processEvents (this=this@entry=0x8a288e0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#68 0xb508707c in QGuiEventDispatcherGlib::processEvents (this=0x8a288e0, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#69 0xb5b68242 in QEventLoop::processEvents (this=this@entry=0xbfcdcd54, flags=...) at kernel/qeventloop.cpp:149
#70 0xb5b685e9 in QEventLoop::exec (this=this@entry=0xbfcdcd54, flags=...) at kernel/qeventloop.cpp:204
#71 0xb5b6ebbb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#72 0xb4fc7b55 in QApplication::exec () at kernel/qapplication.cpp:3823
#73 0x0804a8d4 in main (argc=3, argv=0xbfcdd004) at ../../kmail/main.cpp:145

Possible duplicates by query: bug 346970, bug 346142, bug 345399, bug 343954, bug 337536.

Reported using DrKonqi
Comment 1 life0s_50 2015-06-13 06:59:40 UTC
I reset akonadi using the instructions here which solved the issue.
https://docs.kde.org/stable4/en/kdepim/kmail/clean-start-after-a-failed-migration.html
Comment 2 Christoph Feck 2017-01-11 02:36:26 UTC

*** This bug has been marked as a duplicate of bug 339214 ***