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

Fix Colocalisation_Test window crash on multiple runs #73

Merged
merged 6 commits into from
Aug 27, 2024

Conversation

pvlaraia
Copy link
Contributor

@pvlaraia pvlaraia commented Sep 4, 2021

Summary:
If a script uses Colocalisation_Test, and closes the result window, subsequent attempts to run Colocalisation_Test will crash because the reference to the window will still be there, but the attempts to write to the window will crash because the window was closed. To verify, revert changes to Colocalisation_Test.java & run the new test case added - the 2nd attempt to run coloc in the unit test will fail.

The solution was to cleanup the window ref when a window is closed.

@pvlaraia
Copy link
Contributor Author

pvlaraia commented Oct 6, 2021

@ctrueden I see you've been involved in a lot of the most recent commits, is this something you could consider merging in?

@ctrueden
Copy link
Member

ctrueden commented Oct 6, 2021

@pvlaraia Thanks for the ping. I'll try to review and merge it this week.

@ctrueden ctrueden changed the title Title: Fix Colocalisation_Test window crash on multiple runs Fix Colocalisation_Test window crash on multiple runs Jul 11, 2022
ctrueden and others added 3 commits August 27, 2024 12:16
If a script uses Colocalisation_Test, and closes the result window,
subsequent attempts to run Colocalisation_Test will crash because the
reference to the window will still be there, but the attempts to write
to the window will crash because the window was closed. To verify,
revert changes to Colocalisation_Test.java & run the new test case added
- the 2nd attempt to run coloc will fail.

The solution was to cleanup the window ref when a window is closed.

Signed-off-by: Curtis Rueden <[email protected]>
@ctrueden ctrueden merged commit fc38813 into fiji:master Aug 27, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants