SUMMARY Krita segfaults on drag and drop STEPS TO REPRODUCE 1. Open krita 2. Drag and drop a png file from nautilus OBSERVED RESULT Startup: ``` 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.566\" (uid=1000 pid=41940 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=1763 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.566\" (uid=1000 pid=41940 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=1763 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" ``` Drag and drop action done now ``` QOpenGLShaderProgram: could not create shader program Shader Compilation Failure: "Failed to add vertex shader source from file: matrix_transform.vert - Cause: " [1] 41940 segmentation fault (core dumped) krita ``` EXPECTED RESULT Don't segfault SOFTWARE/OS VERSIONS Ubuntu 24.04 Krita 5.2.2 (Git c9d281c) snap ADDITIONAL INFORMATION Attempts to reproduce with a backtrace 1. Following guide https://ubuntu.com/server/docs/about-debuginfod result ``` » gdb krita GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from krita... (No debugging symbols found in krita) (gdb) quit ``` 2. Following guide https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Procedure_for_(K)Ubuntu_gdb_without_debuginfod ``` » gdb krita [19:27:28] GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from krita... (No debugging symbols found in krita) (gdb) run Starting program: /snap/bin/krita [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffb10006c0 (LWP 46881)] [New Thread 0x7fffabe006c0 (LWP 46882)] [New Thread 0x7fffab4006c0 (LWP 46883)] [New Thread 0x7fffaaa006c0 (LWP 46884)] [New Thread 0x7fffaa0006c0 (LWP 46885)] [Detaching after vfork from child process 46886] [New Thread 0x7fffa96006c0 (LWP 46892)] [New Thread 0x7fffa8c006c0 (LWP 46893)] [Thread 0x7fffa8c006c0 (LWP 46893) exited] [Thread 0x7fffa96006c0 (LWP 46892) exited] [Thread 0x7fffaa0006c0 (LWP 46885) exited] [Thread 0x7fffaaa006c0 (LWP 46884) exited] [Thread 0x7fffabe006c0 (LWP 46882) exited] [Thread 0x7fffb10006c0 (LWP 46881) exited] [Thread 0x7fffab4006c0 (LWP 46883) exited] process 46878 is executing new program: /usr/lib/snapd/snap-confine [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2 need to run as root or suid [Inferior 1 (process 46878) exited with code 01] (gdb) quit ``` with sudo ``` » sudo gdb krita GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from krita... (No debugging symbols found in krita) (gdb) run Starting program: /snap/bin/krita [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffb10006c0 (LWP 46938)] [New Thread 0x7fffabe006c0 (LWP 46939)] [New Thread 0x7fffaaa006c0 (LWP 46941)] [New Thread 0x7fffab4006c0 (LWP 46940)] [New Thread 0x7fffaa0006c0 (LWP 46942)] [Detaching after vfork from child process 46943] [New Thread 0x7fffa96006c0 (LWP 46949)] [New Thread 0x7fffa8c006c0 (LWP 46950)] [Thread 0x7fffa8c006c0 (LWP 46950) exited] [Thread 0x7fffa96006c0 (LWP 46949) exited] [Thread 0x7fffaa0006c0 (LWP 46942) exited] [Thread 0x7fffaaa006c0 (LWP 46941) exited] [Thread 0x7fffabe006c0 (LWP 46939) exited] [Thread 0x7fffb10006c0 (LWP 46938) exited] [Thread 0x7fffab4006c0 (LWP 46940) exited] process 46935 is executing new program: /usr/lib/snapd/snap-confine [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2 [Detaching after fork from child process 46951] [Detaching after fork from child process 46952] process 46935 is executing new program: /usr/lib/snapd/snap-exec [New LWP 46954] [New LWP 46955] [New LWP 46956] [New LWP 46957] [LWP 46957 exited] [LWP 46956 exited] [LWP 46955 exited] [LWP 46954 exited] process 46935 is executing new program: /usr/bin/bash warning: could not find '.gnu_debugaltlink' file for target:/lib/x86_64-linux-gnu/libtinfo.so.6 warning: Expected absolute pathname for libpthread in the inferior, but got target:/snap/krita/104/lib/x86_64-linux-gnu/libc.so.6. warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. [Detaching after fork from child process 46958] [Detaching after fork from child process 46959] [Detaching after fork from child process 46962] [Detaching after fork from child process 46963] [Detaching after fork from child process 46964] [Detaching after fork from child process 46965] [Detaching after fork from child process 46970] [Detaching after fork from child process 46971] [Detaching after fork from child process 46972] mkdir: cannot create directory ‘/run/user/0’: Permission denied [Detaching after fork from child process 46973] [Detaching after fork from child process 46975] [Detaching after fork from child process 46977] [Detaching after fork from child process 46979] [Detaching after fork from child process 46981] [Detaching after fork from child process 46983] [Detaching after fork from child process 46985] [Detaching after fork from child process 46987] [Detaching after fork from child process 46989] [Detaching after fork from child process 46990] [Detaching after fork from child process 46991] [Detaching after fork from child process 46992] [Detaching after fork from child process 46993] [Detaching after fork from child process 46994] [Detaching after fork from child process 46995] [Detaching after fork from child process 46997] [Detaching after fork from child process 46999] [Detaching after fork from child process 47002] [Detaching after fork from child process 47006] [Detaching after fork from child process 47008] [Detaching after fork from child process 47010] [Detaching after fork from child process 47012] [Detaching after fork from child process 47015] [Detaching after fork from child process 47019] [Detaching after fork from child process 47026] [Detaching after fork from child process 47029] [Detaching after fork from child process 47032] [Detaching after fork from child process 47038] [Detaching after fork from child process 47041] [Detaching after fork from child process 47043] [Detaching after fork from child process 47046] [Detaching after fork from child process 47048] [Detaching after fork from child process 47051] [Detaching after fork from child process 47053] [Detaching after fork from child process 47056] [Detaching after fork from child process 47057] [Detaching after fork from child process 47059] [Detaching after fork from child process 47060] [Detaching after fork from child process 47061] [Detaching after fork from child process 47062] [Detaching after fork from child process 47063] [Detaching after fork from child process 47064] [Detaching after fork from child process 47065] [Detaching after fork from child process 47066] [Detaching after fork from child process 47067] [Detaching after fork from child process 47068] [Detaching after fork from child process 47069] [Detaching after fork from child process 47070] [Detaching after fork from child process 47071] [Detaching after fork from child process 47072] [Detaching after fork from child process 47073] [Detaching after fork from child process 47074] [Detaching after fork from child process 47075] [Detaching after fork from child process 47076] [Detaching after fork from child process 47077] [Detaching after fork from child process 47078] [Detaching after fork from child process 47079] process 46935 is executing new program: /snap/krita/104/usr/bin/krita warning: could not find '.gnu_debugaltlink' file for target:/snap/krita/104/kf5/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 warning: Expected absolute pathname for libpthread in the inferior, but got target:/snap/krita/104/lib/x86_64-linux-gnu/libc.so.6. warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. warning: could not find '.gnu_debugaltlink' file for target:/snap/krita/104/kf5/usr/lib/x86_64-linux-gnu/libQt5Network.so.5 warning: could not find '.gnu_debugaltlink' file for target:/snap/krita/104/kf5/usr/lib/x86_64-linux-gnu/libQt5Svg.so.5 warning: could not find '.gnu_debugaltlink' file for target:/snap/krita/104/usr/lib/x86_64-linux-gnu/libmlt-7.so.7 warning: could not find '.gnu_debugaltlink' file for target:/snap/krita/104/kf5/usr/lib/x86_64-linux-gnu/libicui18n.so.70 warning: could not find '.gnu_debugaltlink' file for target:/snap/krita/104/kf5/usr/lib/x86_64-linux-gnu/libicuuc.so.70 warning: could not find '.gnu_debugaltlink' file for target:/snap/krita/104/kf5/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 warning: could not find '.gnu_debugaltlink' file for target:/snap/krita/104/kf5/usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5 warning: could not find '.gnu_debugaltlink' file for target:/snap/krita/104/usr/lib/x86_64-linux-gnu/libKF5WindowSystem.so.5 warning: could not find '.gnu_debugaltlink' file for target:/snap/krita/104/usr/lib/x86_64-linux-gnu/libfam.so.0 warning: could not find '.gnu_debugaltlink' file for target:/lib/x86_64-linux-gnu/libbrotlidec.so.1 warning: could not find '.gnu_debugaltlink' file for target:/lib/x86_64-linux-gnu/libbrotlicommon.so.1 QStandardPaths: error creating runtime directory '/run/user/0/snap.krita' (No such file or directory) warning: could not find '.gnu_debugaltlink' file for target:/snap/krita/104/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so warning: could not find '.gnu_debugaltlink' file for target:/snap/krita/104/kf5/usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 Authorization required, but no authorization protocol specified qt.qpa.xcb: could not connect to display :0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx. Thread 1 "krita" received signal SIGABRT, Aborted. ```
Can you please try appimage 5.2.2 from the website to see if it works there or segfaults as well? We've got a few reports about crashes on 5.2.2: bug 485446 , bug 484715 , but they all seem to happen only on the snap version. Snap is not officially supported, we're not the team making them, unlike appimages that are made by Krita team. So maybe something wrong happened with packaging, and for that we need to know whether this crash happens on appimage too.
It works fine with AppImage. New downstream bug https://bugs.launchpad.net/ubuntu/+source/krita/+bug/2064494