Resize Page to Selection Causes Crash if xml:space=preserve in root node and user enabled Check attributes and style properties on Editing
Summary:
Consistent crash when selecting Resize Page to Selection option in certain files.
I'm not sure if this is the sole cause of the crash, but when I take an example SVG that DOES cause the crash, and run it through SVGO (SVG Minimizer) even with no options enabled (which basically just removes the pretty printing), the crash doesn't occur... and then when I run the corrected file through an XML pretty printer, the crash occurs consistently again... So not sure pretty printing is the only cause of the crash but it definitely seem to be one thing that triggers it...
Have attached one that crashes consistently as well as the one run through SVGO that does not crash and the trace.
I do see an open issue #1658 (closed) however this one is on a Mac (vs mine on PC) and that was on 1.0 so unclear if it's related...
Steps to reproduce:
- open Inkscape
- Select design
- Go in Edit menu and select Resize Page to Selection
What happened?
It pauses for about 500ms and then immediately crashes with no message..
What should have happened?
It not crash
inkscape_backtrace.txtinkscape_backtrace.txt
Version Info:
- Inkscape Version: 1.1-alpha (1eb8836, 2021-03-09)
- Operating System: Windows 10 Pro
- Operating System version: 20H2 19042.804