After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 778895 - Segment Fault > Layer with layer mask + blend mode (except Normal)
Segment Fault > Layer with layer mask + blend mode (except Normal)
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
git master
Other All
: Normal normal
: 2.10
Assigned To: GIMP Bugs
GIMP Bugs
: 778876 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-02-19 00:18 UTC by jose americo gobbo
Modified: 2017-02-19 18:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GIMP archive used to test the segment fault steps (281.35 KB, image/x-xcf)
2017-02-19 00:18 UTC, jose americo gobbo
Details
gdb output (2.92 KB, text/plain)
2017-02-19 01:02 UTC, jose americo gobbo
Details
gdb terminal output (2.92 KB, text/plain)
2017-02-19 01:05 UTC, jose americo gobbo
Details

Description jose americo gobbo 2017-02-19 00:18:45 UTC
Created attachment 346162 [details]
GIMP archive used to test the segment fault steps

When you try paint over a layer with a layer mask, and with a blend mode different of the Normal... this is causing segment fault always.

---
The steps are:
1) create a document with 2 layers (transparent on top and background on bottom);
2) on top layer add a layer mask;
3) change the the blend mode of the top layer to any blend different of the Normal;
4) choose a paint tool and try paint over top layer (with layer mask).
5) crash with segment fault.

---
Notes: 
a) if you disable the layer mask the segment fault don't happens.
b) I have tested with full opacity and full transparent, the behavior is the same.

---
My Terminal had this output:
jag@jagnome:/opt/gimp-default-master/bin$ ./gimp-2.9 
GEGL-Message: Module '/opt/gimp-default-master/lib/gegl-0.3/text.so' load error: /opt/gimp-default-master/lib/gegl-0.3/text.so: undefined symbol: pango_attr_foreground_alpha_new
This is a development version of GIMP.  Debug messages may appear here.

gimp_display_shell_profile_update
gimp_display_shell_profile_update
gimp_display_shell_profile_update
Missing fast-path babl conversion detected, Implementing missing babl fast paths
accelerates GEGL, GIMP and other software using babl, warnings are printed on
first occurance of formats used where a conversion has to be synthesized
programmatically by babl based on format description

*WARNING*: missing babl fast path(s) between formats "cairo-ARGB32" and "R'G'B'A u8"
magic match 9 on gimp-xcf-load
best magic match on gimp-xcf-load
gimp_display_shell_profile_update
src_profile: GIMP built-in sRGB
src_format:  R'G'B'A u8
dest_format: R'G'B'A u8
gimp_display_shell_profile_update
src_profile: GIMP built-in sRGB
src_format:  R'G'B'A u8
dest_format: R'G'B'A u8
gimp_display_shell_profile_update
src_profile: GIMP built-in sRGB
src_format:  R'G'B'A u8
dest_format: R'G'B'A u8

(script-fu:4714): LibGimpBase-WARNING **: script-fu: gimp_wire_read(): error
Segmentation fault (core dumped)

---
My DE is Gnome 3.10
Ubuntu Gnome 14.04.2
GIMP 2.9.5 Git Master - commit 608070f
Comment 1 jose americo gobbo 2017-02-19 01:02:15 UTC
Created attachment 346164 [details]
gdb output
Comment 2 jose americo gobbo 2017-02-19 01:05:00 UTC
Created attachment 346165 [details]
gdb terminal output
Comment 3 Ell 2017-02-19 01:28:50 UTC
Thanks for reporting.  Fixed in master:

commit f2ea9953163a024d6486260e4b268cda78a045cb
Author: Ell <ell_se@yahoo.com>
Date:   Sat Feb 18 20:23:35 2017 -0500

    app: fix infinite recursion when compositing unaligned buffers

 app/operations/layer-modes/gimpoperationlayermode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 4 Michael Schumacher 2017-02-19 18:45:15 UTC
*** Bug 778876 has been marked as a duplicate of this bug. ***