Bug 463858

Summary: Pasting into a vector layer when plain text is in the clipboard causes a crash
Product: [Applications] krita Reporter: paleh <paleh21669>
Component: Layers/VectorAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: halla, unkemptneon
Priority: NOR    
Version First Reported In: 5.1.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description paleh 2023-01-05 01:24:06 UTC
SUMMARY

STEPS TO REPRODUCE
1. Copy some plain text into the clipboard, e.g. "123"
2. Create a new vector layer 
2. Paste by pressing Ctrl+V

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 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
- Maybe this bug is related to https://bugs.kde.org/show_bug.cgi?id=463113
Comment 1 Halla Rempt 2023-01-05 09:52:32 UTC

*** This bug has been marked as a duplicate of bug 463113 ***
Comment 2 Halla Rempt 2023-01-12 08:53:44 UTC
*** Bug 464182 has been marked as a duplicate of this bug. ***