Skip to content

Viewer instances don't release memory when cell output is cleared #6642

@jleibs

Description

@jleibs

A given notebook session can eventually run out of memory at which point the only way to fix it appears to be reloading the page.

My expectation is that when the output of a cell is cleared, the memory should be freed.

To repro, repeatedly execute a cell that outputs a viewer widget until it stops outputting.

At this point the console output for the page will show:

WebAssembly module validated with warning: failed to allocate executable memory for module
Uncaught (in promise) InternalError: out of memory 

image

It would be nice if we could also catch this and show the error in the notebook. Instead all we get is an empty white canvas and the newly introduced timeout warning.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    notebookJupyter notebooks etc🕸️ webregarding running the viewer in a browser🪳 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions