You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At each update, a URL.createObjectURL is performed. As a result, the browser is "storing" the blob in memory. But the memory is never cleaned, because URL.revokeObjectURL is never called
// Clean up the old objectURLconstoldurl=this.el.src;this.el.src=url;if(oldurl&&typeofoldurl!=='string'){URL.revokeObjectURL(oldurl);}
oldurl is always a string, so the revokeObjectURL is never called.
If using JupyterLab
JupyterLab version: 3.0.10
The text was updated successfully, but these errors were encountered:
Description
Browser memory leak caused by Image Widget not revoking the ObjectURLs.
Reproduce
Expected behavior
Context
Bug is here: https://github.com/jupyter-widgets/ipywidgets/blob/master/packages/controls/src/widget_image.ts#L65
At each update, a
URL.createObjectURL
is performed. As a result, the browser is "storing" the blob in memory. But the memory is never cleaned, becauseURL.revokeObjectURL
is never calledoldurl
is always a string, so therevokeObjectURL
is never called.If using JupyterLab
The text was updated successfully, but these errors were encountered: