Mastodon may freeze with overlay visibility track of focused vertex
Closed this issue · 7 comments
Steps to reproduce
- 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
- Open BDV
- Track a few spots using
a
button in the BDV - 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.
- Stop moving the mouse
- Use button
v
to set Overlay visibility to Track of focused vertex - Press button
a
- Mastodon is now "Frozen", i.e. Menus cannot be accessed anymore. Even Fiji cannot be closed properly.
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 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.
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
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.
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.No this is the right fix for this bug.