GNOME Bugzilla – Bug 648090
Possible failure of "Repeat Last" with filters using drawables as maps
Last modified: 2018-05-24 12:59:54 UTC
When the most recently executed plug-in is a filter requiring one or more drawables as maps, if you eliminate, after the execution of the plug-in, at least one of the drawables which was selected on its last settings, then the "Repeat Last" command will fail, by returning various error messages.
Here is a list of the filters affected by this bug:
under the section "Light and Shadow":
under the section "Combine":
under the section "Artistic":
"Van Gogh" (LIC)
under the section "Map":
Referring, for instance, to the "Warp" filter, the problem I have just reported can be reproduced by following these steps:
1) create a new image;
2) duplicate the layer named "Background", so as to get a second layer named "Background copy";
3) launch the "Warp" filter through 'Filters -> Map -> Warp...' ;
4) as a displacement map, select the "Background" layer in the drop-down list provided;
5) execute the filter;
6) remove the "Background" layer from the image;
7) run 'Filters -> Repeat "Warp"'.
As a result, several error messages will be displayed, some of which redirected to 'stderr'.
Unlike the afore-mentioned plug-ins, there is a filter that, while using drawables as maps too, however seems always to work properly when invoking it through the "Repeat Last" command, even in the specific case described above: it is the "Flame" filter (under the 'Render -> Nature' submenu), which is fitted with the "Colormap" option, allowing to exploit the colors of any drawable currently open in the GIMP session. So I think it might be useful to refer to the source code of this plug-in in order to devise a patch capable to fix this bug, which involves all the other filters of the similar kind.
That needs to be fixed plug-in by plug-in by checking the last used
drawable IDs for validity.
-- GitLab Migration Automatic Message --
This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/366.