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
JS error on mozilla "exceeded 16 live WebGL contexts for this principal, losing the least recently used one" #889
Comments
Please close your previous issue(s) if they are duplicated. Thanks. |
I already closed them, you can delete them if you want as they were made by mistake. |
May be try this
|
Restarting the kernel doesn't seem to kill the webGL context, I usually restart the kernel and run all cells. I actually want to build a GUI which would only run the required cells again depending on what parameters the user modifies, I don't know if refreshing the browser would be possible/viable each time the user wants to get a new result or give new inputs. Isn't there a way to kill the previous webGL context without refreshing the browser ? |
Or to reuse the previous webGL context instead if it's possible |
cc @arose |
@ThibaultLacharme Can you try
|
Ok so I tried giving different variable names to each view in order to be able to close them afterwards by simply runnning the last cell. By restarting the kernel and running all cells around 5-6 times (and uncommenting the last cell before restarting every time of course) I unfortunately get the same issue, the close() method doesn't seem to kill the webGL context. |
Hello @arose , I don't know if you had time to have a look at it since I raised this issue. It seems like it would be manageable to erase the webGL context or reuse it but I don't know how it's implemented in NGLview on the webGL side. |
Hello,
I got this issue when restarting my kernel several times and getting new cell outputs. For now I have 3 cells outputs where I display molecules from SDF files and when I restart my algorithm a certain amount of times I have all those webGL contexts cumulating, leading to this error (so after restarting the algorithm 6 times).
Is there a way to reuse the previous webGL context or killing it when relaunching a cell ?
Perhaps my syntax was incorrect. It's very simple for now, I I just create a NGLWidget with show_structure_file and display it afterwards.
Are there any options/functions to avoid creating a new WebGL context and this packing up of previously created contexts ?
PS: don't pay attention to the 2 previously closed issues from me, simply forgot that we can't draw new lines in the description (which directly submits the issue instead, very handy)
The text was updated successfully, but these errors were encountered: