Rotate and scale break layer mask when applied to layer
$ pacman -Q gimp
gimp 2.10.8-1
$ gimp --version
GNU Image Manipulation Program version 2.10.8
$ uname -srvm
Linux 4.19.2-arch1-1-ARCH #1 SMP PREEMPT Tue Nov 13 21:16:19 UTC 2018 x86_64
This was reported by a local user. I observed the behaviour and asked for a recipe to re-create it.
- Created a new image.
- Created a new layer filled with white.
- Drew a shape on the layer in black e.g. arrow shape.
- Added a layer mask initialised to greyscale copy of the layer.
- Made the layer, not the layer mask, active ('Edit Layer Mask' not ticked).
- Tools → Transform Tools → Rotate gives an odd result.
- I would expect the layer and the layer mask to remain aligned but the image displays with the layer mask in the wrong place.
- 'Mask to selection' shows the marching ants in the right place.
Am getting similar results with Tools → Transform Tools → Scale. The layer mask displays in the wrong place, mask to selection shows the marching ants in the right place.
- Saved the .xcf file.
- Quit gimp.
- Started gimp again.
- Opened the file.
- The layer mask is no longer there.
- Got the following errors on the TTY.
gimp: Gimp-Core-CRITICAL: gimp_layer_set_apply_mask: assertion 'layer->mask != NULL' failed
gimp: Gimp-Core-CRITICAL: gimp_layer_set_edit_mask: assertion 'layer->mask != NULL' failed
gimp: Gimp-Core-CRITICAL: gimp_layer_set_show_mask: assertion 'layer->mask != NULL' failed