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

Mastodon may freeze with overlay visibility track of focused vertex #295

Closed
stefanhahmann opened this issue Mar 13, 2024 · 7 comments
Closed
Assignees
Labels

Comments

@stefanhahmann
Copy link
Collaborator

stefanhahmann commented Mar 13, 2024

Steps to reproduce

  1. Create a new Mastodon project using https://github.com/mastodon-sc/mastodon-example-data/blob/master/tgmm-mini/datasethdf5.xml and https://github.com/mastodon-sc/mastodon-example-data/blob/master/tgmm-mini/datasethdf5.h5
  2. Open BDV
  3. Track a few spots using a button in the BDV
  4. Ensure that last tracked spot is focused and highlighted (i.e. pink + solid line, cf. video below) and the mouse pointer is inside this spot.
  5. Stop moving the mouse
  6. Use button v to set Overlay visibility to Track of focused vertex
  7. Press button a
  8. Mastodon is now "Frozen", i.e. Menus cannot be accessed anymore. Even Fiji cannot be closed properly.

GIF 13 03 2024 17-59-21

@tinevez
Copy link
Contributor

tinevez commented Mar 14, 2024

I could not reproduce with beta-29 on Mac or on Windows.
Could you try with a 'fresh' Fiji? Or on another computer?

@stefanhahmann
Copy link
Collaborator Author

stefanhahmann commented Mar 14, 2024

I could not reproduce with beta-29 on Mac or on Windows. Could you try with a 'fresh' Fiji? Or on another computer?

I could reproduce the bug yesterday on three independent machine (2 windows, 1 ubuntu) with beta-29. I could just reproduce it again with a 'fresh' Fiji and beta-29. I added one more step to the steps to reproduce description to make the step description more precise.

@tinevez
Copy link
Contributor

tinevez commented Mar 15, 2024

I could reproduce the bug! Thanks for your accurate step description.
Apparently not moving the mouse is important to have the bug. This hints an issue with not having a focused vertex when the mode is selected. I tried to check that happened to the 'focus' using a TrackScheme window on the side.

My best guess would be that the crash is actually linked to NOT having a focused vertex, when the display mode 'Track of focused vertex' is selected.

I will check what happens when the visibility mode is changed in this case. A first suspect to interrogate would be:
https://github.com/mastodon-sc/mastodon/blob/master/src/main/java/org/mastodon/views/bdv/overlay/Visibilities.java#L329

@stefanhahmann
Copy link
Collaborator Author

stefanhahmann commented Mar 15, 2024

My best guess would be that the crash is actually linked to NOT having a focused vertex, when the display mode 'Track of focused vertex' is selected.

Yes, exactly. This is the reason, which causes the freeze / deadlock.

My PR (#295), which suppresses the problem feels more like a workaround than a real solution.

@stefanhahmann
Copy link
Collaborator Author

I will check what happens when the visibility mode is changed in this case. A first suspect to interrogate would be: https://github.com/mastodon-sc/mastodon/blob/master/src/main/java/org/mastodon/views/bdv/overlay/Visibilities.java#L329

I also have the impression that the line you mention in conjunction with

causes the problem.

@stefanhahmann
Copy link
Collaborator Author

@tinevez I noticed that you have merged #297 which was targeted to circumvent the bug described in this issue. I would suggest to close this issue, unless you are still up for a better solution to it?

@tinevez
Copy link
Contributor

tinevez commented Jun 4, 2024

No this is the right fix for this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants