Bug 465090

Summary: Pasting without anything in clipboard will result in crash
Product: [Applications] krita Reporter: haleeangel2
Component: * UnknownAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: dimula73, xnagytibor
Priority: NOR    
Version First Reported In: 5.1.5   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description haleeangel2 2023-01-31 20:31:02 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  Have a clear clipboard
2.  press ctrl + v to paste

OBSERVED RESULT
Program crashing

EXPECTED RESULT
Nothing to paste

SOFTWARE/OS VERSIONS
Windows: Windows 11
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
I had to restart my computer for some memory issues and i wanted to see if maybe my laptop remembered what was on my clipboard for funsies, and when I did the action to paste the program crashed. I repeated this 3 times and even updated the program to see if it was just a me thing, but sure enough on 5.05 it crashed
Comment 1 Nagy Tibor 2023-03-25 06:14:28 UTC
It's also reproducible on Linux.

ASSERT (krita): "!qimage.isNull()" in file ./libs/ui/kis_clipboard.cc, line 460
Comment 2 Dmitry Kazakov 2023-04-18 08:30:03 UTC
Hi, haleeangel2!

Thank you for the repost! It seems like the bug is now fixed in the upcoming Krita 5.2.x branch!