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

Improve deletion of workspaces that are in the ADS #1045

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

SilkeSchomann
Copy link
Collaborator

Description of work:
Deleting a workspace within MSlice that is also in the ADS caused a crash in Mantid. The reason was that deleting the workspace in MSlice updated the ADS and, as a result, the ADS triggered a deletion request for this workspace in MSlice. This request then failed as the workspace was already deleted within MSlice. To avoid this situation, MSlice does not attempt to delete non-existing workspaces anymore. In addition, all corresponding hidden workspaces are now deleted from the ADS as well.

To test:

Follow the instructions on the original issue.

Fixes #1044.

Copy link
Contributor

@GuiMacielPereira GuiMacielPereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleting a workspace in the MD Histo tab no longer crashes Mantid 👍 .

The only thing I noticed is that if I follow the same steps but click rename instead of delete, then the workspace in the ADS is not correctly renamed, but I think this can go in a different PR

@SilkeSchomann SilkeSchomann merged commit 6d8d676 into main Jan 10, 2025
2 checks passed
@SilkeSchomann SilkeSchomann deleted the 1044_md_histo_delete_problem branch January 10, 2025 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

Mantid crash when deleting MD Histo workspace
2 participants