Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory not released after getting last algorithm from history in Python #12427

Closed
martyngigg opened this issue Apr 20, 2015 · 1 comment
Closed
Labels
Framework Issues and pull requests related to components in the Framework High Priority An issue or pull request that if not addressed is severe enough to postponse a release.
Milestone

Comments

@martyngigg
Copy link
Member

This was first noticed on SANS when running the add files section of the ISIS SANS scripts.

The following script will reproduce the problem:

#!python
def foo():
    wsName= 'AddFilesSumTempory'
    filename = "SANS2D00028546.nxs"
    outWs = Load(Filename=filename,OutputWorkspace=wsName)
    props = outWs.getHistory().lastAlgorithm()
    LoadEventNexus(Filename=filename, OutputWorkspace='AddFilesSumTempory', LoadMonitors=True)

    DeleteWorkspace('AddFilesSumTempory')
    DeleteWorkspace('AddFilesSumTempory_monitors')

for i in range(1):
    foo()

After execution you should see that no workspaces are left but checking the memory usage of the MantidPlot executable still shows a sizeable amount of memory being used. Note that this should be a generic problem and not limited to SANS files.

If you run "Clear All Memory" then the memory is returned as expected.

@martyngigg
Copy link
Member Author

This issue was originally trac ticket 11589

@martyngigg martyngigg added High Priority An issue or pull request that if not addressed is severe enough to postponse a release. Framework Issues and pull requests related to components in the Framework labels Jun 3, 2015
@martyngigg martyngigg added this to the Release 3.4 milestone Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues and pull requests related to components in the Framework High Priority An issue or pull request that if not addressed is severe enough to postponse a release.
Projects
None yet
Development

No branches or pull requests

1 participant