Crash copying text with invalid shape-inside reference

Summary:

Inkscape suddenly close when copying all elements in the attached file by Ctrl+c.

Steps to reproduce:

  • open Inkscape
  • open elements.svg
  • select text in the top left corner (it has a shape-inside refers to a non-existant element)
  • press Ctrl+c

What happened?

Inkscape encounters an internal error and close

What should have happened?

Copy the elements in the file

Observation

I have these messages when I run the program:

(org.inkscape.Inkscape:73888): WARNING **: 15:13:54.569: Fonts dir '/home/fabricio/.config/inkscape/fonts' does not exist and will be ignored.
(org.inkscape.Inkscape:73888): CRITICAL **: 15:13:55.290: check_range: assertion 'spell->priv->speller != NULL' failed
FontLister::get_best_style_match(): can't find family: Abyssinica SIL
FontSelector::update_font: Couldn't find row for font-family: Abyssinica SIL
FontSelector::update_font: Couldn't find row for font-family: Abyssinica SIL

Sample attachments:

elements.svg

Version Info:

- Inkscape Version: Inkscape 1.0.1 (1.0.1+r73) Pango version: 1.44.7
- Operating System: KDE neon 5.20
- KDE Plasma Version: 5.20.0
- KDE Frameworks Version: 5.75.0
- Qt Version: 5.15.0
- Kernel Version: 5.4.0-51-generic
- OS Type: 64-bit
- Processors: 4 × Intel® Core™ i7-5500U CPU @ 2.40GHz
- Memory: 15,6 GiB of RAM
- Graphics Processor: Mesa Intel® HD Graphics 5500
Edited by Nathan Lee