TypeError: Cannot read property 'getContext' of null
at resize (/opt/conda/lib/vega-cli/node_modules/vega-scenegraph/build/vega-scenegraph.js:3377:26)
at CanvasRenderer.prototype$6.resize (/opt/conda/lib/vega-cli/node_modules/vega-scenegraph/build/vega-scenegraph.js:3427:5)
at CanvasRenderer.prototype$4.initialize (/opt/conda/lib/vega-cli/node_modules/vega-scenegraph/build/vega-scenegraph.js:2989:17)
at CanvasRenderer.prototype$6.initialize (/opt/conda/lib/vega-cli/node_modules/vega-scenegraph/build/vega-scenegraph.js:3422:28)
at initializeRenderer (/opt/conda/lib/vega-cli/node_modules/vega-view/build/vega-view.js:630:8)
at renderHeadless (/opt/conda/lib/vega-cli/node_modules/vega-view/build/vega-view.js:736:12)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async View.renderToCanvas [as toCanvas] (/opt/conda/lib/vega-cli/node_modules/vega-view/build/vega-view.js:771:15)
Issue: vg2png and vg2pdf both fail;
running
(also with vg2png) gives:
See https://github.com/altair-viz/altair_saver/issues/13 for previous efforts to troubleshoot this. Wondering if it has anything to do with the difference between my env and that in which the vega-cli-feedstock CI tests happen.
Thanks!
Environment (
conda list
):Details about
conda
and system (conda info
):