Overloading the Extension Live Preview Feature
Inkscape 1.1, Ubuntu 20.10
I am writing my own extension to apply effects over a range of objects.
I have found that once the number of objects gets to a high number, 100+ for example ( sometimes less )
Apply extension works correctly.
However 'Live Preview' causes an instant crash to the desktop.
#### Steps to Replicate
1. Open Inkscape
1. Draw 5 rectangles
1. Select all
1. Click on the Selection once to get to the skew/rotate handles
1. Move the transform/rotation center a bit
1. Select the Black and White extension
1. Click the Preview button
1. Click the Preview button again
#### What happened?
- Crash
- Backtrace from 1.2-dev: [inkscape_backtrace-extension-live-preview_ac43753055.txt](https://gitlab.com/inkscape/inbox/uploads/dd7d0267948a8f6c6ea8f49041320274/inkscape_backtrace-extension-live-preview_ac43753055.txt)
- Terminal output
```
inkscape
Shortcut::read: invalid verb: DialogSpellcheck
**
ERROR:./src/xml/simple-document.cpp:46:virtual Inkscape::XML::Event* Inkscape::XML::SimpleDocument::commitUndoable(): assertion failed: (_in_transaction)
Bail out! ERROR:./src/xml/simple-document.cpp:46:virtual Inkscape::XML::Event* Inkscape::XML::SimpleDocument::commitUndoable(): assertion failed: (_in_transaction)
Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at https://inkscape.org/report
with a detailed description of the steps leading to the crash, so we can fix it.
**
ERROR:./src/xml/simple-document.cpp:46:virtual Inkscape::XML::Event* Inkscape::XML::SimpleDocument::commitUndoable(): assertion failed: (_in_transaction)
Bail out! ERROR:./src/xml/simple-document.cpp:46:virtual Inkscape::XML::Event* Inkscape::XML::SimpleDocument::commitUndoable(): assertion failed: (_in_transaction)
Aborted (core dumped)
```
#### What should have happened?
- no crash
Sample Attachments: Backtrace: [inkscape_backtrace-extension-live-preview_ac43753055.txt](https://gitlab.com/inkscape/inbox/uploads/dd7d0267948a8f6c6ea8f49041320274/inkscape_backtrace-extension-live-preview_ac43753055.txt), file originally occurred with: [scraps.svg](https://gitlab.com/inkscape/inbox/uploads/f999a725230f7947144da3c848927ea5/scraps.svg)
#### Version info
- Inkscape 1.1, Ubuntu 20.10
- Inkscape 1.2-dev (ac43753055) Linux Mint 20
issue