Using QTsharedMeomory inside a snap

It looks like that you’re attempting to let two applications communicate via the use of /dev/shm, that won’t work as the security confinement forces snaps to have a private /dev/shm, refer Snap interface for /dev/shm for more info.