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

Disappearing viz #7

Open
rw-anderson opened this issue Mar 15, 2021 · 4 comments
Open

Disappearing viz #7

rw-anderson opened this issue Mar 15, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@rw-anderson
Copy link

I'm curious if anyone else has seen the glitch where after visualizing a "lot" of pyglvis plots in a jupyter notebook (20+?), that they just stop showing up? There's a window, but it's blank. Usually reloading the webpage gets them to start appearing again. But not always. Sometimes I have to close the browser and relaunch jupyter.

@tomstitt
Copy link
Member

Would you be able to get the console output when this happens? I haven't personally seen this but my guess would be you've hit the limit of WebGL contexts, which seems to be somewhere around 16 but it will depend on your browser.

@rw-anderson
Copy link
Author

By console output do you mean in the terminal, or in a javascript console perhaps?

@tzanio tzanio added the bug Something isn't working label Mar 21, 2021
@tzanio
Copy link
Member

tzanio commented Mar 21, 2021

Yes, the javascript console in the browser.

@tomstitt
Copy link
Member

tomstitt commented Mar 22, 2021

On Safari I can create 16 plots but then I start losing the oldest and see this message in the browser console: There are too many active WebGL contexts on this page, the oldest context will be lost.

I don't think we can get portably get around the WebGL context limit but we can improve the handling of it. One idea would be to "lock" old contexts when this would happen but keep a static image of the plot and have some ability to restore plots that have been "locked".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants