Mailspring: Problems running the snap package on Fedora 27

Created on 3 Dec 2017  Â·  25Comments  Â·  Source: Foundry376/Mailspring

What operating system are you using?

Fedora 27

What version of Mailspring are you using?

Latest via Snap

Bug?

Do you have any third-party plugins installed? If so, which ones?

None

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

No

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

when running the snap package on fedora 27 i get the following responce:

snap run mailspring 
Gtk-Message: Failed to load module "pk-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Streaming log data to /run/user/1000/snap.mailspring/Mailspring-4375.log
App load time: 186ms
[4375:1203/210926.033957:FATAL:platform_font_linux.cc(63)] Check failed: typeface. Could not find any font: Cantarell, sans
#0 0x000001f8d157 <unknown>
#1 0x000001fa130b <unknown>
#2 0x000001beee0f <unknown>
#3 0x000001beea4f <unknown>
#4 0x000001bef776 <unknown>
#5 0x000001bd7ad9 <unknown>
#6 0x000000cdd5b0 <unknown>
#7 0x000000f79ea3 <unknown>
#8 0x000003ee819d atom::api::WebContents::InitWithSessionAndOptions()
#9 0x000003ee89af atom::api::WebContents::WebContents()
#10 0x000003ef4196 atom::api::WebContents::Create()
#11 0x000003f061fa atom::api::Window::Window()
#12 0x000003f07dfc atom::api::Window::New()
#13 0x000003ea7ef0 mate::internal::InvokeNew<>()
#14 0x000003ea8080 mate::internal::Dispatcher<>::DispatchToCallback()
#15 0x7f5bf750adf9 <unknown>
#16 0x7f5bf797351c <unknown>
#17 0x7f5bf7972f56 <unknown>
#18 0x29df70e0437d <unknown>

Failed to generate minidump.[1]    4375 abort (core dumped)  snap run mailspring

And the app doesnt load.

bug done-pending-release linux needs-reproduction snapcraft

All 25 comments

Wow that's pretty odd... we don't use Cantarell, not sure what's going on here. Will see if I can reproduce this.

Same issue on same OS. Tried to debug a bit to find out more, but snap is making it a chore and eventually ended up with a very unenlightening 1.8MB strace file.

Similar error on Debian stretch.

Gtk-Message: Failed to load module "canberra-gtk-module"
Streaming log data to /run/user/0/snap.mailspring/Mailspring-3026.log
App load time: 141ms
[3026:1204/113649.298527:FATAL:platform_font_linux.cc(63)] Check failed: typeface. Could not find any font: Cantarell, sans
#0 0x000001f8d157 <unknown>
#1 0x000001fa130b <unknown>
#2 0x000001beee0f <unknown>
#3 0x000001beea4f <unknown>
#4 0x000001bef776 <unknown>
#5 0x000001bd7ad9 <unknown>
#6 0x000000cdd5b0 <unknown>
#7 0x000000f79ea3 <unknown>
#8 0x000003ee819d atom::api::WebContents::InitWithSessionAndOptions()
#9 0x000003ee89af atom::api::WebContents::WebContents()
#10 0x000003ef4196 atom::api::WebContents::Create()
#11 0x000003f061fa atom::api::Window::Window()
#12 0x000003f07dfc atom::api::Window::New()
#13 0x000003ea7ef0 mate::internal::InvokeNew<>()
#14 0x000003ea8080 mate::internal::Dispatcher<>::DispatchToCallback()
#15 0x7fdb394e4df9 <unknown>
#16 0x7fdb3994d51c <unknown>
#17 0x7fdb3994cf56 <unknown>
#18 0x130603b8437d <unknown>

Cannot upload crash dump: cannot exec /usr/bin/wget
Failed to get crash dump id.
Report Id: 
Aborted

same fedora same problem here

``snap run mailspring
Gtk-Message: Failed to load module "pk-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Streaming log data to /run/user/1000/snap.mailspring/Mailspring-20024.log
App load time: 236ms
[20024:1207/134845.345508:FATAL:platform_font_linux.cc(63)] Check failed: typeface. Could not find any font: Cantarell, sans

0 0x000001f8d157

1 0x000001fa130b

2 0x000001beee0f

3 0x000001beea4f

4 0x000001bef776

5 0x000001bd7ad9

6 0x000000cdd5b0

7 0x000000f79ea3

8 0x000003ee819d atom::api::WebContents::InitWithSessionAndOptions()

9 0x000003ee89af atom::api::WebContents::WebContents()

10 0x000003ef4196 atom::api::WebContents::Create()

11 0x000003f061fa atom::api::Window::Window()

12 0x000003f07dfc atom::api::Window::New()

13 0x000003ea7ef0 mate::internal::InvokeNew<>()

14 0x000003ea8080 mate::internal::Dispatcher<>::DispatchToCallback()

15 0x7fa6a7575df9

16 0x7fa6a79de51c

17 0x7fa6a79ddf56

18 0x0c19a890437d

Failed to generate minidump.Aborted (core dumped)``

Same error Fedora 27

It looks like I have the same issue on Debian testing. Cantarell is the default system font for GNOME 3. I've changed it to IBM Plex Sans on my system, so that's what it shows in the log:

Gtk-Message: Failed to load module "canberra-gtk-module"
Streaming log data to /run/user/1000/snap.mailspring/Mailspring-4173.log
App load time: 2214ms
[4173:1207/143706.656720:FATAL:platform_font_linux.cc(63)] Check failed: typeface. Could not find any font: IBM Plex Sans, sans
#0 0x000001f8d157 <unknown>
#1 0x000001fa130b <unknown>
#2 0x000001beee0f <unknown>
#3 0x000001beea4f <unknown>
#4 0x000001bef776 <unknown>
#5 0x000001bd7ad9 <unknown>
#6 0x000000cdd5b0 <unknown>
#7 0x000000f79ea3 <unknown>
#8 0x000003ee819d atom::api::WebContents::InitWithSessionAndOptions()
#9 0x000003ee89af atom::api::WebContents::WebContents()
#10 0x000003ef4196 atom::api::WebContents::Create()
#11 0x000003f061fa atom::api::Window::Window()
#12 0x000003f07dfc atom::api::Window::New()
#13 0x000003ea7ef0 mate::internal::InvokeNew<>()
#14 0x000003ea8080 mate::internal::Dispatcher<>::DispatchToCallback()
#15 0x7f9217635df9 <unknown>
#16 0x7f9217a9e51c <unknown>
#17 0x7f9217a9df56 <unknown>
#18 0x3636b4d8437d <unknown>

Failed to generate minidump.Aborted

Hi there, same issue in Solus with mailspring snap

snap run mailspring
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
Gtk-Message: Failed to load module "canberra-gtk-module"
Streaming log data to /run/user/1000/snap.mailspring/Mailspring-1914.log
App load time: 691ms
[1914:1208/185633.478415:FATAL:platform_font_linux.cc(63)] Check failed: typeface. Could not find any font: Noto Sans, sans

0 0x000001f8d157

1 0x000001fa130b

2 0x000001beee0f

3 0x000001beea4f

4 0x000001bef776

5 0x000001bd7ad9

6 0x000000cdd5b0

7 0x000000f79ea3

8 0x000003ee819d atom::api::WebContents::InitWithSessionAndOptions()

9 0x000003ee89af atom::api::WebContents::WebContents()

10 0x000003ef4196 atom::api::WebContents::Create()

11 0x000003f061fa atom::api::Window::Window()

12 0x000003f07dfc atom::api::Window::New()

13 0x000003ea7ef0 mate::internal::InvokeNew<>()

14 0x000003ea8080 mate::internal::Dispatcher<>::DispatchToCallback()

15 0x7f872baa4df9

16 0x7f872bf0d51c

17 0x7f872bf0cf56

18 0x1ec59148437d

Failed to generate minidump.Aborted

Hey folks—did a bit more digging in to this. Mailspring doesn't explicitly use any of the fonts referenced in these traces, so this is pretty odd. This may be a problem upstream with snapd. We might want to look on https://forum.snapcraft.io/.

Have you tried installing any other snaps that use Electron? Would be curious to know if Brave browser or Atom are also broken on your system when installed via snapcraft.

Can you try installing yum install 'gnu-free-sans-fonts' and see if it resolves the issue on Fedora? It seems like these fonts are either not present, or the snapcraft daemon is no longer providing Mailspring with access to them (which I think is probably more likely.)

Can you try installing yum install 'gnu-free-sans-fonts'

It was already installed.

Have you tried installing any other snaps that use Electron? Would be curious to know if Brave browser or Atom are also broken on your system when installed via snapcraft.

Discord has worked fine via snap. Can't install brave or atom right now for some reason, maybe my internet connection is being slow, maybe their servers are having issues .. the tool doesn't seem to provide any kind of logs to explain.

Thanks—I'm also publishing a new build to the --edge channel that requests the desktop interface. From recent discussions on the snapcraft forum (https://forum.snapcraft.io/t/desktop-allow-access-to-host-system-fonts/1796) it seems like Mailspring would need that to access fonts, but previously it was working fine.

It'll take about half an hour for the new edge release to be uploaded (waiting on Travis), but once it's up if you could try snap install mailspring --edge and let me know if that version works I'd appreciate it! The snap release number should be 89.

@bengotow Thanks, --edge works for me on Fedora 27!

Yes working with --edge thanks @bengotow, looks like its using the stock standard plain GTK theme, which makes it looks a bit yuck but other than that it working well.

