Skip to content

puppeteer with chromium on Linux fails and causes "Internal Error: need an svg element" #6821

@ondrej-such

Description

@ondrej-such

Bug description

Rendering any quarto file with mermaid diagram to pdf results in internal error.

ERROR: Internal Error: need an svg element

Error: Internal Error: need an svg element

Steps to reproduce

Run quarto render essential.qmd --to pdf

A minimal file is the following

# Essential binary classification


```{mermaid diag1}
%%| label: fig-bias-dataset-model
%%| fig-cap: Two key prerequisities for development of a classification model
flowchart LR


X(Dataset) --> Y("classification model")
Z(Inductive bias) --> Y
```

Expected behavior

No error should happen.

Actual behavior

(base) ondrej@smicro:~$ quarto render essential.qmd --to pdf
ERROR: Internal Error: need an svg element

Error: Internal Error: need an svg element
at resolveSize (file:///opt/quarto/bin/quarto.js:83711:15)
at async makePng (file:///opt/quarto/bin/quarto.js:84047:57)
at async makeDefault (file:///opt/quarto/bin/quarto.js:84097:24)
at async Object.cell (file:///opt/quarto/bin/quarto.js:84120:20)
at async Promise.all (index 0)
at async Object.document (file:///opt/quarto/bin/quarto.js:57716:25)
at async handleLanguageCells (file:///opt/quarto/bin/quarto.js:57687:42)
at async file:///opt/quarto/bin/quarto.js:86617:61
at async withTimingAsync (file:///opt/quarto/bin/quarto.js:19633:25)
at async renderFiles (file:///opt/quarto/bin/quarto.js:86616:25)

Your environment

  • quarto : 1.3.433
  • OS: Ubuntu 22.04.2 LTS
  • R: 4.3.1

Quarto check output

(base) ondrej@smicro:~$ quarto check

[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.1: OK
Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.3.433
Path: /opt/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
Version: 3.8.5 (Conda)
Path: /home/ondrej/miniconda3/bin/python
Jupyter: (None)

  Jupyter is not available in this Python installation.
  Install with conda install jupyter

  There is an unactivated Python environment in torch1. Did you forget to activate it?

[✓] Checking R installation...........OK
Version: 4.3.1
Path: /usr/lib/R
LibPaths:
- /home/ondrej/R/x86_64-pc-linux-gnu-library/4.3
- /usr/local/lib/R/site-library
- /usr/lib/R/site-library
- /usr/lib/R/library
knitr: 1.43
rmarkdown: 2.6

[✓] Checking Knitr engine render......OK

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingchromiumpuppeteerIssues with puppeteer and remote chromium rendering

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions