SUMMARY STEPS TO REPRODUCE 1. Copy some plain text into the clipboard, e.g. "123" 2. In Krita switch to reference tool, right click and paste (or press Ctrl+Shift+R) OBSERVED RESULT Krita crashes EXPECTED RESULT Pasting a non-image has no effect and Krita doesn't crash SOFTWARE/OS VERSIONS Linux: Ubuntu 22.04.1 LTS Qt Version: 5.12.12 ADDITIONAL INFORMATION -The issue exists in 5.1.3 as well -I discovered it when I was working with selections holding my fingers ready to click Ctrl+Shift+A (deselect) and Ctrl+R (rect. selection tool) and accidentally pressed Ctrl+Shift+R, so, despite the nonsensical nature of pasting text as reference, other users are somewhat likely to encounter this crash too -The last line of the bug report is: ASSERT (krita): "!qimage.isNull()" in file /home/appimage/workspace/Krita_Release_Appimage_Build/krita/libs/ui/kis_clipboard.cc, line 460
I can confirm this on Fedora 37 with latest nightly build. I encountered it day before yesterday when I was pasting an image as reference with the short-cut, but I didn't understand what happened now I know why it crashed I was also copy pasting lot of text at the time
This could potentially be related to https://bugs.kde.org/show_bug.cgi?id=463858
*** Bug 463858 has been marked as a duplicate of this bug. ***
I cannot reproduce this with my own build from master or with the appimage. It looks like these distributions build Qt and Krita with asserts enabled, which, of course, should never be done for production builds.
5.15 TEST
I cannot reproduce either with the Krita Version: 5.2.0-prealpha (git 5c98a72) Appimage with Qt 5.15.7, nor my local KDE Neon based dev build, so I am afraid Halla's correct. Not sure what we can do here...
I cannot reproduce this bug in 5.1.5 or 5.2.0-prealpha (git c96fb969f8) Qt Version (compiled): 5.15.7 Version (loaded): 5.15.7
I think the bug got fixed in the meantime. I also cannot reproduce it neither on Windows, nor on Linux :)