QT5 classic snaps segmentation fault


Hello! I have confused with strange bug of classic snap package based on QT5.

I have Ubuntu 19.04 with 2 videocards: Intel and Nvidia with installed nvidia-driver-418. My successfully build snap failed to start with segmentation fault error on Intel.

But if I switch on nvidia card all works fine. My snapcraft config: https://github.com/october21/eric-snap/blob/master/snapcraft.yaml.

Probably this bug affects all snap packages with QT and classic mode.

Does anybody know something about it?

Thanks in advance.


So, guys, does anybody know about this problem? Or how to debug this? I can add any additional information if required


If you are using ctypes with python (through a dependency or not), you will need to do something like https://github.com/snapcore/snapcraft/blob/master/patches/ctypes_init.diff