Open patudom opened 1 month ago
@Carifio24, let us know if you have ideas on how to track this down.
Possible culprit - we noticed that the state of the zoom in tool button got out of sync with the state of the tool itself. The zoom button was in the "on" state, but the vertical line was in measurement mode rather than zoom mode.
so @Carifio24 @patudom A little more info on what is happening here. Something is preventing on_selection
from running in the tool.
A normal call sequence looks like
PlotlyHZoomMode.activate
PlotlySelectionMode.activate
PlotlyDragMode.activate
PlotlySelectionMode.on_selection
WavelengthZoom._on_selection
PlotlyHZoomMode._on_selection
PlotlySelectionMode.deactivate
PlotlyDragMode.deactivate
but instead what happens when it doesn't work is
PlotlyHZoomMode.activate
PlotlySelectionMode.activate
PlotlyDragMode.activate
I am not sure why, but this is the furthest I have gotten on this problem so far. I generated these by adding a print statement to all of the those Plotly tools.
There is no error emitted for me when it breaks.
On PR #604: this is not consistently reproducible, but 3 times now, I've gotten my dot plot into a state where the zoom in gets stuck. This tends to happen after I've been using the vertical marker line in the spectrum viewer that draws the corresponding line in the dot plot viewer. Here is a screenshot of what it looks like.
(The dotted gray line shows the zoom in range specified).
Terminal errors: