Bug 490995 - Copying a layer twice to a second document crashes Krita
Summary: Copying a layer twice to a second document crashes Krita
Status: RESOLVED DUPLICATE of bug 490636
Alias: None
Product: krita
Classification: Applications
Component: Layer Stack (show other bugs)
Version: git master (please specify the git hash!)
Platform: Kubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-29 19:28 UTC by Ralek Kolemios
Modified: 2024-07-30 01:02 UTC (History)
0 users

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 Ralek Kolemios 2024-07-29 19:28:44 UTC
If you copy and paste a layer twice into a new document, Krita immediately crashes with this in the log:

SAFE ASSERT (krita): "!nodes.isEmpty()" in file /builds/graphics/krita/libs/image/kis_layer_utils.cpp, line 1624
Segmentation fault (core dumped)

To reproduce:
- Create a document
- Create a new layer of any type, or use the default background layer
- Copy the layer
- Paste it into a second new document
- Delete the new pasted layer
- In the original document, copy the same layer again
- Paste it in the second document again
- Krita crashes to desktop

Weird things of note:
- The pasted layer must be deleted in between pastes or it won't crash
- It crashes for most (all?) layer types

0e92a775c0
Comment 1 Ralek Kolemios 2024-07-30 01:02:35 UTC

*** This bug has been marked as a duplicate of bug 490636 ***