Crash when opening Inkscape and a Symbol's file has an Image saved as a symbol.
Steps to reproduce:
- save a small image as a symbol in a file that is stored in the User Symbols folder.
- leave the Symbols dialog open in the Dock
- open Inkscape
- try to open a document
What happened?
A New document window appears, then Inkscape crashes.
What should have happened?
It should have not crashed.
Other information:
I have taken a backtrace. I hope it helps. I had to split the file in 2 to attach it because it is more than 10mb.
I actually found out what the problem was:
I saved a small image (.png) as a symbol. So, when Inkscape was starting and reading the symbols, it crashed.
The same thing happened in version: Inkscape 1.1.2 (b8e25be8, 2022-02-05).
This is what made me realize that there must be something wrong with my setup (at first I thought that it was about some missing dependencies...). And as the only thing I had changed was the symbols file, then I went to look there to see if it could be the problem.
I wasn't aware that one can't use images in the symbols.
In fact, I don't see why one shouldn't be able to. It is true that it is not what SVG is about. But people might be in a hurry and not have time to redraw an image to SVG (and some might just not want to redraw it, as the result will be the same so it doesn't warrant the extra time spent redrawing it).
Anyway, I am leaving this open as an issue, because I can't see anywhere that one is not supposed to use images on symbols. If this is the case, then a check should be added to prevent images from being saved as symbols. If this is not the case, then there is a bug somewhere.
NOTE: I have re-edited the title of the issue as well as the comment to match my findings. I am leaving the backtrace files just in case they can be useful.
Inkscape Version and Operating System:
- Inkscape Version: Inkscape 1.2-alpha1 (9f4bea06, 2022-03-29, custom)
- Operating System: Windows 11
- Operating System version: ...