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

Opening visualization with space does not always work. #5223

Closed
wdanilo opened this issue Feb 5, 2023 · 13 comments · Fixed by #5624
Closed

Opening visualization with space does not always work. #5223

wdanilo opened this issue Feb 5, 2023 · 13 comments · Fixed by #5624
Assignees
Labels
--bug Type: bug p-low Low priority
Milestone

Comments

@wdanilo
Copy link
Member

wdanilo commented Feb 5, 2023

This task is automatically imported from the old Task Issue Board and it was originally created by Adam Obuchowicz.
Original issue is here.


https://discord.com/channels/401396655599124480/1064967872012615872

There is no reliable reproduction scenario, but here are some clues:

  • Sylwia reported, that she usually spots the issue when recording screens
  • I (Adam) reproduced the issue in browser when build with ide watch --skip-wasm-opt.
@wdanilo wdanilo added this to the Beta Release milestone Feb 6, 2023
@MichaelMauderer MichaelMauderer moved this to 🔧 In progress in Issues Board Feb 6, 2023
@MichaelMauderer MichaelMauderer self-assigned this Feb 6, 2023
@enso-bot
Copy link

enso-bot bot commented Feb 8, 2023

Michael Mauderer reports a new 🔴 DELAY for today (2023-02-08):

Summary: There is 2 days delay in implementation of the (#5223) task.
It will cause 0 days delay for the delivery of this weekly plan.

Delay Cause: Bug is caused by some interleaving events in the GUI controller, which are tricky to debug and fix.

Possible solutions: Write easier bugs.

@enso-bot
Copy link

enso-bot bot commented Feb 8, 2023

Michael Mauderer reports a new STANDUP for yesterday (2023-02-07):

Progress: Further investigated the cause of the visualization disappearing when opening it via keyboard. Found some suspicious events that seem to be related, and I am tracking those down right now. It seems It should be finished by 2023-02-09.

Next Day: Next day I will be working on the #5223 task. Continue investigating and find root cause of the bug.

@enso-bot
Copy link

enso-bot bot commented Feb 8, 2023

Michael Mauderer reports a new STANDUP for today (2023-02-08):

Progress: Found that there are racy updates to the graph. We attach the visualization and await some response from the backend. While waiting, we invalidate the graph in the GUI controller due to a metadata change. As we update the internal state, we notice an inconsistent visualization (the one that is waiting to be attached) and decide to detach it. Proper fix involves. Propagating the information about the attachment status to the right place, so we can take it into account when invalidating the graph. It should be finished by 2023-02-09.

Next Day: Next day I will be working on the #5223 task. Design and implement the fix.

@sylwiabr
Copy link
Member

sylwiabr commented Feb 9, 2023

This is much worse with newest (today) nightly - it happens almost every time @MichaelMauderer

@MichaelMauderer MichaelMauderer moved this from 🔧 Implementation to 👁️ Code review in Issues Board Feb 10, 2023
@enso-bot
Copy link

enso-bot bot commented Feb 10, 2023

Michael Mauderer reports a new 🔴 DELAY for yesterday (2023-02-09):

Summary: There is 1 days delay in implementation of the Opening visualization with space does not always work. (#5223) task.
It will cause 0 days delay for the delivery of this weekly plan.

Delay Cause: Bug is not caused by the issue I thought it was caused. More investigation needed.

Possible solutions: Write easier bugs.

@enso-bot
Copy link

enso-bot bot commented Feb 10, 2023

Michael Mauderer reports a new 🔴 DELAY for today (2023-02-10):

Summary: There is 1 days delay in implementation of the Opening visualization with space does not always work. (#5223) task.
It will cause 0 days delay for the delivery of this weekly plan.

Delay Cause: Bug is not caused by the issue I thought it was caused. More investigation needed.

Possible solutions: Write easier bugs.

@enso-bot
Copy link

enso-bot bot commented Feb 10, 2023

Michael Mauderer reports a new STANDUP for yesterday (2023-02-09):

Progress: Designed a fix that would allow the correct information about the status of the visualization state (awaiting attachment) and the node state (no visualization yet) to be considered during the synchronization of the graph state. Implemented and tested the fix to observe that this was not fixing the behavior. Continued investigation of what is going on. It should be finished by 2023-02-10.

Next Day: Next day I will be working on the #5223 task. Investigate why the fix is not working. Create a better fix.

@enso-bot
Copy link

enso-bot bot commented Feb 10, 2023

Michael Mauderer reports a new STANDUP for today (2023-02-10):

Progress: Upon further investigation found that the visualization state was modified just before the synchronization by another chain of FRP events: handling of showing the FRP preview. This caused the visualizations to be closed, as the handling was time sensitive, and when there was a delay due to dropped frames when opening the visualisation, then the events would cause the visualisation to be closed as a preview. Implemented a safeguard against this that looks at the number of frames that have passed in addition to the time that has passed. It should be finished by 2023-02-10.

Next Day: Next day I will be working on the #5223 task. Look at updating the improved component browser entry sorting.

@MichaelMauderer MichaelMauderer moved this from 👁️ Code review to 🌟 Q/A review in Issues Board Feb 16, 2023
@vitvakatu
Copy link
Contributor

QA: @vitvakatu

@MichaelMauderer MichaelMauderer moved this from 🌟 Q/A review to 🟢 Accepted in Issues Board Feb 17, 2023
@mergify mergify bot closed this as completed in #5624 Feb 17, 2023
mergify bot pushed a commit that referenced this issue Feb 17, 2023
Visualizations closing right after opening was caused by the GUI being unresponsive during loading of some visualizations. This caused the timer for measuring the time between space bar press and space bar release to be inflated. The delayed events triggered the "visualization preview mode”, thus closing the visualization has it seemed that the space bar was held down, even though the events just arrived with some delay.

The problem is mitigated by considering the number of frames that have passed between the space and down and the space bar up event, instead of just the wall clock time. If the number of frames is too low, this indicates that frames were dropped to the time is inflated.

Fixes #5223
@hubertp
Copy link
Collaborator

hubertp commented Feb 23, 2023

I noticed that first AttachVisualization operation always timeouts after startup. So I'm not sure this will fix all problems with visualization.

@MichaelMauderer
Copy link
Contributor

Do we know why they time out? Timeouts do sound like an issue on the engine side, though. Unless the IDE is making weird requests. In either case, we might want to file an issue and investigate.

@hubertp
Copy link
Collaborator

hubertp commented Feb 24, 2023

@MichaelMauderer Good point. If I can reproduce this consistently I will investigate (seems like it is happening less often).

@farmaazon
Copy link
Contributor

@hubertp see also #5745 I put there my reproduction scenario and a bit of investigation.

@farmaazon farmaazon moved this from 🟢 Accepted to 🗄️ Archived in Issues Board Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
--bug Type: bug p-low Low priority
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants