Skip to content

crash on open if path has stroke-dasharray and is a single point (e.g. m 0,0)

Summary:

When importing a specific svg file, Inkscape crashes due to an assertion failure.

Steps to reproduce:

  • In the terminal: inkscape file.svg

What happened?

Inkscape crashes with the following message: inkscape: /usr/include/boost/optional/optional.hpp:1201: boost::optional<T>::pointer_type boost::optional<T>::operator->() [with T = Geom::Rect; boost::optional<T>::pointer_type = Geom::Rect*]: Assertion 'this->is_initialized()' failed. Abort

What should have happened?

The file should be loaded correctly like eog or gimp do.

Sample attachments:

file.svg (coming from a matplotlib figure): file.svg

Version Info:

- Inkscape Version: 1.0rc1 (09960d6f05, 2020-04-09)
- Operating System: Debian
- Operating System version: bullseye/sid
Edited by Nathan Lee
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information