Slicer crashes after multiple slicer.mmrlScene.Clear(0)

When processing numerous studies with a Clear(0) after each, I eventually get a fatal exception crash.

Work flow is define convenience functions in the python console, (load mrb, process, save, Clear, repeat).

Of course I could restart() rather than clear.

Is there something else that I can clear in the python console? I would like to keep my defined python functions and not restart due to the restart time. Of course I know that I could define the functions in .slicerrc.py and they would be there after restart.

If you can come up with specific steps to replicate the crash you should file a bug report. That would be the best for everyone.

If you just want to clear the text from the python console you can use slicer.app.pythonConsole().reset()

Yes, .slicerrc.py would be a good way to get your functions included at startup.

Regarding restart time that is a pain point we are actively working on, See: