ipyvolume icon indicating copy to clipboard operation
ipyvolume copied to clipboard

jupyter lab extension fails

Open mlamarre opened this issue 6 years ago • 3 comments

The following command

jupyter labextension install ipyvolume

fails.

In the log. the error seems to be related to JS heap out memory.

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

I have this while building a docker image in a CI scripts that runs everyday, the error first showed up on Feb, 29th 2020.

Dockerfile is a Ubuntu 18.04 image with miniconda installed and configured, followed by these commands:

RUN conda install -y -c conda-forge matplotlib jupyter jupyterlab requests ipympl ipywidgets ipyvolume tqdm nodejs
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager
RUN jupyter labextension install jupyter-threejs
RUN jupyter labextension install ipyvolume

I don't know anything about npm, but other project suggest increasing the memory limit using npm scripts in package.json. (last post of https://github.com/angular/angular-cli/issues/5618)

mlamarre avatar Mar 02 '20 15:03 mlamarre

Hi Matthieu,

can you try export NODE_OPTIONS=--max-old-space-size=4096?

cheers,

Maarten

maartenbreddels avatar Mar 02 '20 15:03 maartenbreddels

That works! Thanks!

Dockerfile fix:

ENV NODE_OPTIONS=--max-old-space-size=4096
RUN jupyter labextension install ipyvolume

mlamarre avatar Mar 03 '20 12:03 mlamarre

:tada: This issue can now be closed!

consideRatio avatar Mar 18 '20 10:03 consideRatio