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

Catch unhandled exceptions #1047

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Catch unhandled exceptions #1047

merged 1 commit into from
Jan 27, 2025

Conversation

SilkeSchomann
Copy link
Collaborator

Description of work:
When testing the new ADS observer, unreliable unhandled exceptions occurred when following testing instructions in https://developer.mantidproject.org/Testing/Direct/MSliceTestGuide.html#interaction-with-ads. This PR catches these exceptions to avoid crashes.

To test:

Replace the MSlice version in the current Mantid nightly and follow the instructions in the issue below.

Fixes #38675

(Since this is in a different repo, we will have to manually close this Mantid issue.)

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.

Code is straight forward and I believe this fixes the problem.
I spent quite some time (20-30 minutes) trying different combinations of renaming and deleting both from the ADS and from MSlice, and didn't encounter any crash.

@SilkeSchomann SilkeSchomann merged commit 29af7b2 into main Jan 27, 2025
2 checks passed
@SilkeSchomann SilkeSchomann deleted the catch_unhandled_exception branch January 27, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants