Crash on closing document after editing clip of symbol
Found while testing #3607 (closed), still happens after !4567 (merged)
Steps to reproduce:
- open Inkscape
- create two overlapping rectangles (optional: convert to path)
- set clip
- open symbols dialog and make the object a symbol.
- duplicate object
- convert the duplicate to path
- ungroup
- switch to node tool
- show clipping (option in toolbar) and edit the clip a bit
- close document
What happened?
- Crash
- Under ASAN I get the following report: asan_heap-use-after-free.txt
Workaround: close symbols dialog before closing document or close the window instead.
What should have happened?
- no crash
Version info
- Inkscape 1.3-dev (3c2958b9, 2022-07-09) Linux Mint 20
- Inkscape 1.2 (d12ee24c, 2022-07-10) Linux Mint 20
- Inkscape 1.3-dev (d0396f5b, 2022-07-03, custom) ASAN build, Linux Mint 20
- Not in Inkscape 1.1.2 (ccedf6bf22, 2022-02-24)
Introduced in 309b4720
commit 309b4720f1ed7bbb32163b84b32393d8824220c6
Author: Thomas Holder <thomas@thomas-holder.de>
Date: Sun Jan 30 07:55:24 2022 +0100
Fix symbols dialog thumbnails with references
E.g. symbols which use:
- Gradients
- Style classes
- Clones
Fixes https://gitlab.com/inkscape/inkscape/-/issues/989
Edited by Nathan Lee