Mailspring icon indicating copy to clipboard operation
Mailspring copied to clipboard

Encountered an error while syncing

Open marcvk opened this issue 7 years ago • 5 comments

Are there any related issues?

I don't think so, the issues with similar titles all have different descriptions or stack traces.

What operating system are you using?

Arch Linux, 4.19.2-arch1-1-ARCH

What version of Mailspring are you using?

1.5.3-420ce003

Bug? Yes

Is this an email sync or connection issue?

email sync

Is the issue related to a specific email provider (Gmail, Exchange, etc.)?

I can login, sync my inbox (and others folders), but after a while, I'm guessing it takes a while before it gets to the problematic folder/message it issues the error message.

The problem is with gmail. I've tried clearing the cache, but after a while I get the same error.

"Encountered an error while syncing [email protected]"

Is the issue reproducible with a particular attachment, message, signature, etc?

It always seems to crash on the All Mail folder, it's 100% reproducible.

See stacktrace below:

28321 [2018-12-11 16:37:49.880] [main] [info] Identity created at 1544290798 - using ID Schema 1 28321 [2018-12-11 16:37:49.881] [main] [info] ------------- Starting Sync ([email protected]) --------------- 28321 [2018-12-11 16:37:49.885] [background] [info] Fetching XOAuth2 access token from Gmail for 78ca6026 28321 [2018-12-11 16:37:49.885] [metadata] [info] Metadata delta stream starting... 28321 [2018-12-11 16:37:50.191] [background] [info] Marking all folders as busy 28321 [2018-12-11 16:37:50.193] [background] [info] Syncing folder list... 28321 [2018-12-11 16:37:51.458] [background] [info] Syncing folder list... 28321 [2018-12-11 16:37:52.601] [foreground] [info] syncFolderChangesViaCondstore - [Gmail]/All Mail: modseq 18264986 to 18264986, uidnext 430626 to 430626 28321 [2018-12-11 16:37:54.222] [background] [critical] *** Stack trace (line numbers are approximate): *** ??:? MailUtils::idForFile(Message*, mailcore::Attachment*) *** ??:? File::File(Message*, mailcore::Attachment*) *** ??:? MailProcessor::retrievedMessageBody(Message*, mailcore::MessageParser*) *** ??:? SyncWorker::syncMessageBody(Message*) *** ??:? SyncWorker::syncMessageBodies(Folder&, mailcore::IMAPFolderStatus&) *** ??:? SyncWorker::syncNow() *** ??:? runBackgroundSyncWorker() *** (unknown) clone


marcvk avatar Dec 11 '18 16:12 marcvk

Hey @marcvk — thanks for reporting this (and for the logs!) I love when we're able to track these sort of things down. Looking at that method, it looks like you must have an email in your mailbox which has an attachment that has no MIME part Content-ID or Unique-ID and Mailspring is using them to create a stable way to refer to the attachment. I think we can work around this - will get this fixed in the next release!

bengotow avatar Dec 18 '18 05:12 bengotow

Hi @bengotow thank for the quick response and fix! And happy to help get this sorted. Do you want me to test this before you release it?

marcvk avatar Dec 18 '18 08:12 marcvk

Hey! The fix for this shipped in v1.5.4 this afternoon. Mailspring should auto-update in the next few hours and you can also download the update directly from https://getmailspring.com/download. Happy new years!

bengotow avatar Dec 30 '18 00:12 bengotow

Hi Ben,

Thanks, works beautifully. Best regards and happy new year! Marc.

Sent from Mailspring (https://link.getmailspring.com/link/[email protected]/0?redirect=https%3A%2F%2Fgetmailspring.com%2F&recipient=cmVwbHkrMDBmZGE0NWNkNzM0N2VmNGQ5MWVhNzkwODhhOTAzMTliMWM2NzYxY2I3NGFhYzI0OTJjZjAwMDAwMDAxMTgzZmQ5Mjk5MmExNjljZTE3M2M3ZDRhQHJlcGx5LmdpdGh1Yi5jb20%3D), the best free email app for work On Dec 30 2018, at 1:54 am, Ben Gotow [email protected] wrote:

Hey! The fix for this shipped in v1.5.4 this afternoon. Mailspring should auto-update in the next few hours and you can also download the update directly from https://getmailspring.com/download (https://link.getmailspring.com/link/[email protected]/1?redirect=https%3A%2F%2Fgetmailspring.com%2Fdownload&recipient=cmVwbHkrMDBmZGE0NWNkNzM0N2VmNGQ5MWVhNzkwODhhOTAzMTliMWM2NzYxY2I3NGFhYzI0OTJjZjAwMDAwMDAxMTgzZmQ5Mjk5MmExNjljZTE3M2M3ZDRhQHJlcGx5LmdpdGh1Yi5jb20%3D). Happy new years!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://link.getmailspring.com/link/[email protected]/2?redirect=https%3A%2F%2Fgithub.com%2FFoundry376%2FMailspring%2Fissues%2F1266%23issuecomment-450531629&recipient=cmVwbHkrMDBmZGE0NWNkNzM0N2VmNGQ5MWVhNzkwODhhOTAzMTliMWM2NzYxY2I3NGFhYzI0OTJjZjAwMDAwMDAxMTgzZmQ5Mjk5MmExNjljZTE3M2M3ZDRhQHJlcGx5LmdpdGh1Yi5jb20%3D), or mute the thread (https://link.getmailspring.com/link/[email protected]/3?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAP2kXAMaDEZh7tSaVMciskc5WT0pHYhGks5u-A6pgaJpZM4ZNvSn&recipient=cmVwbHkrMDBmZGE0NWNkNzM0N2VmNGQ5MWVhNzkwODhhOTAzMTliMWM2NzYxY2I3NGFhYzI0OTJjZjAwMDAwMDAxMTgzZmQ5Mjk5MmExNjljZTE3M2M3ZDRhQHJlcGx5LmdpdGh1Yi5jb20%3D).

marcvk avatar Dec 30 '18 08:12 marcvk