Bug#906658: gimp-gmic: Segmentation fault when attempting to apply filter
When trying to apply a gmic filter to a JPG, a message box appears with
"GIMP Message - Plug-in crashed: "gmic_gimp" (/usr/lib/gimp/2.0/plug-ins/gmic_gimp)
The dying plug-in may have messed up GIMP's internal state. You may want to
save your images and restart GIMP to be on the safe side.
Launching gimp with --verbose, I can see that the message is:
Upon opening the JPG file, I am electing to Keep the embedded colour profile
(sRGB), however the same crash occurs when electing to Convert to the built-in
When first attempting use of a filter, clicking on the sublist having popped
out the first level of filters, e.g. Film emulation -> B&W Films. Clicking on
B&W Films causes the crash. Subsequent attempts to do the same thing result in
a crash at the earlier stage, simply trying to launch G'MIC from the Filters
Kernel: Linux 4.17.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages gimp-gmic depends on:
ii gimp 2.10.2-1
ii libatk1.0-0 2.28.1-1
ii libbabl-0.1-0 0.1.54-1
ii libc6 2.27-5
ii libcairo2 1.15.10-3
ii libcurl4 7.61.0-1
ii libfftw3-double3 3.3.8-1
ii libfontconfig1 2.13.0-5
ii libfreetype6 2.8.1-2
ii libfribidi0 1.0.5-1
ii libgcc1 1:8.2.0-4
ii libgdk-pixbuf2.0-0 2.36.12-1
ii libgegl-0.4-0 0.4.6-1
ii libgimp2.0 2.10.2-1
ii libglib2.0-0 2.56.1-2
ii libgomp1 8.2.0-4
ii libgtk2.0-0 2.24.32-2
ii libjson-glib-1.0-0 1.4.2-4
ii libpango-1.0-0 1.42.1-2
ii libpangocairo-1.0-0 1.42.1-2
ii libpangoft2-1.0-0 1.42.1-2
ii libpng16-16 1.6.34-2
ii libstdc++6 8.2.0-4
ii libx11-6 2:1.6.5-1
ii zlib1g 1:1.2.11.dfsg-1
gimp-gmic recommends no packages.
Versions of packages gimp-gmic suggests:
pn gmic <none>
Variable s_blendmode contains 0x17 strings like "alpha", "dissolve", "behind"...
Variable blendmode is retrieved by gimp_layer_get_mode and looks like it has a
value of GIMP_LAYER_MODE_NORMAL == 0x1c.
Therefore memory after s_blendmode is accessed.
It looks like gimp-gmic and libgimp2.0 disagree on the layer mode constants.
Possibly gimp-gmic expects GIMP_LAYER_MODE_NORMAL_LEGACY.
libgimp2.0 returns GIMP_LAYER_MODE_NORMAL.
> "GIMP Message - Plug-in crashed: "gmic_gimp"
> (/usr/lib/gimp/2.0/plug-ins/gmic_gimp) The dying plug-in may have messed
> up GIMP's internal state. You may want to
> save your images and restart GIMP to be on the safe side.
wild guess, you are using the recent gimp version with gmic that was not
built for it, maybe even using libgimp from the old version.
Please update to the current version from unstable and see if it works