Building snapcraft snap file works, but installing doesn't

I’m building a new snap for the store and the build & release functions are working properly, but when I try and run the actual .snap file I get a segfault. Here is my yaml file:

name: impfe
base: core18
version: '0.2.5'
summary: GUI client for the online multiplayer game Imperium
description: |
  This is a GUI client for the online multiplayer strategy game Imperium

grade: stable
confinement: strict
icon: impfeicon.png
title: ImpFE

    command: bin/impfe
    # See 'snapcraft plugins'
    plugin: dump
    source: .
    build-packages: [libforms-bin, libforms-dev]
    stage-packages: [libforms-bin, libforms-dev]
      impfe: bin/
      impfe.1: man/man1/

  - build-on: amd64

When I do a “which impfe” is returns “/snap/bin/impfe” but that crashes unless I manually symlink impfe to “/snap/bin/impfe -> /snap/impfe/19/bin/impfe”

Can anyone help me out what I am doing wrong in the yaml file?

The segfault likely means that your snap is attempting to do something that it isn’t permitted by the confinement mechanism. Install and run in a terminal the snap snappy-debug. In a separate terminal execute your snap and monitor snappy-debug for notices about what is being blocked (if anything) and what you can do to allow those accesses.

Given there are zero plugs mentioned and it’s strictly confined, I agree with @lucyllewy. scanlog is helpful here.

Ok thanks, will give it a go!

Well,you did a good job.