Hey folks, thanks for all the reports - I really appreciate all of the community help identifying the root cause of this issue. The fix that az42 suggested and built into the mailspring-patcher has officially been merged into the app and is part of the latest release (1.17.1)!
If you upgrade to the new version, you should no longer run into this “eternal mailsync” bug. I do think it’s possible that there are multiple bugs being reported here, but I’m hopeful they shared the same root cause in libetpan.
Thanks for your patience and I appreciate all the contributors with detailed bug reports and research that helped get this across the line.
Sorry to report that, but I seem to have this very problem right now with 1.17.2, installed on Ubuntu 22.04 via snap. Mailspring won’t even show the window, just prints a few lines to console and hangs. My email provider is Google.
Console output:
# mailspring
Gtk-Message: 15:48:02.098: Not loading module “atk-bridge”: The functionality is provided by GTK natively. Please try to not load it.
Running database migrations
App load time: 286ms
{“error”:null}
(node:253901) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use mailspring --trace-deprecation ... to show where the warning was created)
(node:254089) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use exe --trace-deprecation ... to show where the warning was created)
(node:254090) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use exe --trace-deprecation ... to show where the warning was created)
I see quite a few related processes, none of which seems to utilize CPU in a significant way:
I have the same issue on Fedora 42 installed via rpm. Starting mailspring prints some stuff out to console, then hangs forever (or at least until I gave up and started killing things).
~ $ mailspring --version
1.17.2-a312df89
~ $ mailspring
Running database migrations
App load time: 325ms
/usr/share/mailspring/resources/app.asar.unpacked/mailsync.bin: /lib64/libcurl.so.4: no version information available (required by /usr/share/mailspring/resources/app.asar.unpacked/mailsync.bin)
{"error":null}
Manual update check (updates.getmailspring.com/check/linux/x64/1.17.2-a312df89/anonymous/stable) returned 204
(node:8845) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `mailspring --trace-deprecation ...` to show where the warning was created)