Unfortunately it is the full output:
![Screenshot%20from%202020-06-13%2020-17-25](https://forum.snapcraft.io/images/transparent.png)
I added x11
and some other plugs to my program (see the update in my snapcraft.yaml
file) and it keeps not working, but this time I received two error messages more helpful (I think).
When I run my application I receive this error:
MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
X Error: GLXBadContext
Request Major code 151 (GLX)
Request Minor code 6 ()
Error Serial #107
Current Serial #106
And in snappy-debug I receive this error:
INFO: Following '/var/log/syslog'. If have dropped messages, use:
INFO: $ sudo journalctl --output=short --follow --all | sudo snappy-debug
kernel.printk_ratelimit = 0
= AppArmor =
Time: Jun 15 01:39:56
Log: apparmor="DENIED" operation="open" profile="snap.tic-tac-toe-x.tic-tac-toe-x" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libGL.so.1.7.0" pid=6470 comm="tic-tac-toe-x" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libGL.so.1.7.0 (read)
Suggestions:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)
= AppArmor =
Time: Jun 15 01:39:56
Log: apparmor="DENIED" operation="open" profile="snap.tic-tac-toe-x.tic-tac-toe-x" name="/var/lib/snapd/hostfs/usr/lib/i386-linux-gnu/libGL.so.1.7.0" pid=6470 comm="tic-tac-toe-x" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /var/lib/snapd/hostfs/usr/lib/i386-linux-gnu/libGL.so.1.7.0 (read)
Suggestions:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)
= AppArmor =
Time: Jun 15 01:39:56
Log: apparmor="DENIED" operation="open" profile="snap.tic-tac-toe-x.tic-tac-toe-x" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0" pid=6470 comm="tic-tac-toe-x" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0 (read)
Suggestions:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)
= AppArmor =
Time: Jun 15 01:39:56
Log: apparmor="DENIED" operation="open" profile="snap.tic-tac-toe-x.tic-tac-toe-x" name="/var/lib/snapd/hostfs/usr/lib/i386-linux-gnu/libGLdispatch.so.0.0.0" pid=6470 comm="tic-tac-toe-x" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /var/lib/snapd/hostfs/usr/lib/i386-linux-gnu/libGLdispatch.so.0.0.0 (read)
Suggestions:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)
= AppArmor =
Time: Jun 15 01:39:56
Log: apparmor="DENIED" operation="open" profile="snap.tic-tac-toe-x.tic-tac-toe-x" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0" pid=6470 comm="tic-tac-toe-x" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0 (read)
Suggestions:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)
= AppArmor =
Time: Jun 15 01:39:56
Log: apparmor="DENIED" operation="open" profile="snap.tic-tac-toe-x.tic-tac-toe-x" name="/var/lib/snapd/hostfs/usr/lib/i386-linux-gnu/libGLX.so.0.0.0" pid=6470 comm="tic-tac-toe-x" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /var/lib/snapd/hostfs/usr/lib/i386-linux-gnu/libGLX.so.0.0.0 (read)
Suggestions:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)
= AppArmor =
Time: Jun 15 01:39:56
Log: apparmor="DENIED" operation="open" profile="snap.tic-tac-toe-x.tic-tac-toe-x" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libGLX_nvidia.so.440.64" pid=6470 comm="tic-tac-toe-x" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libGLX_nvidia.so.440.64 (read)
Suggestions:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)
= AppArmor =
Time: Jun 15 01:39:56
Log: apparmor="DENIED" operation="open" profile="snap.tic-tac-toe-x.tic-tac-toe-x" name="/var/lib/snapd/hostfs/usr/lib/i386-linux-gnu/libGLX_nvidia.so.440.64" pid=6470 comm="tic-tac-toe-x" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /var/lib/snapd/hostfs/usr/lib/i386-linux-gnu/libGLX_nvidia.so.440.64 (read)
Suggestions:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)
PS: I tried the first suggestion and changed all the directories in my code to relative ones (for example: “/…/media/my_font”), but it was worthless. And also, it didn’t seem the root of the problem, since my first version of the application don’t use relative directories and nor $SNAP
, but even so works perfectly.
Thanks again for trying to help me ![:slight_smile: :slight_smile:](https://forum.snapcraft.io/images/emoji/twitter/slight_smile.png?v=12)