Crashing applying clip to a shape and raster image
Summary:
Applying a clipping mask with a rectangle or an ellipse over a PNG (linked or embed) results in a segmentation fault
Steps to reproduce:
- open Inkscape
- go to Preferences > Behavior > Clippaths and Masks
- change "Before Applying" to "Put every clipped/masked object in its own group"
- close Inkscape
- open the clip-test.svg in Inkscape
- select the circle and picture
- apply set clip
What happened?
It is displayed a pop-up message that says: "Inkscape has encountered an internal issue" and then crash.
inkscape --dbus-listen
** (org.inkscape.Inkscape:7409): WARNING **: 00:27:43.541: Attempting to translate an empty string in extension 'hardpixel.eu.generate_palette', which is not supported.
** (org.inkscape.Inkscape:7409): WARNING **: 00:27:43.541: Attempting to translate an empty string in extension 'hardpixel.eu.generate_palette', which is not supported.
** (org.inkscape.Inkscape:7409): WARNING **: 00:27:43.579: Failed to find resource file 'simplestyle.py'. Looked in:
/home/myuser/.config/inkscape/extensions/simplestyle.py
/usr/share/inkscape/extensions/simplestyle.py
** (org.inkscape.Inkscape:7409): WARNING **: 00:27:43.590: Failed to find resource file 'simplestyle.py'. Looked in:
/home/myuser/.config/inkscape/extensions/simplestyle.py
/usr/share/inkscape/extensions/simplestyle.py
** (org.inkscape.Inkscape:7409): WARNING **: 00:27:43.618: Fonts dir '/usr/share/inkscape/fonts' does not exist and will be ignored.
** (org.inkscape.Inkscape:7409): WARNING **: 00:27:43.618: Fonts dir '/home/myuser/.config/inkscape/fonts' does not exist and will be ignored.
(org.inkscape.Inkscape:7409): Gtk-CRITICAL **: 00:27:44.786: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GdlSwitcher
[ MANY OF THESE...]
(org.inkscape.Inkscape:7409): Gtk-CRITICAL **: 00:27:56.517: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GdlSwitcher
Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at https://inkscape.org/report
with a detailed description of the steps leading to the crash, so we can fix it.
(org.inkscape.Inkscape:7409): Gtk-CRITICAL **: 00:28:04.094: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GdlSwitcher
[ MANY OF THESE...]
(org.inkscape.Inkscape:7409): Gtk-CRITICAL **: 00:28:04.482: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GdlSwitcher
Segmentation fault
Backtrace from comments: inkscape-backtrace-clip-image.txt
What should have happened?
Applying the clipping mask without crashing.
Sample attachments:
Backtrace from comments: inkscape-backtrace-clip-image.txt
Preferences file: preferences.xml.old2
Version Info:
Inkscape 1.0.1 (3bc2e813f5, 2020-09-07)
Pango version: 1.46.2
Distributor ID: Devuan
Description: Devuan GNU/Linux 4 (chimaera/ceres)
Release: testing/unstable
Codename: n/a