apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
60.5k stars 13.07k forks source link

Export to PDF leaves charts empty on first export #27532

Open ignasv opened 3 months ago

ignasv commented 3 months ago

Bug description

When using the new Export to PDF functionality, we get a mostly empty PDF on the first try. Second export usually works fine. If we refresh the page - same issues reappear: first export is empty, second is fine.

The issue does not seem to impact Big Number and Table charts. But everything else: Pie Charts, Bar Charts, Area Charts, seem to be impacted.

How to reproduce the bug

  1. Open a dashboard which has a Pie Chart.
  2. Click Export to PDF
  3. Check PDF

Screenshots/recordings

First click on Export to PDF:

Screenshot 2024-03-15 at 14 50 04

Second click on Export to PDF:

Screenshot 2024-03-15 at 14 50 30

Superset version

3.1.1

Python version

3.10

Node version

Not applicable

Browser

Safari

Additional context

No response

Checklist

Arcelone commented 2 weeks ago

Same issue for me, with the 4.0.1 version of superset.

Spragalas commented 2 weeks ago

I also face exact same issue (4.0.1)

hanslemm commented 2 days ago

Same problem, but worst:

Is this using the webdriver component? If yes, perhaps it is not waiting long enough to take the screenshot.

Arcelone commented 10 hours ago

@hanslemm i think this is the issue. I don't know which technology they use to generate the pdf. But it may be just a option to force the rendering of all the page and not only the visible part.