Bug 461249 - Pasting clipboard containing empty layer crashes Krita
Summary: Pasting clipboard containing empty layer crashes Krita
Status: RESOLVED DUPLICATE of bug 459904
Alias: None
Product: krita
Classification: Applications
Component: Tools/Reference Images (show other bugs)
Version: 5.1.1
Platform: Mint (Ubuntu based) Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-31 14:25 UTC by Simon Hrbek
Modified: 2022-10-31 15:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Hrbek 2022-10-31 14:25:58 UTC
SUMMARY
Krita crashes when attempting to paste a reference image if the clipboard had been copied from an empty layer.
I'm a tech idiot and couldn't figure out a way to get a backtrace.

STEPS TO REPRODUCE
1. On an invisible paint layer, make a selection and copy the selection to clipboard
2. Select the Reference images tool, and under tool options click Paste reference image from clipboard

OBSERVED RESULT
Krita pauses for a while and crashes.

EXPECTED RESULT
Krita pastes contents of the selection as if the layer had been visible, or at least doesn't crash.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux Mint 20.3 Cinnamon, Cinnamon ver. 5.2.7
Comment 1 Halla Rempt 2022-10-31 14:35:13 UTC
Can you please test with the appimage? I cannot reprocude a crash with 5.1.1 or master; instead I get a warning "could not create reference image from clipboard"
Comment 2 Halla Rempt 2022-10-31 15:12:05 UTC
*** This bug has been marked as a duplicate of bug 459904 ***