Constant Database Corruption

Hey all, I’m new to eM Client and I’m thinking of making the switch from Mailbird. The feature set of eM Client is perfect for my work but every single day, several times a day, my database corrupts and I no longer get emails. I’ve cleared my database several times only for it to happen again within an hour or two. Even restoring from a backup just delays the issue from reappearing for an hour at most. I’ve tried the latest stable release of eM Client and the most recent beta version and both have the same issue.

It depends on what the details are when the database repair fails.

Can you post them here?

Here’s the log after a few hours today. You can see that it says the ‘database disk image is malformed’ but then it recovers. It seems to randomly decide to not recover and when that happens, I stop receiving emails and every refresh throws out database disk image is malformed. When I try to force a repair of the database, it fails at ‘Checking for inconsistent data’.

eM Client 10.0.2622-beta+4be24cf3c4 (Windows)
3:28:16 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
3:28:16 PM [redacted] Google Contacts Synchronizing folder '/All Contacts'
3:28:16 PM [redacted] Google Settings Synchronizing tags
3:28:16 PM [redacted] Google Contacts Synchronizing folder '/Other Contacts'
3:28:16 PM [redacted] Google Contacts Synchronizing folder '/All Contacts'
3:28:16 PM [redacted] Google Contacts Synchronizing folder '/Directory'
3:28:16 PM [redacted] Google Contacts Synchronizing folder list
3:28:33 PM [redacted] [IMAP] Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 11: 'database disk image is malformed'.
              at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
              at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
              at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
              at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
              at MailClient.Storage.Data.DbRepository`1.FindOids(QueryCondition condition, OrderModifier order, Nullable`1 limit, CancellationToken cancellationToken, SortField[] sortKeys)
              at MailClient.Storage.Data.DbRepository`1.FindOids(QueryCondition condition, CancellationToken cancellationToken, SortField[] sortKeys)
              at MailClient.Protocols.Imap.SyncOperations.NormalSyncOperation.LimitedSyncSearch(CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.SyncOperations.NormalSyncOperation.SynchronizeFolder(Dictionary`2 infoOldFlags, UInt32 serverMessageCount, UInt32 newMessagesTotal, UInt32 uidNext, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.SyncOperations.NormalSyncOperation.ExecuteInternalAsync(CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.SyncOperations.BaseSyncOperation.ExecuteAsync(CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapMailSynchronizer.SynchronizeMessagesAsync(IItemSynchronizeContext`1 synchronizeContext, Folder folder, Boolean fast, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapMailSynchronizer.SynchronizeMessagesAsync(IItemSynchronizeContext`1 synchronizeContext, Folder folder, Boolean fast, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapMailSynchronizer.Synchronize(IItemSynchronizeContext`1 synchronizeContext, Folder folder, CancellationToken cancellationToken)
              at MailClient.Protocols.Common.ItemSynchronizer`2.<>c__DisplayClass40_2.<EnqueueSynchronize>b__6(WorkerStatus status, CancellationToken ct)
              at MailClient.Protocols.Imap.ImapActionCommand.<>c__DisplayClass11_0.<.ctor>b__0(WorkerStatus ws, CancellationToken ct)
              at MailClient.Protocols.Imap.ImapActionCommand.ExecuteInternalSync(WorkerStatus status)
              at MailClient.Protocols.Imap.ImapActionCommand.Execute(WorkerStatus status)
              at MailClient.Commands.Command.Process(WorkerStatus status)
           --- End of stack trace from previous location ---
              at MailClient.Protocols.Imap.ImapAccount.SynchronizeIntAsync(Boolean forced)
              at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass22_0.<<SynchronizeAsync>b__0>d.MoveNext()
             IMAP_SERVER_TYPE = Gmail
             RunInPlace = False
             EnqueuedStackTrace =
                  at MailClient.Protocols.Common.ItemSynchronizer`2.<>c__DisplayClass40_1.<EnqueueSynchronize>g__RunSynchronize|2()
                  at MailClient.Protocols.Common.ItemSynchronizer`2.<>c__DisplayClass40_0.<EnqueueSynchronize>b__0()
                  at MailClient.Protocols.Common.AccountBase.RunIfOnline(Action actionIfOnline, Action actionIfOffline)
                  at MailClient.Protocols.Common.ItemSynchronizer`2.Synchronize(Folder folder, SynchronizationPriority priority, Action`1 completed)
                  at MailClient.Storage.Application.ItemCollection`2.Synchronize(SynchronizationPriority priority, Action`1 completed, Boolean fromUI)
                  at MailClient.Storage.Application.Folder.Synchronize(SynchronizationPriority priority, Boolean fromUI)
                  at MailClient.Storage.Application.Folder.Synchronize(Boolean forced, Boolean fromUI)
                  at MailClient.Protocols.Common.FolderSynchronizer.FolderActivated(Folder folder, Boolean goingOnline)
                  at MailClient.Protocols.Imap.ImapFolderSynchronizer.FolderActivated(Folder folder, Boolean goingOnline)
                  at MailClient.Protocols.Common.FolderSynchronizer.GoOnlinePost()
                  at MailClient.Protocols.Imap.ImapFolderSynchronizer.GoOnlinePost()
                  at MailClient.Protocols.Imap.ImapAccount.GoOnlineInt()
                  at MailClient.Protocols.Common.AccountBase.ChangeOnlineState(Boolean online, OfflineReason offlineReason)
                  at MailClient.Protocols.Common.AccountBase.GoOnline()
                  at MailClient.Protocols.Common.AccountBase.RunIfOnline[T](Func`1 actionIfOnline, Func`1 actionIfOffline)
                  at MailClient.Protocols.Common.SynchronizableMailAccount.Synchronize(SynchronizationPriority priority)
                  at MailClient.Accounts.BindingAccountBase.Receive()
                  at MailClient.Accounts.AccountManager.ReceiveAllInternal(Boolean checkIncludeInGlobalOperations, Boolean fromBackgroundSync)
                  at MailClient.Accounts.AccountManager.SendAndReceiveAll(Boolean checkIncludeInGlobalOperations)
                  at MailClient.Accounts.DesktopAccountManager.timerSendAndReceive_Tick(Object sender, EventArgs e)
                  at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
                  at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
                  at Windows.Win32.PInvoke.DispatchMessage(MSG* lpMsg)
                  at System.Windows.Forms.Application.ComponentManager.Microsoft.Office.IMsoComponentManager.FPushMessageLoop(UIntPtr dwComponentID, msoloop uReason, Void* pvLoopData)
                  at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(msoloop reason, ApplicationContext context)
                  at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(msoloop reason, ApplicationContext context)
                  at System.Windows.Forms.Application.Run(ApplicationContext context)
                  at MailClient.Program.<>c.<Main>b__201_3()
                  at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
                  at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
                  at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
                  at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
                  at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
                  at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
                  at System.Windows.Forms.Control.WndProc(Message& m)
                  at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
                  at System.Windows.Forms.ContainerControl.WndProc(Message& m)
                  at System.Windows.Forms.Form.WndProc(Message& m)
                  at MailClient.Common.UI.Forms.BaseForm.WndProc(Message& m)
                  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
                  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
                  at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
                  at Xilium.CefGlue.Interop.libcef.run_message_loop()
                  at MailClient.Program.Main(String[] args)
             GUIStatus_Exception_Reported = True
3:38:16 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
3:38:16 PM [redacted] Google Contacts Synchronizing folder '/All Contacts'
3:38:16 PM [redacted] Google Settings Synchronizing tags
3:38:16 PM [redacted] Google Calendar Synchronizing folder list
3:38:16 PM [redacted] Google Contacts Synchronizing folder '/Other Contacts'
3:38:16 PM [redacted] Google Contacts Synchronizing folder '/All Contacts'
3:38:16 PM [redacted] Google Contacts Synchronizing folder '/Directory'
3:38:16 PM [redacted] Google Contacts Synchronizing folder list
3:38:16 PM [redacted] Google Calendar Synchronizing folder '/Calendar'
3:38:38 PM [redacted] IMAP Downloading messages: For folder /[Gmail]/All Mail
3:38:39 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
3:38:40 PM [redacted] IMAP Synchronizing folder list
3:38:40 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
3:38:41 PM [redacted] IMAP Synchronizing folder '/[Gmail]/Junk Email'
3:38:42 PM [redacted] IMAP Synchronizing folder '/[Gmail]/Trash'
3:40:34 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
3:40:35 PM [redacted] IMAP Downloading messages: For folder /[Gmail]/All Mail
3:48:16 PM [redacted] Google Contacts Synchronizing folder '/All Contacts'
3:48:16 PM [redacted] Google Settings Synchronizing tags
3:48:16 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
3:48:16 PM [redacted] Google Contacts Synchronizing folder '/Other Contacts'
3:48:16 PM [redacted] Google Contacts Synchronizing folder '/All Contacts'
3:48:16 PM [redacted] Google Contacts Synchronizing folder list
3:48:16 PM [redacted] Google Contacts Synchronizing folder '/Directory'
3:48:17 PM [redacted] IMAP Synchronizing folder list
3:48:17 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
3:48:18 PM [redacted] IMAP Synchronizing folder '/[Gmail]/Junk Email'
3:48:18 PM [redacted] IMAP Synchronizing folder '/[Gmail]/Trash'
3:49:01 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
3:58:16 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
3:58:16 PM [redacted] Google Settings Synchronizing tags
3:58:16 PM [redacted] Google Calendar Synchronizing folder list
3:58:16 PM [redacted] [Google Contacts] MailClient.Accounts.AuthenticationAbortedException: Authentication aborted
              at MailClient.Protocols.Gdata.GenericGapiCommand.Execute(WorkerStatus status)
              at MailClient.Commands.Command.Process(WorkerStatus status)
             RunInPlace = False
             EnqueuedStackTrace =
                  at MailClient.Protocols.Common.ItemSynchronizer`2.<>c__DisplayClass40_1.<EnqueueSynchronize>g__RunSynchronize|2()
                  at MailClient.Protocols.Common.ItemSynchronizer`2.<>c__DisplayClass40_0.<EnqueueSynchronize>b__0()
                  at MailClient.Protocols.Common.AccountBase.RunIfOnline(Action actionIfOnline, Action actionIfOffline)
                  at MailClient.Protocols.Common.ItemSynchronizer`2.Synchronize(Folder folder, SynchronizationPriority priority, Action`1 completed)
                  at MailClient.Storage.Application.ItemCollection`2.Synchronize(SynchronizationPriority priority, Action`1 completed, Boolean fromUI)
                  at MailClient.Storage.Application.ItemCollection`2.SynchronizeAsync(Boolean forced, Boolean fromUI)
                  at MailClient.Storage.Application.Folder.SynchronizeAsync(Boolean forced, Boolean fromUI)
                  at MailClient.Protocols.Gdata.GdataContactsAccount.SynchronizeInt(SynchronizationPriority priority, CancellationToken cancellationToken)
                  at MailClient.Protocols.Gdata.GdataContactsAccount.Synchronize(SynchronizationPriority priority)
                  at MailClient.Accounts.BindingAccountBase.Receive()
                  at MailClient.Accounts.AccountManager.ReceiveAllInternal(Boolean checkIncludeInGlobalOperations, Boolean fromBackgroundSync)
                  at MailClient.Accounts.AccountManager.SendAndReceiveAll(Boolean checkIncludeInGlobalOperations)
                  at MailClient.Accounts.DesktopAccountManager.timerSendAndReceive_Tick(Object sender, EventArgs e)
                  at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
                  at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
                  at Windows.Win32.PInvoke.DispatchMessage(MSG* lpMsg)
                  at System.Windows.Forms.Application.ComponentManager.Microsoft.Office.IMsoComponentManager.FPushMessageLoop(UIntPtr dwComponentID, msoloop uReason, Void* pvLoopData)
                  at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(msoloop reason, ApplicationContext context)
                  at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(msoloop reason, ApplicationContext context)
                  at System.Windows.Forms.Application.Run(ApplicationContext context)
                  at MailClient.Program.<>c.<Main>b__201_3()
                  at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
                  at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
                  at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
                  at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
                  at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
                  at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
                  at System.Windows.Forms.Control.WndProc(Message& m)
                  at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
                  at System.Windows.Forms.ContainerControl.WndProc(Message& m)
                  at System.Windows.Forms.Form.WndProc(Message& m)
                  at MailClient.Common.UI.Forms.BaseForm.WndProc(Message& m)
                  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
                  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
                  at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
                  at Xilium.CefGlue.Interop.libcef.run_message_loop()
                  at MailClient.Program.Main(String[] args)
             GUIStatus_Exception_Reported = True
3:58:16 PM [redacted] Google Calendar Synchronizing folder '/Calendar'
3:58:17 PM [redacted] IMAP Synchronizing folder list
3:58:17 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
3:58:18 PM [redacted] IMAP Synchronizing folder '/[Gmail]/Junk Email'
3:58:18 PM [redacted] IMAP Synchronizing folder '/[Gmail]/Trash'
4:08:16 PM [redacted] Google Settings Synchronizing tags
4:08:16 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:08:17 PM [redacted] IMAP Synchronizing folder list
4:08:17 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:08:18 PM [redacted] IMAP Synchronizing folder '/[Gmail]/Junk Email'
4:08:18 PM [redacted] IMAP Synchronizing folder '/[Gmail]/Trash'
4:08:24 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:08:26 PM [redacted] IMAP Downloading messages: For folder /[Gmail]/All Mail
4:11:03 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:14:03 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:14:04 PM [redacted] IMAP Deleting item(s) from folder '/[Gmail]/All Mail'
4:14:08 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:14:18 PM [redacted] SMTP Connecting: To [redacted]
4:14:18 PM [redacted] SMTP Connected: To [redacted]
4:14:18 PM [redacted] SMTP Sending messages
4:14:19 PM [redacted] SMTP Disconnected: From [redacted]
4:14:19 PM [redacted] SMTP Disconnected: Done
4:14:26 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:14:27 PM [redacted] IMAP Downloading messages: For folder /[Gmail]/All Mail
4:14:53 PM [redacted] IMAP Deleting item(s) from folder '/[Gmail]/All Mail'
4:14:54 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:15:03 PM [redacted] SMTP Connecting: To [redacted]
4:15:03 PM [redacted] SMTP Connected: To [redacted]
4:15:03 PM [redacted] SMTP Sending messages
4:15:04 PM [redacted] SMTP Disconnected: From [redacted]
4:15:04 PM [redacted] SMTP Disconnected: Done
4:15:08 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:15:09 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:15:09 PM [redacted] IMAP Downloading messages: For folder /[Gmail]/All Mail
4:15:10 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:18:16 PM [redacted] Google Settings Synchronizing tags
4:18:16 PM [redacted] Google Calendar Synchronizing folder list
4:18:16 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:18:16 PM [redacted] Google Calendar Synchronizing folder '/Calendar'
4:18:18 PM [redacted] IMAP Downloading messages: For folder /[Gmail]/All Mail
4:18:18 PM [redacted] IMAP Synchronizing folder list
4:18:18 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:18:19 PM [redacted] IMAP Synchronizing folder '/[Gmail]/Junk Email'
4:18:19 PM [redacted] IMAP Synchronizing folder '/[Gmail]/Trash'
4:20:24 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:20:53 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:21:03 PM [redacted] SMTP Connecting: To [redacted]
4:21:04 PM [redacted] SMTP Connected: To [redacted]
4:21:04 PM [redacted] SMTP Sending messages
4:21:05 PM [redacted] SMTP Disconnected: From [redacted]
4:21:05 PM [redacted] SMTP Disconnected: Done
4:21:17 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:21:17 PM [redacted] IMAP Downloading messages: For folder /[Gmail]/All Mail
4:22:01 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:22:36 PM [redacted] IMAP Deleting item(s) from folder '/[Gmail]/All Mail'
4:22:38 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:22:46 PM [redacted] SMTP Connecting: To [redacted]
4:22:46 PM [redacted] SMTP Connected: To [redacted]
4:22:46 PM [redacted] SMTP Sending messages
4:22:48 PM [redacted] SMTP Disconnected: From [redacted]
4:22:48 PM [redacted] SMTP Disconnected: Done
4:22:48 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:22:50 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:23:02 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:24:07 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:28:16 PM [redacted] Google Settings Synchronizing tags
4:28:16 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:28:17 PM [redacted] IMAP Synchronizing folder list
4:28:17 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:28:18 PM [redacted] IMAP Synchronizing folder '/[Gmail]/Junk Email'
4:28:18 PM [redacted] IMAP Synchronizing folder '/[Gmail]/Trash'
4:31:24 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:31:34 PM [redacted] SMTP Connecting: To [redacted]
4:31:34 PM [redacted] SMTP Connected: To [redacted]
4:31:34 PM [redacted] SMTP Sending messages
4:31:35 PM [redacted] SMTP Disconnected: From [redacted]
4:31:35 PM [redacted] SMTP Disconnected: Done
4:31:37 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:31:38 PM [redacted] IMAP Downloading messages: For folder /[Gmail]/All Mail
4:31:58 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:34:42 PM [redacted] SMTP Connecting: To [redacted]
4:34:42 PM [redacted] SMTP Connected: To [redacted]
4:34:42 PM [redacted] SMTP Sending messages
4:34:48 PM [redacted] SMTP Disconnected: From [redacted]
4:34:48 PM [redacted] SMTP Disconnected: Done
4:34:48 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:34:48 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:34:48 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:34:49 PM [redacted] IMAP Downloading messages: For folder /[Gmail]/All Mail
4:38:16 PM [redacted] Google Calendar Synchronizing folder list
4:38:16 PM [redacted] Google Settings Synchronizing tags
4:38:16 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:38:16 PM [redacted] Google Calendar Synchronizing folder '/Calendar'
4:38:34 PM [redacted] [IMAP] Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 11: 'database disk image is malformed'.
              at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
              at Microsoft.Data.Sqlite.SqliteDataReader.Read()
              at MailClient.Storage.Data.DbRepository`1.IterateRecordIds(Action`1 callback, QueryCondition condition)
              at MailClient.Protocols.Common.ItemSynchronizeContext`2.RebuildCache[TUid,TVid]()
              at MailClient.Protocols.Common.ItemSynchronizeContext`2.Synchronize[T,TUid,TVid](SynchronizationType synchronizationType, IEnumerable`1 items, Func`2 getUniqueId, Func`2 getVersionId, Func`3 hasChanged, Func`2 isDeleted, Func`2 convertItems, Action`2 updateItem)
              at MailClient.Protocols.Imap.SyncOperations.BaseSyncOperation.WriteSyncItemsToDb(CancellationToken& cancellationToken)
              at MailClient.Protocols.Imap.SyncOperations.NormalSyncOperation.LimitedSyncDeleteOld(Dictionary`2 infoOldFlags, CancellationToken& cancellationToken)
              at MailClient.Protocols.Imap.SyncOperations.NormalSyncOperation.SynchronizeFolder(Dictionary`2 infoOldFlags, UInt32 serverMessageCount, UInt32 newMessagesTotal, UInt32 uidNext, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.SyncOperations.NormalSyncOperation.ExecuteInternalAsync(CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.SyncOperations.BaseSyncOperation.ExecuteAsync(CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapMailSynchronizer.SynchronizeMessagesAsync(IItemSynchronizeContext`1 synchronizeContext, Folder folder, Boolean fast, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapMailSynchronizer.SynchronizeMessagesAsync(IItemSynchronizeContext`1 synchronizeContext, Folder folder, Boolean fast, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapMailSynchronizer.Synchronize(IItemSynchronizeContext`1 synchronizeContext, Folder folder, CancellationToken cancellationToken)
              at MailClient.Protocols.Common.ItemSynchronizer`2.<>c__DisplayClass40_2.<EnqueueSynchronize>b__6(WorkerStatus status, CancellationToken ct)
              at MailClient.Protocols.Imap.ImapActionCommand.ExecuteInternalSync(WorkerStatus status)
              at MailClient.Protocols.Imap.ImapActionCommand.Execute(WorkerStatus status)
              at MailClient.Commands.Command.Process(WorkerStatus status)
           --- End of stack trace from previous location ---
              at MailClient.Protocols.Imap.ImapAccount.SynchronizeIntAsync(Boolean forced)
              at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass22_0.<<SynchronizeAsync>b__0>d.MoveNext()
             IMAP_SERVER_TYPE = Gmail
             RunInPlace = False
             EnqueuedStackTrace =
                  at MailClient.Protocols.Common.ItemSynchronizer`2.<>c__DisplayClass40_0.<EnqueueSynchronize>b__0()
                  at MailClient.Protocols.Common.AccountBase.RunIfOnline(Action actionIfOnline, Action actionIfOffline)
                  at MailClient.Protocols.Common.ItemSynchronizer`2.Synchronize(Folder folder, SynchronizationPriority priority, Action`1 completed)
                  at MailClient.Storage.Application.ItemCollection`2.Synchronize(SynchronizationPriority priority, Action`1 completed, Boolean fromUI)
                  at MailClient.Storage.Application.Folder.SynchronizeAsync(Boolean forced, Boolean fromUI)
                  at MailClient.Protocols.Imap.ImapAccount.SynchronizeIntAsync(Boolean forced)
                  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
                  at MailClient.Protocols.Imap.ImapAccount.SynchronizeIntAsync(Boolean forced)
                  at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass22_0.<<SynchronizeAsync>b__0>d.MoveNext()
                  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
                  at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass22_0.<SynchronizeAsync>b__0()
                  at System.Threading.Tasks.Task`1.InnerInvoke()
                  at System.Threading.Tasks.Task.<>c.<.cctor>b__281_0(Object obj)
                  at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
                  at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
                  at System.Threading.Tasks.Task.ExecuteFromThreadPool(Thread threadPoolThread)
                  at System.Threading.ThreadPoolWorkQueue.Dispatch()
                  at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
                  at System.Threading.Thread.StartCallback()
             GUIStatus_Exception_Reported = True
4:40:30 PM [redacted] [Google Contacts] MailClient.Accounts.AuthenticationAbortedException: Authentication aborted
              at MailClient.Protocols.Gdata.GenericGapiCommand.Execute(WorkerStatus status)
              at MailClient.Commands.Command.Process(WorkerStatus status)
             RunInPlace = False
             EnqueuedStackTrace =
                  at MailClient.Protocols.Common.FolderSynchronizer.EnqueueGetFolderList(Folder homeFolder, Action`1 completed, Boolean prioritize)
                  at MailClient.Protocols.Common.FolderSynchronizer.GoOnlinePre()
                  at MailClient.Protocols.Gdata.GdataContactsAccount.GoOnlineInt()
                  at MailClient.Protocols.Common.AccountBase.ChangeOnlineState(Boolean online, OfflineReason offlineReason)
                  at MailClient.Protocols.Common.AccountBase.GoOnline()
                  at MailClient.Accounts.AccountList.<>c__DisplayClass24_0.<SetOnlineState>b__1(IAccount account)
                  at System.Threading.Tasks.Parallel.<>c__DisplayClass43_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
                  at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
                  at System.Threading.Tasks.TaskReplicator.Replica.Execute()
                  at System.Threading.Tasks.TaskReplicator.Replica.<>c.<.ctor>b__4_0(Object s)
                  at System.Threading.Tasks.Task.InnerInvoke()
                  at System.Threading.Tasks.Task.<>c.<.cctor>b__281_0(Object obj)
                  at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
                  at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
                  at System.Threading.Tasks.Task.ExecuteFromThreadPool(Thread threadPoolThread)
                  at System.Threading.ThreadPoolWorkQueue.Dispatch()
                  at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
                  at System.Threading.Thread.StartCallback()
             GUIStatus_Exception_Reported = True
4:40:30 PM [redacted] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
4:40:30 PM [redacted] Google Settings Synchronizing tags
4:40:31 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:40:52 PM [redacted] IMAP Synchronizing folder list
4:40:52 PM [redacted] IMAP Synchronizing folder '/[Gmail]/All Mail'
4:40:52 PM [redacted] IMAP Synchronizing folder '/[Gmail]/Junk Email'
4:40:53 PM [redacted] IMAP Synchronizing folder '/[Gmail]/Trash'

For whichever email account this is, go to Menu > Accounts and remove it, then add it back again.

I should have specified that there is only one email account added to eM Client. I will try this later today and see if it helps things moving forward. Thanks.

I removed and added the account back in but just as the emails were downloading again, it kept having the same problem. I’ve repeatedly refreshed and clicked the warning symbol next to the email address in the inbox and it will sometimes work, sometimes not. I restarted eM Client a few times and in one of the restarts, it managed to run the startup troubleshooter and resolve about 2,200 issues however, I had just removed and added the account a few seconds before so, the emails were recently downloaded. The only options I changed after adding the account is to download emails and attachments up to 1 year and never show important tags. I’m not sure what else to do here. It just seems to painlessly sync one minute and randomly refuse to sync the next.

eM Client 10.0.2622-beta+4be24cf3c4 (Windows)
2:31:46 PM Online state: changed to online due to NetworkAvailability 
2:31:46 PM [redacted address 1] IMAP Synchronizing folder '/[Gmail]/All Mail'
2:31:46 PM [redacted address 1] [Google Settings] MailClient.Accounts.AuthenticationAbortedException: Authentication aborted
              at MailClient.Protocols.Gdata.GenericGapiCommand.Execute(WorkerStatus status)
              at MailClient.Commands.Command.Process(WorkerStatus status)
             RunInPlace = False
             EnqueuedStackTrace =
                  at MailClient.Protocols.Common.RequestIssuer.RunRequest[T](Func`3 action, CancellationToken cancellationToken, OperationPriority priority, String errorFormat, Object[] errorParams)
                  at MailClient.Protocols.Gdata.SettingsSynchronizer.GetAliasesAsync(CancellationToken cancellationToken1)
                  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
                  at MailClient.Protocols.Gdata.SettingsSynchronizer.GetAliasesAsync(CancellationToken cancellationToken1)
                  at MailClient.Protocols.Gdata.GdataSettingsAccount.<>c__DisplayClass37_0.<<LoadAliases>b__0>d.MoveNext()
                  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
                  at MailClient.Protocols.Gdata.GdataSettingsAccount.<>c__DisplayClass37_0.<LoadAliases>b__0()
                  at System.Threading.Tasks.Task`1.InnerInvoke()
                  at System.Threading.Tasks.Task.<>c.<.cctor>b__281_0(Object obj)
                  at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
                  at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
                  at System.Threading.Tasks.Task.ExecuteEntryUnsafe(Thread threadPoolThread)
                  at System.Threading.Tasks.Task.ExecuteFromThreadPool(Thread threadPoolThread)
                  at System.Threading.ThreadPoolWorkQueue.Dispatch()
                  at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
                  at System.Threading.Thread.StartCallback()
             GUIStatus_Exception_Reported = True
2:31:46 PM [redacted address 1] Google Contacts Synchronizing folder list
2:31:46 PM [redacted address 1] Google Calendar Synchronizing folder list
2:31:46 PM [redacted address 1] Google Contacts Synchronizing folder '/All Contacts'
2:31:47 PM [redacted address 1] Google Contacts Synchronizing folder '/Directory'
2:31:47 PM [redacted address 1] Google Calendar Synchronizing folder '/Calendar'
2:31:47 PM [redacted address 1] Google Contacts Synchronizing folder '/Other Contacts'
2:31:47 PM [redacted address 1] Google Contacts Synchronizing folder list
2:32:32 PM [redacted address 1] Google Contacts Synchronizing folder '/Other Contacts'
2:33:57 PM [redacted address 1] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
2:34:07 PM [redacted address 1] IMAP Deleting item(s) from folder '/[Gmail]/All Mail'
2:34:09 PM [redacted address 1] IMAP Synchronizing folder '/[Gmail]/All Mail'
2:34:15 PM [redacted address 1] SMTP Connecting: To [redacted address 1]
2:34:16 PM [redacted address 1] SMTP Connected: To [redacted address 1]
2:34:16 PM [redacted address 1] SMTP Sending messages
2:34:25 PM [redacted address 1] SMTP Disconnected: From [redacted address 1]
2:34:25 PM [redacted address 1] SMTP Disconnected: Done
2:34:37 PM [redacted address 1] IMAP Uploading item(s) to folder '/[Gmail]/All Mail'
2:34:37 PM [redacted address 1] IMAP Synchronizing folder '/[Gmail]/All Mail'
2:38:47 PM [redacted address 1] Google Contacts Synchronizing folder '/Other Contacts'
2:41:46 PM [redacted address 1] Google Contacts Synchronizing folder '/All Contacts'
2:41:46 PM [redacted address 1] Google Contacts Synchronizing folder '/Directory'
2:41:46 PM [redacted address 1] Google Contacts Synchronizing folder '/Other Contacts'
2:41:47 PM [redacted address 1] Google Contacts Synchronizing folder list
2:43:13 PM [redacted address 1] [IMAP] Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 11: 'database disk image is malformed'.
              at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
              at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
              at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
              at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
              at MailClient.Storage.Data.DbRepository`1.FindEnumerable.GetEnumerator()+MoveNext()
              at MailClient.Storage.Application.ItemCollection`2.GetEnumerator()+MoveNext()
              at System.Linq.Enumerable.<Any>g__WithEnumerator|36_0[TSource](IEnumerable`1 source)
              at MailClient.Reminders.ReminderManager.LoadMailReminders(IAccountWithFolder account)
              at MailClient.Reminders.ReminderManager.ReplyNotificationConversationUpdated(Object sender, ValueTuple`2 e)
              at MailClient.Storage.Mail.Data.DbMailRepository.DbConversationRepository.CreateOrUpdateConversations(Object sender, IReadOnlyList`1 items)
              at MailClient.Storage.Mail.Data.DbMailRepository.DbConversationRepository.MailRepository_AddedItems(Object sender, ItemEventArgs`1 e)
              at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
              at MailClient.Storage.Data.DbRepository`1.Add[ST](Object senderContext, IEnumerable`1 items)
              at MailClient.Storage.Application.ItemCollection`2.AddRangeInt(IEnumerable`1 items, Action`1 uploadCompleted, CancellationToken cancellationToken)
              at MailClient.Storage.Application.ItemCollection`2.AddRange(IEnumerable`1 items)
              at MailClient.Protocols.Common.ItemSynchronizeContext`2.StoreItems[TUid,TVid](SynchronizationType synchronizationType, IEnumerable`1 newItems, Dictionary`2 uniqueIdToVersionId, Dictionary`2 uniqueIdToOid)
              at MailClient.Protocols.Common.MailItemSynchronizeContext.StoreItems[TUid,TVid](SynchronizationType synchronizationType, IEnumerable`1 newItems, Dictionary`2 uniqueIdToVersionId, Dictionary`2 uniqueIdToOid)
              at MailClient.Protocols.Common.ItemSynchronizeContext`2.<>c__DisplayClass20_0`3.<Synchronize>g__FlushItems|1(Int32 threshold)
              at MailClient.Protocols.Common.ItemSynchronizeContext`2.Synchronize[T,TUid,TVid](SynchronizationType synchronizationType, IEnumerable`1 items, Func`2 getUniqueId, Func`2 getVersionId, Func`3 hasChanged, Func`2 isDeleted, Func`2 convertItems, Action`2 updateItem)
              at MailClient.Protocols.Imap.SyncOperations.BaseSyncOperation.WriteSyncItemsToDb(CancellationToken& cancellationToken)
              at MailClient.Protocols.Imap.SyncOperations.BaseSyncOperation.ProcessFetchNotifications(CancellationToken& cancellationToken, Boolean fromInterruption)
              at MailClient.Protocols.Imap.SyncOperations.BaseSyncOperation.<FetchPreviewsAsync>g__AsyncPath|74_0(CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.SyncOperations.BaseSyncOperation.<ProcessPriorityUpdatesAsync>g__ProcessPriorityUpdatesSlow3Async|60_2(CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.SyncOperations.BaseSyncOperation.FetchNewMessagesAsync(SequenceSet uidSet, UInt32 messageCountEstimate, Boolean narrowed, Boolean chunk, Boolean allowHybridMode, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.SyncOperations.NormalSyncOperation.LimitedSyncDownload(UInt32 serverMessageCount, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.SyncOperations.NormalSyncOperation.SynchronizeFolder(Dictionary`2 infoOldFlags, UInt32 serverMessageCount, UInt32 newMessagesTotal, UInt32 uidNext, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.SyncOperations.NormalSyncOperation.ExecuteInternalAsync(CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.SyncOperations.BaseSyncOperation.ExecuteAsync(CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapMailSynchronizer.SynchronizeMessagesAsync(IItemSynchronizeContext`1 synchronizeContext, Folder folder, Boolean fast, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapMailSynchronizer.SynchronizeMessagesAsync(IItemSynchronizeContext`1 synchronizeContext, Folder folder, Boolean fast, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapMailSynchronizer.Synchronize(IItemSynchronizeContext`1 synchronizeContext, Folder folder, CancellationToken cancellationToken)
              at MailClient.Protocols.Common.ItemSynchronizer`2.<>c__DisplayClass40_2.<EnqueueSynchronize>b__6(WorkerStatus status, CancellationToken ct)
              at MailClient.Protocols.Imap.ImapActionCommand.<>c__DisplayClass11_0.<.ctor>b__0(WorkerStatus ws, CancellationToken ct)
              at MailClient.Protocols.Imap.ImapActionCommand.ExecuteInternalSync(WorkerStatus status)
              at MailClient.Protocols.Imap.ImapActionCommand.Execute(WorkerStatus status)
              at MailClient.Commands.Command.Process(WorkerStatus status)
           --- End of stack trace from previous location ---
              at MailClient.Protocols.Imap.ImapAccount.SynchronizeIntAsync(Boolean forced)
              at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass22_0.<<SynchronizeAsync>b__0>d.MoveNext()
             IMAP_SERVER_TYPE = Gmail
             RunInPlace = False
             EnqueuedStackTrace =
                  at MailClient.Protocols.Common.ItemSynchronizer`2.<>c__DisplayClass40_1.<EnqueueSynchronize>g__RunSynchronize|2()
                  at MailClient.Protocols.Common.ItemSynchronizer`2.<>c__DisplayClass40_0.<EnqueueSynchronize>b__0()
                  at MailClient.Protocols.Common.AccountBase.RunIfOnline(Action actionIfOnline, Action actionIfOffline)
                  at MailClient.Protocols.Common.ItemSynchronizer`2.EnqueueSynchronize(Folder folder, Boolean fast, CancellationToken cancellationToken, Action`1 completed)
                  at MailClient.Protocols.Common.ItemSynchronizer`2.Synchronize(Folder folder, SynchronizationPriority priority, Action`1 completed)
                  at MailClient.Storage.Application.ItemCollection`2.Synchronize(SynchronizationPriority priority, Action`1 completed, Boolean fromUI)
                  at MailClient.Storage.Application.ItemCollection`2.SynchronizeAsync(Boolean forced, Boolean fromUI)
                  at MailClient.Storage.Application.Folder.SynchronizeAsync(Boolean forced, Boolean fromUI)
                  at MailClient.Protocols.Imap.ImapAccount.SynchronizeIntAsync(Boolean forced)
                  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
                  at MailClient.Protocols.Imap.ImapAccount.SynchronizeIntAsync(Boolean forced)
                  at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass22_0.<<SynchronizeAsync>b__0>d.MoveNext()
                  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
                  at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass22_0.<SynchronizeAsync>b__0()
                  at System.Threading.Tasks.Task`1.InnerInvoke()
                  at System.Threading.Tasks.Task.<>c.<.cctor>b__281_0(Object obj)
                  at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
                  at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
                  at System.Threading.Tasks.Task.ExecuteEntryUnsafe(Thread threadPoolThread)
                  at System.Threading.Tasks.Task.ExecuteFromThreadPool(Thread threadPoolThread)
                  at System.Threading.ThreadPoolWorkQueue.Dispatch()
                  at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
                  at System.Threading.Thread.StartCallback()
             GUIStatus_Exception_Reported = True

Small update, limiting eM Client’s core usage to just the E cores of my Intel CPU seems to have alleviated things for now. It’s possible that my errors have been related to system stability or that eM Client doesn’t like using too many cores.

limiting eM Client’s core usage to just the E cores of my Intel CPU seems to have alleviated things for now.

That’s interesting.

There was a forum user recently where they had eg: CPU overclocking that ended up causing database & instability issues. So if you have any overclocking try setting that back to default.

It seems like that might be the case. I’ve been having rare cases of instability after CPU overclocking and after limiting eM Client to just the E cores, I haven’t had any issues. There’s a chance that since eM Client isn’t activating many cores at once, the CPU boosts to a higher clock than normal, causing instability. Hopefully they can manage to improve eM Client’s error correction because I’ve tried Mailbird, Outlook and Thunderbird, all with the same CPU settings and none of them broke the way eM Client has.

1 Like