Bug 485782 - Krita 5.2.2 snap rev 104 crashes on attempting to open or create a document
Summary: Krita 5.2.2 snap rev 104 crashes on attempting to open or create a document
Status: RESOLVED DUPLICATE of bug 486596
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 5.2.2
Platform: Snap Linux
: NOR crash
Target Milestone: ---
Assignee: Scarlett Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-19 09:23 UTC by nathanathan123
Modified: 2024-10-31 10:22 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nathanathan123 2024-04-19 09:23:39 UTC
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:~$
Comment 1 Halla Rempt 2024-04-19 10:56:35 UTC
I'll ask the snap maintainer...
Comment 2 Scarlett Moore 2024-04-22 19:23:56 UTC
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.
Comment 3 Alex 2024-05-07 17:45:29 UTC
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)
Comment 4 Alejandro García Montoro 2024-06-14 15:18:07 UTC
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.
Comment 5 Halla Rempt 2024-06-14 15:50:54 UTC
From the log, there's quite a lot wrong because Krita cannot find its essential plugins.
Comment 6 Halla Rempt 2024-07-27 08:52:43 UTC
Scarlett, was this resolved with 5.2.3?
Comment 7 Halla Rempt 2024-10-31 10:22:46 UTC

*** This bug has been marked as a duplicate of bug 486596 ***