Skip to content

Conversation

@texodus
Copy link
Member

@texodus texodus commented Jul 11, 2025

This PR fixes a memory corruption issue which can be encountered in perspective-python or perspective-rs when:

  1. Multiple Server instances exist in the same process, and
  2. Both instances have View instances with expressions fields, and
  3. View methods on each are called from separate threads concurrently

This has technically been an issue since Perspective v3.0, but only because before this version, #1 in this list was not possible as there was no public API for instancing multiple Servers.

@texodus texodus added the bug Concrete, reproducible bugs label Jul 11, 2025
@texodus texodus force-pushed the fix-multi-server-threadsafe branch from 3f58281 to de62bcc Compare July 11, 2025 04:07
Signed-off-by: Andrew Stein <steinlink@gmail.com>
@texodus texodus force-pushed the fix-multi-server-threadsafe branch from de62bcc to 89b4224 Compare July 13, 2025 15:58
@texodus texodus marked this pull request as ready for review July 13, 2025 16:43
@texodus texodus merged commit 1d44e93 into master Jul 13, 2025
14 checks passed
@texodus texodus deleted the fix-multi-server-threadsafe branch July 13, 2025 16:46
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.

2 participants