-
Notifications
You must be signed in to change notification settings - Fork 323
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
Some Viz Calculations Being Dropped #11882
Comments
I can't seem to reproduce that problem. I would need to see it live, I'm afraid. Also, the exchanges between GUI and LS would be much appreciated. |
I think I got it now and also got a bit more logs.
|
Hubert Plociniczak reports a new STANDUP for the provided date (2024-12-17): Progress: Investigating vis issues, can't seem to reproduce the main problem but created #11896 for a related issue. Continued doing small tweaks to native image - needs testing with electron. It should be finished by 2024-12-19. Next Day: Next day I will be working on the #11896 task. Continue investigating the issue |
Just to prove my point, I can see execution of visualizations being done once
is being reported in the logs. Note that: |
Another important note: |
Hubert Plociniczak reports a new STANDUP for the provided date (2024-12-20): Progress: Back to investigating slow visualizations after fixing #11896. Definitely seeing odd behavior when reading large files. Trying to deploy self-hosted runners for Bazel integration but blocked by permissions problem. It should be finished by 2024-12-23. Next Day: Next day I will be working on the #11882 task. Continue investigating the issue. |
There isn't much that backend can do about UI not using the partial visualization results (will raise as a separate topic to GUI team). The scenario is as follows:
|
Hubert Plociniczak reports a new STANDUP for the provided date (2024-12-27): Progress: Cache invalidation done when upserting visualizations has a negative effect on long-running computations. There is a race between caching the initial result and immediately reseting it due to a schedule visualization job. That may significantly delay startup. There doesn't appear to be an easy way to disable it without loosing existing functionality. Need to weight on pros and cons. It should be finished by 2024-12-27. Next Day: Next day I will be working on the #11882 task. Continue investigating the issue. |
Hubert Plociniczak reports a new STANDUP for the provided date (2024-12-23): Progress: Continued investigating odd visualization problems. Surprisingly backend does send partial results to GUI with default_processor but the results aren't being shown in IDE. Additionally it looks like some computations are being done unnecessairly when interrupt is triggered. Needs more investigation after a break. It should be finished by 2024-12-27. Next Day: Next day I will be working on the #11882 task. Continue investigating the issue. |
Hubert Plociniczak reports a new STANDUP for the provided date (2024-12-30): Progress: Prepared a PR that disables cache invalidation when upserting visualization, at the cost of not being able to attach one to subexpression. This will need to be revisited with observables approach. Back to native image generation for Language Server. Got weird classpath failures when including database jars that need investigating. It should be finished by 2024-12-30. Next Day: Next day I will be working on the #11882 task. Continue on native image, address PR review. |
The possibility of attaching visualizations to subexpressions meant that we (currently) have to invalidate caches for their parent expression every time a request comes. That was an acceptable cost when an expression is relatively fast to compute but unacceptable when dealing with slow computations that would have to be repeated. Since currently attaching visualizations is not used at all and we can rely on caching RHS and self, it is _safe_ to disable it. An observable pattern is better suited for visualizations and would mitigate this problem by design, something that we planned for a while in #10525 Should help with long running visualizations in #11882. Partial visualization results should be addressed on GUI side. # Important Notes For the example in #11882 we would at least re-read the large file at least twice, which adds 40-60seconds to the overall startup. Exchanges before the change: ![Screenshot from 2024-12-27 16-52-46](https://github.com/user-attachments/assets/63e7a6db-73f8-48dd-a24a-a44e197e4ee6) Responses after the change: ![Screenshot from 2024-12-30 12-18-28](https://github.com/user-attachments/assets/08020b1c-58f0-4c0f-b06d-1d904373b946) Results in the same (final) data: ![Screenshot from 2024-12-30 12-24-02](https://github.com/user-attachments/assets/280f6ef5-6691-4744-b67a-2a0898f55b8b)
Reading a 1mm row Excel file, the visualization is not always rendered.
Interrupted exception also shows up (but thats another issue).
https://docs.google.com/spreadsheets/d/1hGx9W7qeIUvBvJMlR-a2fy6k_TtRFh_f/edit?usp=sharing&ouid=105802918667196204721&rtpof=true&sd=true
Logs:
enso-project-manager-2024-12-16.0.zip
The text was updated successfully, but these errors were encountered: