Snapcraft apps plugins/library font exception

Hello

I’m trying to make a .snap of my GUI app. that uses JUCE.

The compilation/make of the app goes well and snapcraft creates a .snap.

BUT when I install the snap and run the app it throws an exception in juce_Font.cpp line 356:


void Font::setTypefaceName (const String& faceName)
{
    if (faceName != font->typefaceName)
    {
        jassert (faceName.isNotEmpty());

        dupeInternalIfShared();
        font->typefaceName = faceName;
        font->typeface = nullptr;
        font->ascent = 0;
    }
}

Thus faceName is Empty.

In the .yaml file I specify theseInterfaces/plugs:


apps:
  myapp:
    command: myapp
    environment:
      LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio"
    plugs:
      - x11
      - opengl
      - pulseaudio

the .yaml file can be found here

What interfaces/plugs/libs am I missing ?

BTW: The app runs fine if I build and run it outside snap(craft)


Eigil