MSlice produces alot of Mantid hidden __MSL<name> workspaces in the Mantid ADS in order to allow the history tracking facility for the script generation to work. In principle when the MSlice workspace is deleted or goes out of scope, the corresponding Mantid .raw_ws should be removed from the ADS and then garbage collected by Python. This does not seem to happen which means that a lot of these workspaces accumulate. Over a long session (during an experiment) eventually there were enough of these orphaned ADS hidden workspaces to cause the VM to (nearly) run out of memory.
To Reproduce
Load a workspace and go to the "Cut" tab. Put in any value for the cut parameters and click "Plot".
Click "Plot" again, and again, for several times.
Check the "MDHisto" tab that several cut workspaces have been created with _(n) suffixes where n is an increasing index.
Delete all the workspaces in the "MDHisto" tab.
Go to Mantid Workbench and in the "Settings" menu, check "Show Invisible Workspaces".
Verify that all the hidden workspaces are still in the ADS.
Expected behavior
Workspaces deleted from MSlice should also have their backing Mantid .raw_ws removed from the ADS so they can be garbage collected by Python.
Screenshots
N/A
MSlice Version (please complete the following information):
Describe the bug
MSlice produces alot of Mantid hidden
__MSL<name>
workspaces in the Mantid ADS in order to allow the history tracking facility for the script generation to work. In principle when the MSlice workspace is deleted or goes out of scope, the corresponding Mantid.raw_ws
should be removed from the ADS and then garbage collected by Python. This does not seem to happen which means that a lot of these workspaces accumulate. Over a long session (during an experiment) eventually there were enough of these orphaned ADS hidden workspaces to cause the VM to (nearly) run out of memory.To Reproduce
_(n)
suffixes wheren
is an increasing index.Expected behavior
Workspaces deleted from MSlice should also have their backing Mantid
.raw_ws
removed from the ADS so they can be garbage collected by Python.Screenshots
N/A
MSlice Version (please complete the following information):
2.6.0
from Mantid 6.7Additional context
N/A