Bug 407378

Summary: Krita segfaults when "Select Opaque" is used.
Product: [Applications] krita Reporter: Brendan <abcd_z>
Component: Tools/SelectionAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Brendan 2019-05-10 06:28:30 UTC
Linux Appimage nightly build #474, git hash c000999

STEPS TO REPRODUCE
1. Open a new file
2. Paint something on the top layer
3. Select -> Select Opaque -> any of the Select Opaque options (Replace), (Add), (Subtract) or (Intersect).

OBSERVED RESULT
Krita crashes, closing itself completely.

ADDITIONAL INFORMATION

When opened from the console, the following text displays right before the crash: 

SAFE ASSERT (krita): "allowAsChild(newNode)" in file /home/appimage/workspace/Krita_Nightly_Appimage_Build/krita/libs/image/kis_node.cpp, line 499
SAFE ASSERT (krita): "m_d->rootLayer->selectionMask()" in file /home/appimage/workspace/Krita_Nightly_Appimage_Build/krita/libs/image/kis_image.cc, line 487
Segmentation fault (core dumped)
Comment 1 Halla Rempt 2019-05-10 06:29:34 UTC
You're the third to report this, and yes, for a brief moment we had a commit that caused the problem, but it was already reverted last night.