Crash during creation of autoflowed SVG2 text
Steps to reproduce:
- open Inkscape (master) with default preferences
- Use the Text tool
- Drag to create autoflowed text
- Either type some text or repeat the previous step multiple times (Edit: not sure this step is necessary)
What happened?
Crash (note, no crash modifying an existing autoflowed text).
Looking at the backtrace when typing some text: https://gitlab.com/inkscape/inkscape/uploads/c1da8701e222caf5f05eb03f5b238010/inkscape-backtrace-recent-text.txt
Truncated backtrace:
Thread 1 "inkscape" received signal SIGSEGV, Segmentation fault.
0x00007fffef00c850 in sigc::slot_base::disconnect() ()
from /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0
(gdb) bt
#0 0x00007fffef00c850 in sigc::slot_base::disconnect() () at /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0
#1 0x00007ffff6c35275 in Inkscape::URIReference::_setObject(SPObject*) (this=this@entry=0x555558473d80, obj=obj@entry=0x0) at ../src/object/uri-references.cpp:229
#2 0x00007ffff6c35eda in Inkscape::URIReference::detach() (this=this@entry=0x555558473d80) at ../src/object/uri-references.cpp:214
#3 0x00007ffff72ba55d in SPIShapes::hrefs_clear() (this=this@entry=0x555555af2860) at ../src/style-internal.cpp:1295
#4 0x00007ffff72cb418 in SPStyle::clear() (this=this@entry=0x555555af2400) at ../src/style.cpp:538
#5 0x00007ffff72d1262 in SPStyle::read(SPObject*, Inkscape::XML::Node*) (this=this@entry=0x555555af2400, object=object@entry=0x555557642400, repr=0x55555660ec18) at ../src/style.cpp:573
#6 0x00007ffff72d140a in SPStyle::readFromObject(SPObject*) (this=0x555555af2400, object=object@entry=0x555557642400) at ../src/style.cpp:633
#7 0x00007ffff6c04733 in SPObject::set(SPAttributeEnum, char const*) (this=this@entry=0x555557642400, key=key@entry=SP_ATTR_STYLE, value=value@entry=0x5555565099c0 "font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect12);fill:#000000;fill-opacity:1;stroke:none") at ../src/object/sp-object.cpp:992
Inkscape Version and Operating System:
Occurs in Inkscape 1.1-dev (ca41866a83, 2020-03-08) debug build, Linux Mint 19.1 it was introduced in inkscape!1515 (merged) (by comparing appimages of that commit and previous commit)
Edited by Nathan Lee