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
  2. Draw 5 rectangles
  3. Select all
  4. Click on the Selection once to get to the skew/rotate handles
  5. Move the transform/rotation center a bit
  6. Select the Black and White extension
  7. Click the Preview button
  8. Click the Preview button again

What happened?

 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, file originally occurred with: scraps.svg

Version info

  • Inkscape 1.1, Ubuntu 20.10
  • Inkscape 1.2-dev (ac43753055) Linux Mint 20
Edited by Nathan Lee