-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Pandoc memory issue in amd64 docker container emulated on M1 Mac #2716
Comments
Rendering a doc in the same docker image alone doesn't seem to trigger this problem, so perhaps it's specific to the community dev container spec: $ docker run rocker/r-ver:4.2 echo -e '---\ntitle: Hello world\n---\n\nOh hi there' > index.qmd; cat index.qmd; quarto render index.qmd
---
title: Hello world
---
Oh hi there
pandoc
to: html
output-file: index.html
standalone: true
section-divs: true
html-math-method: mathjax
wrap: none
default-image-extension: png
metadata
document-css: false
link-citations: true
date-format: long
lang: en
title: Hello world
Output created: index.html Does Quarto typically use an internally bundled version of Pandoc on Linux, or one that's available to the system? |
Okay, I'm very confused - after doing some testing with Docker, I can now re-open the devcontainer in VSCode and things work fine (including |
Trying to run the simpler test case works, and |
Oops! Looks like pandoc error 137 is an out of memory error. Increasing the RAM available to Docker from 8 GB to 12 GB did the trick. I am a little surprised, though: there is quite a long delay before |
We've observed pandoc uses a lot of memory when |
Interesting! This could be a separate issue: when I use |
In fact, just running With the expected output about 10 seconds later:
|
I should note that I'm on an M1 Mac, and this appears to be an x86_64 container, so this could be a weird Docker/Pandoc/platform edge case 🤷🏻♂️ $ uname -a
Linux 9137e99d112a 5.10.104-linuxkit #1 SMP PREEMPT Thu Mar 17 17:05:54 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux |
This issue has nothing to do with the Rocker Project so I recommend changing the title. |
Sorry I am not expressing this well. |
No worries, @eitsupi —I just wanted to explicitly test a non-Rocker container before I came to any conclusions! I've reproduced it on an Ubuntu container (again, |
I don't think there is an arm64 image that includes quarto-cli because there is no arm64 build of quarto-cli. pandoc has arm64 builds, so opening the issue in the pandoc repository may not be sympathetic.... |
Yeah, I can't imagine them being too interested in tackling a memory issue that is specific to arm64 emulation when they already put an arm64 build out 😅 I might need to just swallow this one until there're Linux arm64 Quarto builds out! |
@jimjam-slam looks like this isn't a quarto bug, right? I'm going to go ahead and close this one, but feel free to reopen it if you narrow this down to something on our side that we can control. |
Bug description
This might be better directed to @rocker-org, but I'll start here! I've endeavoured to set up a VSCode devcontainer for our Quarto projects based on the R community devcontainer template (which in turn uses the
rocker/r-ver:4.2
Docker image). Quarto is included in the image, but attempts to render a test case lead to a Pandoc error:Even just running
pandoc --version
, using the version of Pandoc that Quarto appears to be calling, fails:I should say that the test case renders fine with my own local Quarto installation!
Checklist
The text was updated successfully, but these errors were encountered: