Skip to content

Fix UI bugs from large dataset example#3022

Merged
texodus merged 5 commits into
masterfrom
fix-ui-large-bugs
Jun 30, 2025
Merged

Fix UI bugs from large dataset example#3022
texodus merged 5 commits into
masterfrom
fix-ui-large-bugs

Conversation

@texodus

@texodus texodus commented Jun 29, 2025

Copy link
Copy Markdown
Member

This PR fixes a set of bugs uncovered during testing of a perspective-python server-only application hosting ~10mm rows and 100 columns (of most float), updating in 10k batches with 10ms delays between each batch.

  • Fixes a race condition which could cause two HTMLPerspectiveViewerElement::restore calls to first apply and render the plugin field, before the other fields, yielding graphical artifacts and a performance hit.
  • Adds maxPayload (to node), and websocket_max_message_size and max_buffer_size (to perspective.handlers.tornado) for large messages.
  • Fixes expressions to be updated under draw lock, which prevents rapid expression redefinitions from being marked invalid.
  • Fixes two .expect() calls in the yew render tree which could fail in the (above) race condition, leading to an abort().
  • Changes the behavior of handle_error called Client instances with async methods in-flight, which now throw the underlying transport error (previously they threw a generic "cancelled" error).
  • Fixes perspective-workspace context menu to not open off-screen when the workspace itself is not "full screen" in the browser panel.

texodus added 3 commits June 29, 2025 11:12
…lscreen

Signed-off-by: Andrew Stein <steinlink@gmail.com>
…ddition to triggering `on_error`)

Signed-off-by: Andrew Stein <steinlink@gmail.com>
…perties

Signed-off-by: Andrew Stein <steinlink@gmail.com>
@texodus texodus added the bug Concrete, reproducible bugs label Jun 29, 2025
@texodus
texodus force-pushed the fix-ui-large-bugs branch from 1c859f1 to 7afe726 Compare June 29, 2025 22:31
texodus added 2 commits June 29, 2025 19:40
Signed-off-by: Andrew Stein <steinlink@gmail.com>
…expect`

Signed-off-by: Andrew Stein <steinlink@gmail.com>
@texodus
texodus force-pushed the fix-ui-large-bugs branch from 7afe726 to d9d0fc9 Compare June 29, 2025 23:41
@texodus
texodus marked this pull request as ready for review June 30, 2025 01:54
@texodus
texodus merged commit 33636b0 into master Jun 30, 2025
14 checks passed
@texodus
texodus deleted the fix-ui-large-bugs branch June 30, 2025 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Concrete, reproducible bugs

Development

Successfully merging this pull request may close these issues.

1 participant