01-15-2018, 08:36 PM
A script (.scm) or a plugin (.py)? Btw when I write my Python scripts/plugin they often crash and yield the "undo stack in an invalid state" message, but this have never been an issue and I don't restart Gimp after that.