Krita used via snap package crashes opening ANY image file (png, jpg)

Meaning Krita is actually pretty much totally unusable as a snap at the moment. This is on the latest KDE neon and the snap package was installed from Discover.

snap run krita
Qt: Session management error: Could not open network socket
Qt: Session management error: Could not open network socket
Qt: Session management error: Could not open network socket
Qt: Session management error: Could not open network socket
kf.config.core: Watching absolute paths is not supported “/snap/krita/104/usr/share/color-schemes/KritaDark.co
lors”
Invalid profile : “/snap/krita/104/usr/share/color/icc/colord/Crayons.icc”
Invalid profile : “/snap/krita/104/usr/share/color/icc/colord/x11-colors.icc”
propsReply “An AppArmor policy prevents this sender from sending this message to this recipient; type="method
_call", sender=":1.1090" (uid=1000 pid=128231 comm="/snap/krita/104/usr/bin/krita" label="snap.krita.kri
ta (enforce)") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" request
ed_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=1760 comm="/usr/sbin/NetworkManager
–no-daemon" label="unconfined")”
nmReply “An AppArmor policy prevents this sender from sending this message to this recipient; type="method_ca
ll", sender=":1.1090" (uid=1000 pid=128231 comm="/snap/krita/104/usr/bin/krita" label="snap.krita.krita
(enforce)") interface="org.freedesktop.NetworkManager" member="GetDevices" error name="(unset)" request
ed_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=1760 comm="/usr/sbin/NetworkManager
–no-daemon" label="unconfined")”
“Object path cannot be empty”
krita.scripting: “Traceback (most recent call last):”
krita.scripting: " File "/snap/krita/104/usr/lib/x86_64-linux-gnu/krita-python-libs/krita/init.py", lin
e 11, in "
krita.scripting: " from .api import *"
krita.scripting: " File "/snap/krita/104/usr/lib/x86_64-linux-gnu/krita-python-libs/krita/api.py", line 15,
in "
krita.scripting: " from PyKrita.krita import *"
krita.scripting: “ModuleNotFoundError: No module named ‘PyQt5’”
krita.scripting: “Could not import krita”
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.AccessDenied”
“An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", s
ender=":1.1090" (uid=1000 pid=128231 comm="/snap/krita/104/usr/bin/krita" label="snap.krita.krita (enforc
e)") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested
_reply="0" destination="org.freedesktop.UDisks2" (uid=0 pid=1608 comm="/usr/libexec/udisks2/udisksd" lab
el="unconfined")”
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.AccessDenied”
“An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", s
ender=":1.1090" (uid=1000 pid=128231 comm="/snap/krita/104/usr/bin/krita" label="snap.krita.krita (enforc
e)") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested
_reply="0" destination="org.freedesktop.UDisks2" (uid=0 pid=1608 comm="/usr/libexec/udisks2/udisksd" lab
el="unconfined")”
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.AccessDenied”
“An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", s
ender=":1.1090" (uid=1000 pid=128231 comm="/snap/krita/104/usr/bin/krita" label="snap.krita.krita (enforc
e)") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested
_reply="0" destination="org.freedesktop.UDisks2" (uid=0 pid=1608 comm="/usr/libexec/udisks2/udisksd" lab
el="unconfined")”
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.AccessDenied”
“An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", s
ender=":1.1090" (uid=1000 pid=128231 comm="/snap/krita/104/usr/bin/krita" label="snap.krita.krita (enforc
e)") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested
_reply="0" destination="org.freedesktop.UDisks2" (uid=0 pid=1608 comm="/usr/libexec/udisks2/udisksd" lab
el="unconfined")”
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.AccessDenied”
“An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", s
ender=":1.1090" (uid=1000 pid=128231 comm="/snap/krita/104/usr/bin/krita" label="snap.krita.krita (enforc
e)") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested
_reply="0" destination="org.freedesktop.UDisks2" (uid=0 pid=1608 comm="/usr/libexec/udisks2/udisksd" lab
el="unconfined")”
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.AccessDenied”
“An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", s
ender=":1.1090" (uid=1000 pid=128231 comm="/snap/krita/104/usr/bin/krita" label="snap.krita.krita (enforc
e)") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested
_reply="0" destination="org.freedesktop.UDisks2" (uid=0 pid=1608 comm="/usr/libexec/udisks2/udisksd" lab
el="unconfined")”
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.AccessDenied”
“An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", s
ender=":1.1090" (uid=1000 pid=128231 comm="/snap/krita/104/usr/bin/krita" label="snap.krita.krita (enforc
e)") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested
_reply="0" destination="org.freedesktop.UDisks2" (uid=0 pid=1608 comm="/usr/libexec/udisks2/udisksd" lab
el="unconfined")”
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.AccessDenied”
“An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", s
ender=":1.1090" (uid=1000 pid=128231 comm="/snap/krita/104/usr/bin/krita" label="snap.krita.krita (enforc
e)") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested
_reply="0" destination="org.freedesktop.UDisks2" (uid=0 pid=1608 comm="/usr/libexec/udisks2/udisksd" lab
el="unconfined")”
QOpenGLShaderProgram: could not create shader program
Shader Compilation Failure: "Failed to add vertex shader source from file: matrix_transform.vert - Cause: "
Segmentation fault (core dumped)

I’ve had the same issue. I figured out that it appears to be an existing, known bug as reported at 486596 – Snap crashes when creating a new image on ubuntu

The snap isn’t maintained by the official Krita developers and unfortunately the previous snap maintainer has had a series of health issues including a car accident.

1 Like