Bug 426914

Summary: Crash when dragging global selection mask onto another layer
Product: [Applications] krita Reporter: Anna Medonosova <anna.medonosova>
Component: Tools/SelectionAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ahab.greybeard, dimula73
Priority: NOR Keywords: regression
Version: 4.4.0-beta1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: backtrace of the crash

Description Anna Medonosova 2020-09-23 20:44:29 UTC
Created attachment 131890 [details]
backtrace of the crash

SUMMARY
When the global selection mask is dragged onto another layer in the Layers docker, Krita crashes. In 4.3, the same action converted the global selection into a local selection for the target layer.

STEPS TO REPRODUCE
1. Check "Show global selection mask" in the Select menu.
2. Make a selection.
3. In the Layers docker, drag the global selection mask onto another layer.

OBSERVED RESULT
Segfault.

EXPECTED RESULT
The global selection is converted into local selection mask.
Comment 1 Ahab Greybeard 2020-09-24 15:45:58 UTC
I can confirm this for the Sep23 4.4.1 alpha (git 604b2ce) appimage.
No crash with the 4.3.0 appimage, as noted above.

If the global selection mask is deactivated (circle icon at the right of the layer) before being dragged onto a  layer, it can be placed on that layer and then becomes a local selection mask that can then be activated with no problem.

Note the similarity to https://bugs.kde.org/show_bug.cgi?id=426816
which has recently had a commit to fix.
Comment 2 Dmitry Kazakov 2020-09-24 16:08:46 UTC
*** This bug has been marked as a duplicate of bug 426816 ***