Crash on closing Symbols dialog after closing document with filter to a clone of a symbol
Steps to reproduce:
- Create a rectangle
- Make it a symbol using Symbols dialog
- Add a filter, e.g. Filters > Distort > Chalk and Sponge
- Close document (ctrl+W)
- Close Symbols dialog
What happened?
- Symbol appears to have filter applied in the Symbols dialog
- crash inkscape_backtrace_symbols_close.txt
What should have happened?
- No crash, symbol dialog does not appear to have a filter applied
Version info
- Inkscape 1.3-dev (1d5f25f2, 2022-09-26) Linux Mint 20
Not in 1.2.x, bisection points to commit ef8d9e01
commit ef8d9e01fb41e6902e4b06c3e5d67a7da4e012c6
Author: PBS <pbs3141@gmail.com>
Date: Sun Jul 31 22:06:59 2022 +0900
Fix filter bboxes, updates and crashes
* Move responsbility for keeping filter renderers up to date from
DrawingItem::setStyle to SPFilter.
* Make NRFilter rendering const.
* Add SlotResolver, which keeps slots to up to date as primitives are
added and removed, and eliminates crashes from wrongly assuming parent
is a filter.
* Correctly emit modified on self, not parent for filter primitives.
* Avoid re-writing XML upon in2 attribute becoming invalid.
* Refactor funcnode, *light files.
* Fix missing bbox update when filter is edited. Remove previous mechan-
ism for doing this that only worked for the gaussian blur slider.