Skip to content

Follow up WebGL work - #96

Merged
jernestmyers merged 5 commits into
mainfrom
follow-up-webgl-work
Nov 13, 2026
Merged

jernestmyers merged 5 commits into
mainfrom
follow-up-webgl-work

Conversation

@jernestmyers

Copy link
Copy Markdown
Collaborator

This branch aims to fix two issues related to WebGL:

  1. If a user has WebGL disabled, then Plotly throws its own non-dismissable error. The solution is to pre-check if the user's browser has WebGL enabled and fallback to 'scatter' instead of 'scattergl' if disabled.
  2. Running out of WebGL contexts still appears to be a problem for at least one user in Chrome, which surfaced an unbounded Aladin error. The solution is twofold: find more ways to manage context use and catch the Aladin error. The first part is done by explicitly releasing Plotly's WebGL contexts during the Plotly.purge process (rather than relying on garbage collection). The second part wraps the Aladin methods in a 'guard' function that uses a try/catch block to handle any Aladin-thrown errors so they don't break the web app.

@jernestmyers
jernestmyers merged commit b50742c into main Nov 13, 2026
1 check passed
@jernestmyers
jernestmyers deleted the follow-up-webgl-work branch November 13, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant