Crash on open if clippath contains clone of clippath (Wikimedia "Simple Globe.svg")
Migrated from https://bugs.launchpad.net/inkscape/+bug/1711024
From 2017-08-16
Summary:
D.L. wrote...
Inkscape crashes while I was trying to open an svg file (included as an attachment.) This is what was on the terminal:
inkscape [DATE] [TIME] inkscape[59003:1575005] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. ** (inkscape:59003): WARNING **: 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) Abort trap: 6
It crashes everytime I try to open it. Previewing it in the "Open" dialog will also cause it to crash.
Steps to replicate
- Open Simple_Globe.svg in Inkscape
What happened?
- Crash
** (inkscape:59003): WARNING **: 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)
What should have happened?
- No crash
Additional Comments:
Alvin Penner (apenner) wrote on 2017-08-16:
running Windows 10, Inkscape 0.92.2 (5c3e80d, 2017-08-06) (32 bit .exe)
I was not able to reproduce the crash. However I got about 9 warnings saying:
** (inkscape.exe:9640): WARNING **: Tried to create svg:use from invalid object
also when I tried to edit the file I got a warning saying:
Warning: limit of 200 snap sources reached, some will be ignored
Migrator's Notes:
- Can replicate on versions and systems listed below
- Simple_Globe.svg renders correctly in Firefox 81.0, Safari 13.1.2 and Chromium 81.0.4044.92
- File validates correctly with one minor warning with the W3C Validator
- On all systems, either via the
Open…
dialog or via the CLI, this files crashes Inkscape hard!- Using
Open…
just selecting the file crashes Inkscape.
- Using
Selected Reading:
inkscape_2020-09-19-102821.zip
Version Info:
Original issue:
- Inkscape Version: 0.92.2 5c3e80d
- Operating System: macOS Sierra 10.12, brew package
Tested on:
- Inkscape Version: 1.1-dev (b39e6d56, 2020-09-19)/1.0.1(1.0.1+r73+1)
- Operating System: macOS 10.13.6 (17G12034)/Ubuntu 18.04.5 LTS