Error refreshing with ProtonMail Bridge

The EM Client has issues synchronizing with the ProtonMail Bridge see below.

Is there a fix coming for this?

7:28:01 PM [email protected] [IMAP] System.InvalidOperationException: Sequence contains no elements
at System.Linq.ThrowHelper.ThrowNoElementsException()
at MailClient.Storage.Mail.Data.DbMailRepository.DbConversationRepository.MailRepository_RemovingItems(Object sender, ItemEventArgs1 e, Func2 getConversationId, Boolean clearConversationId)
at MailClient.Storage.Mail.Data.DbMailRepository.DbConversationRepository.MailRepository_RemovingItems(Object sender, ItemEventArgs1 e) at System.EventHandler1.Invoke(Object sender, TEventArgs e)
at MailClient.Storage.Data.DbRepository1.RemoveByItems[ST](Object senderContext, IEnumerable1 items)
at MailClient.Storage.Data.DbRepository1.Remove[ST](Object senderContext, IEnumerable1 items)
at MailClient.Protocols.AccountUtils.RemoveFolderData(IItemRepositories itemRepositories, QueryCondition folderIdCondition)
at MailClient.Protocols.AccountUtils.RemoveFolderFromDb(IItemRepositories itemRepositories, IFolder folder, Func2 pendingActions, Action1 markForUpload, Action1 abortFolderCommands, RemoveFolderFlags flags) at MailClient.Protocols.Common.FolderSynchronizer.RemoveFoldersFromDb(RemoveFolderFlags flags, Folder[] folders) at MailClient.Protocols.Common.FolderSynchronizer.<>c__DisplayClass16_0.<EnqueueGetFolderList>b__0(WorkerStatus status, CancellationToken cancellationToken) 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.Storage.Synchronization.FolderSynchronizerExtensions.SynchronizeSubfoldersAsync(IFolderSynchronizer synchronizer, Folder folder, SynchronizationPriority priority, CancellationToken cancellationToken) at MailClient.Protocols.Imap.ImapAccount.SynchronizeIntAsync(Boolean forced) at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass7_0.<<SynchronizeAsync>b__0>d.MoveNext() IMAP_SERVER_TYPE = Other EnqueuedStackTrace = at MailClient.Protocols.Common.FolderSynchronizer.EnqueueGetFolderList(Folder homeFolder, Action1 completed, Boolean prioritize)
at MailClient.Protocols.Common.FolderSynchronizer.GoOnlinePre()
at MailClient.Protocols.Imap.ImapFolderSynchronizer.GoOnlinePre()
at MailClient.Protocols.Imap.ImapAccount.GoOnlineInt()
at MailClient.Protocols.Common.AccountBase.ChangeOnlineState(Boolean online, OfflineReason offlineReason)
at MailClient.Protocols.Common.AccountBase.GoOnline()
at MailClient.Accounts.AccountList.<>c__DisplayClass24_0.b__1(IAccount account)
at System.Threading.Tasks.Parallel.<>c__DisplayClass44_02.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica1.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__272_0(Object obj)
at System.Threading.ExecutionContext.RunInternal(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.ThreadPoolTaskScheduler.TryExecuteTaskInline(Task task, Boolean taskWasPreviouslyQueued)
at System.Threading.Tasks.TaskScheduler.TryRunInline(Task task, Boolean taskWasPreviouslyQueued)
at System.Threading.Tasks.Task.InternalRunSynchronously(TaskScheduler scheduler, Boolean waitForCompletion)
at System.Threading.Tasks.Task.RunSynchronously(TaskScheduler scheduler)
at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction1 action, ParallelOptions options, Boolean stopOnFirstFailure) at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body) at MailClient.Accounts.AccountList.SetOnlineState(Boolean online, OfflineReason offlineReason, IComparer1 comparer)
at MailClient.Accounts.BindingAccountBase.GoOnline()
at MailClient.Accounts.AccountList.<>c__DisplayClass24_0.b__1(IAccount account)
at System.Threading.Tasks.Parallel.<>c__DisplayClass44_02.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica1.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__272_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.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
GUIStatus_Exception_Reported = True

This is a broken database.

There are some things you can try.

  1. Please close eM Client and open a Windows Command Prompt. Not a powershell, but a command prompt. Paste in this command including the leading "

    "C:\Program Files (x86)\eM Client\MailClient.exe" /dbrepair

    When that is done, restart eM Client.

  2. If you still get the error, remove the Bridge account from eM Client and add it back again. That will create a new database for the account.

First off thank you; deleting and recreating the account fixed the issue.

But more importantly did the bug that causes the database corruption get found and fixed?

Thanks … Al