GitHub user HerveBr added a comment to the discussion: Generating screenshots
(thumbnails, PDFs, and images) is causing problems for certain tables and charts
I resolved the issue without touching the "soft_time_limit" code.
I made numerous changes, so I'm not sure exactly what allowed me to unlock
thumbnail generation and PDF/image creation.
In the config file, I wrote:
- WEBDRIVER_TYPE = "chromium" (instead of "chrome")
- I reduced the quality of WEBDRIVER_WINDOW as follows: { "dashboard": (1600,
2000),"slice": (3000, 1200), "pixel_density": 1,}
- I limited the arguments of WEBDRIVER_OPTION_ARGS to = [ "--headless",
"--disable-gpu", "--disable-dev-shm-usage", "--marionette",
"--no-sandbox","--disable-setuid-sandbox",]
Finally, I simplified my build as follows:
RUN \
apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libpq-dev \
python3-dev \
pkg-config \
libjpeg-dev \
libpng-dev \
curl && \
\
uv pip install --no-cache-dir \
"apache-superset[postgres,cors,playwright,thumbnails]" \
flower && \
\
python -m playwright install --with-deps chromium && \
\
apt-get purge -y --auto-remove build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /root/.cache/*
GitHub link:
https://github.com/apache/superset/discussions/34685#discussioncomment-14126260
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]