apache/superset

Export to PDF leaves charts empty on first export

ignasv opened this issue · 0 comments

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

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.