Adding a key stroke that has 0 opacity and then updating the colorize mask will sometimes cause Krita to exit with the following assertion: "m_mainArea.contains(m_bLabelArea)" in file src/libs/image/lazybrush/kis_lazy_fill_graph.h, line 360 I am unable to reliably repeat this using any arbitrary image, but it always happens with lazybrush_assert_with0opacity.kra for me. lazybrush_assert_before0opacity.kra is the same file, but without the 0 opacity stroke. Reproducible: Sometimes Steps to Reproduce: Using lazybrush_assert_with0opacity.kra 1. Update colorize mask Using lazybrush_assert_before0opacity.kra 1. Add a stroke to the colorize mask using 0 opacity 2. Update colorize mask
Created attachment 101194 [details] Document with 0 opacity stroke
Created attachment 101195 [details] Document without 0 opacity stroke
Git commit 87bb1079c1aa68ed4334f1618161b4d9c1a4887d by Dmitry Kazakov. Committed on 21/09/2016 at 14:03. Pushed by dkazakov into branch 'master'. Fix crash in Colorize Mask when painted with 0 opacity Well, there is no reason to try to fill empty scribbles Fixes T3811 M +12 -0 libs/image/lazybrush/kis_multiway_cut.cpp http://commits.kde.org/krita/87bb1079c1aa68ed4334f1618161b4d9c1a4887d