SUMMARY On Ubuntu 22.04, Krita 5.2.2 snap rev 104 crashes on attempting to open or create a document. The AppImage works fine, as does the revision 98 snap. Snap revisions 100, 102, and 104 all crash (for possibly various reasons). This bug is reproducible on a fresh Ubuntu 22.04 virtual machine. Multiple reports of this problem appear in the Ubuntu Snap Store—all with accompanying poor ratings of Krita. This is very unfortunate since Krita is a great piece of software about which you should be very proud. It would be such a shame if what appears to be a simple packaging bug were allowed to persist clouding new users’ view of Krita. STEPS TO REPRODUCE 1. Launch Krita 2. Attempt to open or create a document 3. Experience the immediate crash OBSERVED RESULT Crash EXPECTED RESULT Open or create new document SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: Ubuntu 22.04 (Snap rev. 104) (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION Launching Krita from the command line produces the following: vboxuser@ubuntu-eval1:~$ 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 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.127\" (uid=1000 pid=6872 comm=\"/snap/krita/104/usr/bin/krita \" label=\"snap.krita.krita (enforce)\") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=634 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")" nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.127\" (uid=1000 pid=6872 comm=\"/snap/krita/104/usr/bin/krita \" label=\"snap.krita.krita (enforce)\") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=634 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")" "Object path cannot be empty" QObject::startTimer: Timers cannot have negative intervals 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\", line 11, in <module>" 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 <module>" krita.scripting: " from PyKrita.krita import *" krita.scripting: "ModuleNotFoundError: No module named 'PyQt5'" krita.scripting: "Could not import krita" 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) vboxuser@ubuntu-eval1:~$
I'll ask the snap maintainer...
Hello, First this is the first i am hearing of the bug. Our store interface does NOT show reviews. So thanks for reporting the bug. I have fixed the unrelated python error, however the actual bug is krita(419714)/(default) \[31mKisImageConfig::safelyGetWritableTempLocation\[0m: WARNING: configured swap location is not writable, using a fall-back location "" -> "/home/scarlett/snap/krita/x6" [New Thread 0x756624ff9640 (LWP 420106)] [New Thread 0x756607fff640 (LWP 420107)] krita(419714)/(default) \[31munknown\[0m: QOpenGLShaderProgram: could not create shader program krita(419714)/(default) \[31m\[34mKisOpenGLCanvasRenderer::reportFailedShaderCompilation\[0m: Shader Compilation Failure: "Failed to add vertex shader source from file: matrix_transform.vert - Cause: " Thread 1 "krita" received signal SIGSEGV, Segmentation fault. 0x00007566e24b0034 in QOpenGLFramebufferObject::handle() const () from target:/snap/krita/x6/kf5/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 I don't currently know if it is the /tmp dir issue or the opengl issue but I am working on it.
Hi, I got the same issue on a Ubuntu 20.04.6 LTS : alexandre@CLM-ideapad:~$ krita 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.136\" (uid=1000 pid=5230 comm=\"/snap/krita/104/usr/bin/krita \" label=\"snap.krita.krita (enforce)\") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1110 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")" nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.136\" (uid=1000 pid=5230 comm=\"/snap/krita/104/usr/bin/krita \" label=\"snap.krita.krita (enforce)\") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1110 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")" "Object path cannot be empty" QObject::startTimer: Timers cannot have negative intervals 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\", line 11, in <module>" 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 <module>" krita.scripting: " from PyKrita.krita import *" krita.scripting: "ModuleNotFoundError: No module named 'PyQt5'" krita.scripting: "Could not import krita" QOpenGLShaderProgram: could not create shader program Shader Compilation Failure: "Failed to add vertex shader source from file: matrix_transform.vert - Cause: " Erreur de segmentation (core dumped)
Same here, as soon as I try to create or open a document, it crashes: $ uname -a Linux alejandro-ThinkPad-P15-Gen-2i 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux $ 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 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.238\" (uid=1000 pid=147560 comm=\"/snap/krita/104/usr/bin/krita \" label=\"snap.krita.krita (enforce)\") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1493 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")" nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.238\" (uid=1000 pid=147560 comm=\"/snap/krita/104/usr/bin/krita \" label=\"snap.krita.krita (enforce)\") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1493 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")" "Object path cannot be empty" QObject::startTimer: Timers cannot have negative intervals 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\", line 11, in <module>" 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 <module>" krita.scripting: " from PyKrita.krita import *" krita.scripting: "ModuleNotFoundError: No module named 'PyQt5'" krita.scripting: "Could not import krita" qt.xkb.compose: failed to create compose table 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) The last three lines are the ones printed when it crashes. The rest of lines seem to be unrelated.
From the log, there's quite a lot wrong because Krita cannot find its essential plugins.
Scarlett, was this resolved with 5.2.3?
*** This bug has been marked as a duplicate of bug 486596 ***