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.

ERROR:/build/inkscape-pqokqO/inkscape-1.1+202105261518+ce6663b3b7ubuntu20.10.1/src/xml/simple-document.cpp:46:virtual Inkscape::XML::Event* Inkscape::XML::SimpleDocument::commitUndoable(): assertion failed: (_in_transaction) Bail out! ERROR:/build/inkscape-pqokqO/inkscape-1.1+202105261518+ce6663b3b7ubuntu20.10.1/src/xml/simple-document.cpp:46:virtual Inkscape::XML::Event* Inkscape::XML::SimpleDocument::commitUndoable(): assertion failed: (_in_transaction) Aborted (core dumped)