Crashes when SVG has a 'use' element linked to a 'stop' element
Steps to reproduce:
inkscape test-ink.svg
What happened?
Emergency save activated!
(inkscape:4554): GLib-CRITICAL **: 18:59:38.249: g_path_get_dirname: assertion 'file_name != NULL' failed
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
Segmentation fault (core dumped)
or
** (inkscape:29807): WARNING **: 19:06:14.836: Tried to create svg:use from invalid object
Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
**
ERROR:sp-namedview.cpp:1080:SPNamedView* sp_document_namedview(SPDocument*, const gchar*): assertion failed: (nv != NULL)
Inkscape Version and Operating System:
- Inkscape Version: 0.92.2 2405546, 1.0alpha
- Operating System: Linux
Test file
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="100" width="100">
<linearGradient>
<stop id="stop1"/>
</linearGradient>
<use xlink:href="#stop1"/>
</svg>
Edited by Evgeniy Reizner