https://bugs.kde.org/show_bug.cgi?id=463113

            Bug ID: 463113
           Summary: Pasting as reference when plain text is in the
                    clipboard causes a crash
    Classification: Applications
           Product: krita
           Version: 5.1.4
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: Tools/Reference Images
          Assignee: krita-bugs-n...@kde.org
          Reporter: paleh21...@proton.me
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to