Edge is now working for me too. Thanks @bengotow!

Great! Glad that does the trick - I'm not sure how this was working before without the desktop interface connected, but something must have changed in snapd. Will get this shipped to everyone soon.

Just FYI: ended up installing an rpm package anyway as snap unfortunately looks rather bad on my system (fonts are blurry, controls are ugly — that's probably because of Electron still using Gtk2 and snap can't use system themes).

I agree @excieve , The Snap package in terms of UI looks disgusting.
@bengotow: I think it would great if you could package Mailspring in a flatpak rather than snap, at least with flatpak apps the UI can be imported and doesnt look complexly out of place and coheres with the desktop seamlessly.

Hey - thanks for the feedback. The big win with Snapcraft is the autoupdate
mechanism across so many Linux districts. Since updates ship every week or
so, it’s a pain to redownload a flatpak and folks tend to fall behind,
which causes a lot of unnecessary bug reports / support emails. (Back when
I was working on Nylas Mail we spent a lot of time telling people things
had actually been fixed and they just needed to update!)

I think the snap folks are actively working on theme support - I’ve
forwarded them a bunch of feedback about it and it seems to be the #1
complaint about GUI snaps in general. Hopefully a fix will come soon!

On Tue, Dec 12, 2017 at 3:42 PM Tim Gunn notifications@github.com wrote:

I agree @excieve https://github.com/excieve , The Snap package in terms
of UI looks disgusting.
@bengotow https://github.com/bengotow: I think it would great if you
could package Mailspring in a flatpak rather than snap, at least with
flatpak apps the UI can be imported and doesnt look complexly out of place
and coheres with the desktop seamlessly.

—
You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
https://github.com/Foundry376/Mailspring/issues/389#issuecomment-351232220,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA_TnAkrYsqfxm6XooMmtCak0orla4w0ks5s_w89gaJpZM4Qzoka
.

Getting the same error on openSUSE TW even after installing with --edge.

``` ~ î‚° mailspring
Gtk-Message: Failed to load module "canberra-gtk-module"
Streaming log data to /run/user/1000/snap.mailspring/Mailspring-5243.log
App load time: 240ms
[5243:1213/151427.272928:FATAL:platform_font_linux.cc(63)] Check failed: typeface. Could not find any font: Sans, sans

0 0x000001f8d157

1 0x000001fa130b

2 0x000001beee0f

3 0x000001beea4f

4 0x000001bef776

5 0x000001bd7ad9

6 0x000000cdd5b0

7 0x000000f79ea3

8 0x000003ee819d atom::api::WebContents::InitWithSessionAndOptions()

9 0x000003ee89af atom::api::WebContents::WebContents()

10 0x000003ef4196 atom::api::WebContents::Create()

11 0x000003f061fa atom::api::Window::Window()

12 0x000003f07dfc atom::api::Window::New()

13 0x000003ea7ef0 mate::internal::InvokeNew<>()

14 0x000003ea8080 mate::internal::Dispatcher<>::DispatchToCallback()

15 0x7f9fc61c3df9

16 0x7f9fc662c51c

17 0x7f9fc662bf56

18 0x23078a38437d

```

Hi all,
after reading this thread I tried to refresh the snap package using the edge channel.
Unfortunately got this error:

cristiano@xmper8q3 [~]$ sudo snap refresh --edge mailspring
[sudo] password di root:
2017-12-18T13:02:42+01:00 INFO snap "mailspring" has bad plugs or slots: desktop (unknown interface)
mailspring (edge) 1.0.11 from 'foundry376' refreshed

In fact, after refreshing I still have the error:

cristiano@xmper8q3 [~]$ snap run mailspring
Gtk-Message: Failed to load module "canberra-gtk-module"
Streaming log data to /run/user/1000/snap.mailspring/Mailspring-24176.log
App load time: 783ms
[24176:1218/131835.014525:FATAL:platform_font_linux.cc(63)] Check failed: typeface. Could not find any font: Oxygen-Sans Sans-Book, sans
#0 0x000001f8d157 <unknown>
#1 0x000001fa130b <unknown>
#2 0x000001beee0f <unknown>
#3 0x000001beea4f <unknown>
#4 0x000001bef776 <unknown>
#5 0x000001bd7ad9 <unknown>
#6 0x000000cdd5b0 <unknown>
#7 0x000000f79ea3 <unknown>
#8 0x000003ee819d atom::api::WebContents::InitWithSessionAndOptions()
#9 0x000003ee89af atom::api::WebContents::WebContents()
#10 0x000003ef4196 atom::api::WebContents::Create()
#11 0x000003f061fa atom::api::Window::Window()
#12 0x000003f07dfc atom::api::Window::New()
#13 0x000003ea7ef0 mate::internal::InvokeNew<>()
#14 0x000003ea8080 mate::internal::Dispatcher<>::DispatchToCallback()
#15 0x7fd6b602adf9 <unknown>
#16 0x7fd6b649351c <unknown>
#17 0x7fd6b6492f56 <unknown>
#18 0x3afdb800437d <unknown>

Failed to generate minidump.Annullato (core dump creato)

I am on openSUSE Tumbleweed.

Cris

The issue with Fedora seems to be solved, opened a new topic for openSUSE TW #459

EDIT: Ignore the first part, turns out that it was installed from rpm not snap.... sorry. Tried again on Fedora27, same problem.

i'm on fedora 27, with same error message:

Gtk-Message: Failed to load module "pk-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Discord 0.0.3
[Modules] Modules initializing
[Modules] Distribution: remote
[Modules] Host updates: enabled
[Modules] Module updates: enabled
[Modules] Install path: /root/snap/discord/41/.config/discord/0.0.3/modules
[14956:1220/032230.066199:FATAL:platform_font_linux.cc(63)] Check failed: typeface. Could not find any font: Cantarell, sans
#0 0x000001dffe4e <unknown>
#1 0x000001de571b <unknown>
#2 0x000001a64f2d <unknown>
#3 0x000001a64b6f <unknown>
#4 0x000001a65826 <unknown>
#5 0x000001a723e9 <unknown>
#6 0x000000b2b2ae <unknown>
#7 0x0000009fcb93 <unknown>
#8 0x000003c22086 atom::api::WebContents::InitWithSessionAndOptions()
#9 0x000003c2290f atom::api::WebContents::WebContents()
#10 0x000003c2d806 atom::api::WebContents::Create()
#11 0x000003c3fab5 atom::api::Window::Window()
#12 0x000003c415cc atom::api::Window::New()
#13 0x000003be7570 mate::internal::InvokeNew<>()
#14 0x000003be7700 mate::internal::Dispatcher<>::DispatchToCallback()
#15 0x7f958edfcf9f <unknown>
#16 0x7f958e9a74eb <unknown>
#17 0x7f958e9a6fa9 <unknown>
#18 0x2f05576843a7 <unknown>

i already run snap install mailspring --edge command and nothing happened

For the fun of it I started an Arch VM in KVM, installed the snap and after starting the app the process is marked as defunct. Something is wrong with the snap image...

On Fedora 27 this is solved as the official repos updated snapd:

~ » dnf info snapd.x86_64                                                                                                                apinter@pinta
Fedora 27 - x86_64 - Updates                                                                                           408 kB/s |  14 MB     00:35    
Fedora 27 - x86_64                                                                                                     797 kB/s |  58 MB     01:14    
google-chrome                                                                                                           15 kB/s | 3.7 kB     00:00    
Opera packages                                                                                                         3.5 kB/s |  11 kB     00:03    
RPM Fusion for Fedora 27 - Free - Updates                                                                              109 kB/s | 219 kB     00:02    
RPM Fusion for Fedora 27 - Free                                                                                        297 kB/s | 717 kB     00:02    
RPM Fusion for Fedora 27 - Nonfree - Updates                                                                            50 kB/s | 9.9 kB     00:00    
RPM Fusion for Fedora 27 - Nonfree                                                                                     262 kB/s | 163 kB     00:00    
created by dnf config-manager from https://s3-us-west-2.amazonaws.com/brave-rpm-release/x86_64/                        5.6 kB/s | 8.0 kB     00:01    
skype (stable)                                                                                                          11 kB/s | 3.8 kB     00:00    
Visual Studio Code                                                                                                     732 kB/s | 976 kB     00:01    
Failed to synchronize cache for repo 'baoboa-cmatrix', disabling.
Failed to synchronize cache for repo 'region51-chrome-gnome-shell', disabling.
Last metadata expiration check: 0:00:00 ago on Thu 21 Dec 2017 12:42:19 PM WIB.
Installed Packages
Name         : snapd
Version      : 2.29.4
Release      : 2.fc27
Arch         : x86_64
Size         : 36 M
Source       : snapd-2.29.4-2.fc27.src.rpm
Repo         : @System
From repo    : updates
Summary      : A transactional software package manager
URL          : https://github.com/snapcore/snapd
License      : GPLv3
Description  : Snappy is a modern, cross-distribution, transactional package manager
             : designed for working with self-contained, immutable packages.
~ » snap list                                                                                                                            apinter@pinta
Name        Version      Rev   Developer   Notes
core        16-2.29.4.2  3604  canonical   core
mailspring  1.0.11       96    foundry376  -

Mailspring works fine.

Hey folks—closing this due to inactivity, sounds like the official repos just needed to be updated to the latest version of snapd.

Was this page helpful?
0 / 5 - 0 ratings